OSDN Git Service

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)
commit5024fa95a144ef4ce9c0039155a553e59c3850be
tree3c04b95da1909dd7cf6859c5a1aafde09cbfc779
parentf444fea7896dbc267249d27f604082a51b8efca2
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