]> asedeno.scripts.mit.edu Git - linux.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)
commit1661d346628115c364e2b7d5b15a64ca3bd0dbd4
tree858d4d16a1a04bcb862f0e0a92150f88d5b44f13
parentb8c8a2e2e3758be93959587e6b19aadbb0ce7275
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