net/mlx5: E-switch, Add eswitch helpers for SF vport
authorParav Pandit <parav@nvidia.com>
Sat, 12 Dec 2020 06:12:20 +0000 (22:12 -0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 22 Jan 2021 19:32:10 +0000 (11:32 -0800)
commitd970812b91d0fa685cde35e9b3f46a48d049f4e3
tree5ca110cc7afdc5a905767e66bd1d6ea30352d7ba
parentd7f33a457beef8d522f346d18ab0a1e3366dc20f
net/mlx5: E-switch, Add eswitch helpers for SF vport

Add helpers to enable/disable eswitch port, register its devlink port and
load its representor.

Signed-off-by: Vu Pham <vuhuong@nvidia.com>
Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c