mirror of
https://github.com/torvalds/linux.git
synced 2026-12-05 12:54:27 +00:00
A driver start_xmit() method cannot free skb and return NETDEV_TX_BUSY, since caller is going to reuse freed skb. In fact netif_tx_stop_queue() / netif_stop_queue() is needed before returning NETDEV_TX_BUSY or you can trigger a ksoftirqd fatal loop. In case of memory allocation error, only safe way is to drop the packet and return NETDEV_TX_OK Also increments tx_dropped counter Signed-off-by: Eric Dumazet <[email protected]> Cc: Inaky Perez-Gonzalez <[email protected]> Signed-off-by: David S. Miller <[email protected]>