lxip: signal NETDEV_TX_BUSY if tx queue is full

This commit is contained in:
Sebastian Sumpf 2014-11-26 16:02:36 +01:00 committed by Christian Helmuth
parent 16b4e7d73a
commit a4f7800bf0
1 changed files with 3 additions and 2 deletions

View File

@ -34,9 +34,10 @@ int driver_net_xmit(struct sk_buff *skb, struct net_device *dev)
void* addr = skb->data;
/* transmit to nic-session */
while (net_tx(addr, len)) {
if (net_tx(addr, len)) {
/* tx queue is full, could not enqueue packet */
printk("TX full\n");
pr_debug("TX packet dropped\n");
return NETDEV_TX_BUSY;
}
dev_kfree_skb(skb);