diff options
author | Jamal Hadi Salim <hadi@cyberus.ca> | 2007-09-16 14:40:49 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 16:51:20 -0700 |
commit | 22dd74950172dc8979576e2bef3b439f20ef0b05 (patch) | |
tree | d918ef8e1841cd4e5938febd2c584c02dcc6ca25 /net | |
parent | 4885a50476b95fa0f4caad179a80783508c2fe86 (diff) | |
download | blackbird-op-linux-22dd74950172dc8979576e2bef3b439f20ef0b05.tar.gz blackbird-op-linux-22dd74950172dc8979576e2bef3b439f20ef0b05.zip |
[NET]: migrate HARD_TX_LOCK to header file
HARD_TX_LOCK micro is a nice aggregation that could be used
in other spots. move it to netdevice.h
Also makes sure the previously superflous cpu arguement is used.
Thanks to DaveM for the suggestions.
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 666c112efb55..e9a6d93a194f 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -1574,18 +1574,6 @@ out_kfree_skb: return 0; } -#define HARD_TX_LOCK(dev, cpu) { \ - if ((dev->features & NETIF_F_LLTX) == 0) { \ - netif_tx_lock(dev); \ - } \ -} - -#define HARD_TX_UNLOCK(dev) { \ - if ((dev->features & NETIF_F_LLTX) == 0) { \ - netif_tx_unlock(dev); \ - } \ -} - /** * dev_queue_xmit - transmit a buffer * @skb: buffer to transmit |