mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 16:11:45 +00: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 <davem@davemloft.net>
This commit is contained in:
parent
dace1b5472
commit
10b3ad8c21
7 changed files with 19 additions and 21 deletions
|
@ -91,9 +91,7 @@ static int netpoll_start_xmit(struct sk_buff *skb, struct net_device *dev,
|
|||
skb->vlan_tci = 0;
|
||||
}
|
||||
|
||||
status = netdev_start_xmit(skb, dev);
|
||||
if (status == NETDEV_TX_OK)
|
||||
txq_trans_update(txq);
|
||||
status = netdev_start_xmit(skb, dev, txq);
|
||||
|
||||
out:
|
||||
return status;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue