]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: don't allow disabling queues with umem installed
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 1 Oct 2018 12:51:36 +0000 (14:51 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 5 Oct 2018 07:31:01 +0000 (09:31 +0200)
commit6644844d94801bdfc483aa246ab8eb838f13b3f7
tree858d4d16a1a04bcb862f0e0a92150f88d5b44f13
parent6659744ba95b2f9c7cd6a64c49105baa44e8ffe4
ethtool: don't allow disabling queues with umem installed

We already check the RSS indirection table does not use queues which
would be disabled by channel reconfiguration. Make sure user does not
try to disable queues which have a UMEM and zero-copy AF_XDP socket
installed.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/net/xdp_sock.h
net/core/ethtool.c
net/xdp/xdp_umem.c