]> 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)
commitdbf8bb6759ee6b55b100a99386967663440bfbfb
tree858d4d16a1a04bcb862f0e0a92150f88d5b44f13
parentfb740999b2d6e0c1a714f918689570d718f87c01
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