]> git.droids-corp.org - dpdk.git/commit
net/sfc: validate queue span when parsing flow action RSS
authorIvan Malov <ivan.malov@oktetlabs.ru>
Mon, 10 Jan 2022 21:48:45 +0000 (00:48 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 25 Jan 2022 11:26:48 +0000 (12:26 +0100)
commit667151aec1ddf8669819ac39d3e86f40f815c213
tree0f65c7040f541af8097f63f5657608892f37bf8d
parent52b49ea06ffb2cfbef8fe9578149f1e2dba99e89
net/sfc: validate queue span when parsing flow action RSS

The current code silently shrinks the value if it exceeds
the supported maximum. Do not do that. Validate the value.

Fixes: d77d07391d4d ("net/sfc: support flow API RSS action")
Cc: stable@dpdk.org
Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
drivers/net/sfc/sfc_flow.c