]> 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)
commitad05622ab397a2ad5c20d28e635784226a9ffc78
tree79fec6084ce553c60448bb6c72dd7c7a9d2be674
parentb4deba38f1e7c378ee903d3c27703f27934537a7
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: 2bbf206bd9ef ("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