summaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.h
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2011-07-27 14:20:50 +0000
committerDavid S. Miller <davem@davemloft.net>2011-07-27 22:39:31 -0700
commite01ee14d499e5d09c0a9db0cac2545a018849e3d (patch)
tree752b0783203f4131dbe2d9af945f5090003646e2 /drivers/net/tg3.h
parent0d681b27b0efc962a3038a316e78373de7bfe1ce (diff)
downloadlinux-e01ee14d499e5d09c0a9db0cac2545a018849e3d.tar.gz
linux-e01ee14d499e5d09c0a9db0cac2545a018849e3d.tar.bz2
linux-e01ee14d499e5d09c0a9db0cac2545a018849e3d.zip
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>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r--drivers/net/tg3.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h
index f6986ca50d80..466dd7add12b 100644
--- a/drivers/net/tg3.h
+++ b/drivers/net/tg3.h
@@ -2655,6 +2655,7 @@ struct ring_info {
struct tg3_tx_ring_info {
struct sk_buff *skb;
DEFINE_DMA_UNMAP_ADDR(mapping);
+ bool fragmented;
};
struct tg3_link_config {