From: Kretschmer, Mathias Date: Fri, 8 May 2015 13:44:37 +0000 (+0200) Subject: af_packet / TX_RING not fully non-blocking (w/ MSG_DONTWAIT). X-Git-Tag: omap-for-v4.2/wakeirq-drivers~2^2~30^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbf33a2802f71dba06faa948af805884ff16a2ab;p=pandora-kernel.git af_packet / TX_RING not fully non-blocking (w/ MSG_DONTWAIT). 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed