]> git.baikalelectronics.ru Git - kernel.git/commit
xsk: always return ENOBUFS from sendmsg if there is no TX queue
authorMagnus Karlsson <magnus.karlsson@intel.com>
Wed, 11 Jul 2018 08:12:51 +0000 (10:12 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 13 Jul 2018 13:34:31 +0000 (15:34 +0200)
commit9fd50e6cea3dd80236a3c3e3557271a2b92d083e
tree79fec6084ce553c60448bb6c72dd7c7a9d2be674
parent67da9c376614e939c5c1fbda15029e1675732c04
xsk: always return ENOBUFS from sendmsg if there is no TX queue

This patch makes sure ENOBUFS is always returned from sendmsg if there
is no TX queue configured. This was not the case for zero-copy
mode. With this patch this error reporting is consistent between copy
mode and zero-copy mode.

Fixes: 09ada008f9a2 ("xsk: wire upp Tx zero-copy functions")
Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/xdp/xsk.c