net: ethtool: prevent flow steering to RSS contexts which don't exist
authorJakub Kicinski <kuba@kernel.org>
Thu, 6 Feb 2025 23:53:28 +0000 (15:53 -0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 10 Feb 2025 16:26:50 +0000 (08:26 -0800)
commitde7f7582dff292832fbdeaeff34e6b2ee6f9f95f
treecf735134c9f332cf710683d5672e98beaa0ee122
parent34c84b3948900be8cc957aff4ef33006126a3389
net: ethtool: prevent flow steering to RSS contexts which don't exist

Since commit 42dc431f5d0e ("ethtool: rss: prevent rss ctx deletion
when in use") we prevent removal of RSS contexts pointed to by
existing flow rules. Core should also prevent creation of rules
which point to RSS context which don't exist in the first place.

Reviewed-by: Joe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20250206235334.1425329-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/ioctl.c