aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sky2.h
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-08-18 15:17:06 +0000
committerDavid S. Miller <davem@davemloft.net>2009-08-18 20:26:43 -0700
commit5dce95e5687a5a335202b03d133c1b4411ef7ce3 (patch)
tree3bb90badb02e92ccd2607e4312116819d424ee7b /drivers/net/sky2.h
parentsky2: use upper/lower 32 bits (diff)
downloadlinux-dev-5dce95e5687a5a335202b03d133c1b4411ef7ce3.tar.xz
linux-dev-5dce95e5687a5a335202b03d133c1b4411ef7ce3.zip
sky2: transmit ring 64 bit conservation
This patch saves elements on transmit ring by only updating the upper 64 bit address when it changes. With many workloads skb's are located in same region, so it saves space. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sky2.h')
-rw-r--r--drivers/net/sky2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/sky2.h b/drivers/net/sky2.h
index 65b94c366fbc..feb3204134ed 100644
--- a/drivers/net/sky2.h
+++ b/drivers/net/sky2.h
@@ -2017,6 +2017,7 @@ struct sky2_port {
u16 tx_pending;
u16 tx_last_mss;
+ u32 tx_last_upper;
u32 tx_tcpsum;
struct rx_ring_info *rx_ring ____cacheline_aligned_in_smp;