Thread (2 messages) 2 messages, 2 authors, 2015-05-10

Re: [PATCH-net] af_packet / TX_RING not fully non-blocking (w/ MSG_DONTWAIT).

flat view

From: David Miller <davem@davemloft.net>
Date: 2015-05-10 23:40:32

From: Mathias Kretschmer <redacted>
Date: Fri, 8 May 2015 15:44:37 +0200
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 <redacted>
This looks correct to me, applied, thank you.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help