net/mlx5e: Keep direct reference to mlx5_core_dev in tc ct
authorAriel Levkovich <lariel@nvidia.com>
Sun, 30 Aug 2020 19:38:11 +0000 (22:38 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 23 Sep 2020 22:44:38 +0000 (15:44 -0700)
commit670c239a648f0a5e19d05d8256df292564cc0c0d
tree6284250147eee95b58c4724997ae66dfbed3ae79
parent89fbdbae9b35739bb93bbc15476e846415d1eda2
net/mlx5e: Keep direct reference to mlx5_core_dev in tc ct

Keep and use a direct reference to the mlx5 core device in all of
tc_ct code instead of accessing it via a pointer to mlx5 eswitch
in order to support nic mode ct offload for VF devices that don't
have a valid eswitch pointer set.

Signed-off-by: Ariel Levkovich <lariel@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c