diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-05-10 08:01:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-10 08:01:31 -0400 |
commit | 1ae5dc342ac78d7a42965fd1f323815f6f5ef2c1 (patch) | |
tree | d1955a7639e99832590df26466a34d5786a880ae /drivers/net/irda/w83977af_ir.c | |
parent | 2b0b05ddc04b6d45e71cd36405df512075786f1e (diff) |
net: trans_start cleanups
Now that core network takes care of trans_start updates, dont do it
in drivers themselves, if possible. Drivers can avoid one cache miss
(on dev->trans_start) in their start_xmit() handler.
Exceptions are NETIF_F_LLTX drivers
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda/w83977af_ir.c')
-rw-r--r-- | drivers/net/irda/w83977af_ir.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/irda/w83977af_ir.c b/drivers/net/irda/w83977af_ir.c index cb0cb758be64..1f9c3f08d1a3 100644 --- a/drivers/net/irda/w83977af_ir.c +++ b/drivers/net/irda/w83977af_ir.c | |||
@@ -515,7 +515,6 @@ static netdev_tx_t w83977af_hard_xmit(struct sk_buff *skb, | |||
515 | /* Check for empty frame */ | 515 | /* Check for empty frame */ |
516 | if (!skb->len) { | 516 | if (!skb->len) { |
517 | w83977af_change_speed(self, speed); | 517 | w83977af_change_speed(self, speed); |
518 | dev->trans_start = jiffies; | ||
519 | dev_kfree_skb(skb); | 518 | dev_kfree_skb(skb); |
520 | return NETDEV_TX_OK; | 519 | return NETDEV_TX_OK; |
521 | } else | 520 | } else |
@@ -549,7 +548,6 @@ static netdev_tx_t w83977af_hard_xmit(struct sk_buff *skb, | |||
549 | switch_bank(iobase, SET0); | 548 | switch_bank(iobase, SET0); |
550 | outb(ICR_ETXTHI, iobase+ICR); | 549 | outb(ICR_ETXTHI, iobase+ICR); |
551 | } | 550 | } |
552 | dev->trans_start = jiffies; | ||
553 | dev_kfree_skb(skb); | 551 | dev_kfree_skb(skb); |
554 | 552 | ||
555 | /* Restore set register */ | 553 | /* Restore set register */ |