]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Remove mlx5e dependency from E-Switch sample
authorSaeed Mahameed <saeedm@nvidia.com>
Mon, 16 Aug 2021 18:58:19 +0000 (11:58 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 20 Aug 2021 04:50:35 +0000 (21:50 -0700)
commit27b69fe538dd721989f7ca44a2c2da8a9094ca96
tree3c04b95da1909dd7cf6859c5a1aafde09cbfc779
parent65c9b60895aa054bc5dca744a2a9f379bd26f2ab
net/mlx5e: Remove mlx5e dependency from E-Switch sample

mlx5/esw/sample.c doesn't really need mlx5e_priv object, we can remove
this redundant dependency by passing the eswitch object directly to
the sample object constructor.

Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/esw/sample.c
drivers/net/ethernet/mellanox/mlx5/core/esw/sample.h