diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-08-18 15:17:09 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-18 20:26:51 -0700 |
commit | 6b84dacadbdc3dab6a5b313d20d5a93b0d998641 (patch) | |
tree | 20bd2d8b320f5a33da98b217fe0506757563cb66 /drivers/net/sky2.h | |
parent | ee5f68fea27b53b16c265b1f9ed8aa3bc9024c96 (diff) | |
download | kernel_samsung_aries-6b84dacadbdc3dab6a5b313d20d5a93b0d998641.zip kernel_samsung_aries-6b84dacadbdc3dab6a5b313d20d5a93b0d998641.tar.gz kernel_samsung_aries-6b84dacadbdc3dab6a5b313d20d5a93b0d998641.tar.bz2 |
sky2: optimize transmit completion
Don't reference the list element in hardware transmit ring on transmit
completion. The list element is updated by hardware, therefore
it causes a cache miss. Do book keeping in software structure.
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/sky2.h b/drivers/net/sky2.h index 2c262f7..9d07a46 100644 --- a/drivers/net/sky2.h +++ b/drivers/net/sky2.h @@ -1984,6 +1984,9 @@ struct sky2_status_le { struct tx_ring_info { struct sk_buff *skb; + unsigned long flags; +#define TX_MAP_SINGLE 0x0001 +#define TX_MAP_PAGE 000002 DECLARE_PCI_UNMAP_ADDR(mapaddr); DECLARE_PCI_UNMAP_LEN(maplen); }; |