aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/via-velocity.h
diff options
context:
space:
mode:
authorFrancois Romieu <romieu@fr.zoreil.com>2008-07-10 18:03:44 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-07-11 01:10:13 -0400
commit580a690208321ed45addef5ef12e25b87f9f5dec (patch)
tree19971ea8e723dd0d4d98c1ba36125cae43f201dd /drivers/net/via-velocity.h
parent79d16385c7f287a33ea771c4dbe60ae43f791b49 (diff)
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>
Diffstat (limited to 'drivers/net/via-velocity.h')
-rw-r--r--drivers/net/via-velocity.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/via-velocity.h b/drivers/net/via-velocity.h
index 7387be4f428d..86446147284c 100644
--- a/drivers/net/via-velocity.h
+++ b/drivers/net/via-velocity.h
@@ -236,10 +236,8 @@ struct velocity_rd_info {
236 236
237struct velocity_td_info { 237struct velocity_td_info {
238 struct sk_buff *skb; 238 struct sk_buff *skb;
239 u8 *buf;
240 int nskb_dma; 239 int nskb_dma;
241 dma_addr_t skb_dma[7]; 240 dma_addr_t skb_dma[7];
242 dma_addr_t buf_dma;
243}; 241};
244 242
245enum velocity_owner { 243enum velocity_owner {
@@ -1506,9 +1504,6 @@ struct velocity_info {
1506 dma_addr_t rd_pool_dma; 1504 dma_addr_t rd_pool_dma;
1507 dma_addr_t td_pool_dma[TX_QUEUE_NO]; 1505 dma_addr_t td_pool_dma[TX_QUEUE_NO];
1508 1506
1509 dma_addr_t tx_bufs_dma;
1510 u8 *tx_bufs;
1511
1512 struct vlan_group *vlgrp; 1507 struct vlan_group *vlgrp;
1513 u8 ip_addr[4]; 1508 u8 ip_addr[4];
1514 enum chip_type chip_id; 1509 enum chip_type chip_id;