aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/drivers/net/hw/rss_ctx.py
diff options
context:
space:
mode:
authorDaniel Zahka <daniel.zahka@gmail.com>2024-10-11 11:35:47 -0700
committerPaolo Abeni <pabeni@redhat.com>2024-10-17 10:22:01 +0200
commit42dc431f5d0ea9e9c9caf74dcb5b290ce4dd80b4 (patch)
tree34a6aaaaae7d7d6369c0987746af26a65d538b1a /tools/testing/selftests/drivers/net/hw/rss_ctx.py
parent5cb409b3960e75467cbb0a8e1e5596b4490570e3 (diff)
downloadlinux-42dc431f5d0ea9e9c9caf74dcb5b290ce4dd80b4.tar.gz
linux-42dc431f5d0ea9e9c9caf74dcb5b290ce4dd80b4.tar.bz2
linux-42dc431f5d0ea9e9c9caf74dcb5b290ce4dd80b4.zip
ethtool: rss: prevent rss ctx deletion when in use
ntuple filters can specify an rss context to use for packet hashing and queue selection. When a filter is referencing an rss context, it should be invalid for that context to be deleted. A list of active ntuple filters and their associated rss contexts can be compiled by querying a device's ethtool_ops.get_rxnfc. This patch checks to see if any ntuple filters are referencing an rss context during context deletion, and prevents the deletion if the requested context is still in use. Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/testing/selftests/drivers/net/hw/rss_ctx.py')
0 files changed, 0 insertions, 0 deletions