]> git.droids-corp.org - dpdk.git/commit
net/mlx5: fix RSS consistency check of meter policy
authorBing Zhao <bingz@nvidia.com>
Mon, 18 Oct 2021 14:43:07 +0000 (17:43 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 10 Nov 2021 14:44:39 +0000 (15:44 +0100)
commit0ad28e873cd77dcc315c7ed2e91b1886dd7bfc8d
treecd5463b86f0c5947bb54a1bc605430da15c41bff
parent64be0e779fac9acd96088c62c30b98cca8d0148a
net/mlx5: fix RSS consistency check of meter policy

After yellow color actions in the metering policy were supported,
the RSS could be used for both green and yellow colors and only the
queues attribute could be different.

When specifying the attributes of a RSS, some fields can be ignored
and some default values will be used in PMD. For example, there is a
default RSS key in the PMD and it will be used to create the TIR if
nothing is provided by the application.

The default value cases were missed in the current implementation
and it would cause some false positives or crashes.

The comparison function should be adjusted to take all cases into
consideration when RSS is used for both green and yellow colors.

Fixes: 4b7bf3ffb473 ("net/mlx5: support yellow in meter policy validation")
Cc: stable@dpdk.org
Signed-off-by: Bing Zhao <bingz@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_flow_dv.c