mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +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
|
@ -3335,11 +3335,10 @@ static void pktgen_xmit(struct pktgen_dev *pkt_dev)
|
|||
goto unlock;
|
||||
}
|
||||
atomic_inc(&(pkt_dev->skb->users));
|
||||
ret = netdev_start_xmit(pkt_dev->skb, odev);
|
||||
ret = netdev_start_xmit(pkt_dev->skb, odev, txq);
|
||||
|
||||
switch (ret) {
|
||||
case NETDEV_TX_OK:
|
||||
txq_trans_update(txq);
|
||||
pkt_dev->last_ok = 1;
|
||||
pkt_dev->sofar++;
|
||||
pkt_dev->seq_num++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue