]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tg3: Add partial fragment unmapping code
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 27 Jul 2011 14:20:50 +0000 (14:20 +0000)
committerJoe Jin <joe.jin@oracle.com>
Tue, 15 May 2012 08:42:30 +0000 (16:42 +0800)
commit6394130a107d10f31854cf1a604a203022f86df5
tree526181408675da4a0910c03e0132a629ac74fa10
parentd14b35bc5b172c0a832b7f7289279c76646e1772
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>
(cherry picked from commit e01ee14d499e5d09c0a9db0cac2545a018849e3d)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c
drivers/net/tg3.h