mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
ctcm: invalid return code from hard_start_xmit
Avoid kernel warning by using the correct hard_start_xmit return code NETDEV_TX_BUSY for skb requeuing. Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8f0c40d4b6
commit
3a05d1404d
1 changed files with 2 additions and 2 deletions
|
@ -906,11 +906,11 @@ static int ctcm_tx(struct sk_buff *skb, struct net_device *dev)
|
|||
}
|
||||
|
||||
if (ctcm_test_and_set_busy(dev))
|
||||
return -EBUSY;
|
||||
return NETDEV_TX_BUSY;
|
||||
|
||||
dev->trans_start = jiffies;
|
||||
if (ctcm_transmit_skb(priv->channel[WRITE], skb) != 0)
|
||||
return 1;
|
||||
return NETDEV_TX_BUSY;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue