net/mlx5e: Refactor mlx5e_eswitch_{*}rep() helpers
authorVlad Buslov <vladbu@nvidia.com>
Wed, 21 Apr 2021 18:52:43 +0000 (21:52 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 10 Jun 2021 01:36:09 +0000 (18:36 -0700)
commit0781015288ec7c7b734f3b69bbf1816729481f13
treec54ad0d6af16926a6e945076dfc534227777648d
parentec3be8873df3bf467ead27f7cedc896cbb2bd819
net/mlx5e: Refactor mlx5e_eswitch_{*}rep() helpers

Change the helper to functions to accept constant pointer to struct
net_device. This is necessary for following patches in series that pass
mlx5e_eswitch_rep() as a callback to kernel bridge infrastructure code.

Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Reviewed-by: Jianbo Liu <jianbol@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.h