]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
via-velocity: remove the bounce buffers
authorFrancois Romieu <romieu@fr.zoreil.com>
Thu, 10 Jul 2008 22:03:44 +0000 (00:03 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 11 Jul 2008 05:10:13 +0000 (01:10 -0400)
commit580a690208321ed45addef5ef12e25b87f9f5dec
tree19971ea8e723dd0d4d98c1ba36125cae43f201dd
parent79d16385c7f287a33ea771c4dbe60ae43f791b49
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>
drivers/net/via-velocity.c
drivers/net/via-velocity.h