]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Add partial fragment unmapping code
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 27 Jul 2011 14:20:50 +0000 (14:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jul 2011 05:39:31 +0000 (22:39 -0700)
commit9bbdd32b2ed0a05086e079fb2a43c13f662d4ce7
tree752b0783203f4131dbe2d9af945f5090003646e2
parentda8515788cb5e9886b45387921a49e9b13ff81ed
tg3: Add partial fragment unmapping code

The following patches are going to break skb fragments into smaller
sizes.  This patch attempts to make the change easier to digest by only
addressing the skb teardown portion.

The patch modifies the driver to skip over any BDs that have a flag set
that indicates the BD isn't the beginning of an skb fragment.  Such BDs
were a result of segmentation and do not need a pci_unmap_page() call.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c
drivers/net/tg3.h