diff options
author | David S. Miller <davem@davemloft.net> | 2014-08-30 06:07:24 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-02 02:39:55 +0200 |
commit | 10b3ad8c21bb4b135768c30dd4c51a1c744da699 (patch) | |
tree | 02acb0d328818c9216c93b6b46d62717e09cdc61 /drivers/net/wan | |
parent | net: stmmac: fix warning from Sparse for socfpga (diff) | |
download | linux-10b3ad8c21bb4b135768c30dd4c51a1c744da699.tar.xz linux-10b3ad8c21bb4b135768c30dd4c51a1c744da699.zip |
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>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r-- | drivers/net/wan/dlci.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wan/dlci.c b/drivers/net/wan/dlci.c index 81b22a180aad..6427e8283419 100644 --- a/drivers/net/wan/dlci.c +++ b/drivers/net/wan/dlci.c @@ -192,8 +192,10 @@ static netdev_tx_t dlci_transmit(struct sk_buff *skb, struct net_device *dev) { struct dlci_local *dlp = netdev_priv(dev); - if (skb) - netdev_start_xmit(skb, dlp->slave); + if (skb) { + struct netdev_queue *txq = skb_get_tx_queue(dev, skb); + netdev_start_xmit(skb, dlp->slave, txq); + } return NETDEV_TX_OK; } |