When tun transmits a zero copy skb, it orphans the frags
which might need to allocate extra memory, in atomic context.
If that fails, notify ubufs callback before freeing the skb
as a hint that device should disable zerocopy mode.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drop:
dev->stats.tx_dropped++;
drop:
dev->stats.tx_dropped++;
kfree_skb(skb);
rcu_read_unlock();
return NETDEV_TX_OK;
kfree_skb(skb);
rcu_read_unlock();
return NETDEV_TX_OK;