mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
net: Do txq_trans_update() in netdev_start_xmit()
That way we don't have to audit every call site to make sure it is doing this properly. Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
dace1b5472
commit
10b3ad8c21
7 changed files with 19 additions and 21 deletions
|
|
@ -258,11 +258,8 @@ static int packet_direct_xmit(struct sk_buff *skb)
|
|||
local_bh_disable();
|
||||
|
||||
HARD_TX_LOCK(dev, txq, smp_processor_id());
|
||||
if (!netif_xmit_frozen_or_drv_stopped(txq)) {
|
||||
ret = netdev_start_xmit(skb, dev);
|
||||
if (ret == NETDEV_TX_OK)
|
||||
txq_trans_update(txq);
|
||||
}
|
||||
if (!netif_xmit_frozen_or_drv_stopped(txq))
|
||||
ret = netdev_start_xmit(skb, dev, txq);
|
||||
HARD_TX_UNLOCK(dev, txq);
|
||||
|
||||
local_bh_enable();
|
||||
|
|
|
|||
Loading…
Reference in a new issue