via-velocity: remove the bounce buffers
Executive summary: the bounce buffers are in my way - they use something like a 64 * 1500 bytes area of PCI consistent area - they are not resized when the MTU changes - they are used - to hand-pad undersized packets. skb_pad anyone ? - to linearize fragmented skbs whose fragment count goes beyond the 7 fragments hardware limit in order to claim scatter-gather support Actually the SG code is commented out and I wonder if it could not be implemented (ab-)using the large send feature of the chipset since the latter should support some multi-descriptor packet transmitting. Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Fixed-by: Séguier Régis <rseguier@e-teleport.net> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
committed by
Jeff Garzik
parent
79d16385c7
commit
580a690208
@@ -236,10 +236,8 @@ struct velocity_rd_info {
|
||||
|
||||
struct velocity_td_info {
|
||||
struct sk_buff *skb;
|
||||
u8 *buf;
|
||||
int nskb_dma;
|
||||
dma_addr_t skb_dma[7];
|
||||
dma_addr_t buf_dma;
|
||||
};
|
||||
|
||||
enum velocity_owner {
|
||||
@@ -1506,9 +1504,6 @@ struct velocity_info {
|
||||
dma_addr_t rd_pool_dma;
|
||||
dma_addr_t td_pool_dma[TX_QUEUE_NO];
|
||||
|
||||
dma_addr_t tx_bufs_dma;
|
||||
u8 *tx_bufs;
|
||||
|
||||
struct vlan_group *vlgrp;
|
||||
u8 ip_addr[4];
|
||||
enum chip_type chip_id;
|
||||
|
Reference in New Issue
Block a user