aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorMagnus Karlsson <magnus.karlsson@intel.com>2018-07-11 10:12:52 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2018-07-13 15:34:31 +0200
commit09210c4bcc065d9d91ef3c051902ad18252cd3c0 (patch)
treea6f5887720b2047a63fd37546b6bcc946d35a960 /security
parentxsk: always return ENOBUFS from sendmsg if there is no TX queue (diff)
downloadlinux-dev-09210c4bcc065d9d91ef3c051902ad18252cd3c0.tar.xz
linux-dev-09210c4bcc065d9d91ef3c051902ad18252cd3c0.zip
xsk: do not return EMSGSIZE in copy mode for packets larger than MTU
This patch stops returning EMSGSIZE from sendmsg in copy mode when the size of the packet is larger than the MTU. Just send it to the device so that it will drop it as in zero-copy mode. This makes the error reporting consistent between copy mode and zero-copy mode. Fixes: 35fcde7f8deb ("xsk: support for Tx") Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions