mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
This patch fixes an issue where the send(MSG_DONTWAIT) call on a TX_RING is not fully non-blocking in cases where the device's sndBuf is full. We pass nonblock=true to sock_alloc_send_skb() and return any possibly occuring error code (most likely EGAIN) to the caller. As the fast-path stays as it is, we keep the unlikely() around skb == NULL. Signed-off-by: Mathias Kretschmer <[email protected]> Signed-off-by: David S. Miller <[email protected]>