net/mlx5e: TC, refactor access to hash key
authorOz Shlomo <ozsh@nvidia.com>
Tue, 6 Jun 2023 07:12:16 +0000 (00:12 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 7 Jun 2023 21:00:44 +0000 (14:00 -0700)
commitde1f0a650824ed1905d5d48190f65f309cee5163
tree1e93e3e55f0fb0c32106042723a207aca33a2d62
parentf4692ab13a1f7ad2c2098b838c2820c113ce8a07
net/mlx5e: TC, refactor access to hash key

Currently, a temp object is filled and used as a key for rhashtable_lookup.
Lookups will only works while key remains the first attribute in the
relevant rhashtable node object.

Fix this by passing a key, instead of a object containing the key.

Signed-off-by: Oz Shlomo <ozsh@nvidia.com>
Reviewed-by: Paul Blakey <paulb@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc/act_stats.c