selftests: drv-net: rss_ctx: don't fail reconfigure test if queue offset not supported
Vast majority of drivers does not support queue offset. Simply return if the rss context + queue ntuple fails. Reviewed-by: Joe Damato <jdamato@fastly.com> Link: https://patch.msgid.link/20250201013040.725123-5-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
de379dfd9a
commit
c3da585509
1 changed files with 6 additions and 1 deletions
|
@ -260,7 +260,12 @@ def test_rss_queue_reconfigure(cfg, main_ctx=True):
|
|||
# change the table to target queues 0 and 2
|
||||
ethtool(f"-X {cfg.ifname} {ctx_ref} weight 1 0 1 0")
|
||||
# ntuple rule therefore targets queues 1 and 3
|
||||
ntuple2 = ethtool_create(cfg, "-N", flow)
|
||||
try:
|
||||
ntuple2 = ethtool_create(cfg, "-N", flow)
|
||||
except CmdExitFailure:
|
||||
ksft_pr("Driver does not support rss + queue offset")
|
||||
return
|
||||
|
||||
defer(ethtool, f"-N {cfg.ifname} delete {ntuple2}")
|
||||
# should replace existing filter
|
||||
ksft_eq(ntuple, ntuple2)
|
||||
|
|
Loading…
Add table
Reference in a new issue