diff options
author | Bodong Wang <bodong@mellanox.com> | 2019-06-28 22:36:15 +0000 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-07-01 16:40:30 -0700 |
commit | f6455de0b0e52dcb11aeb503151b12ec87f9c5e4 (patch) | |
tree | 77007e908a9269e8d008a4fd52b3e5cf2c41f0a8 /drivers/infiniband/hw/mlx5/ib_rep.h | |
parent | net/mlx5: Handle host PF vport mac/guid for ECPF (diff) | |
download | wireguard-linux-f6455de0b0e52dcb11aeb503151b12ec87f9c5e4.tar.xz wireguard-linux-f6455de0b0e52dcb11aeb503151b12ec87f9c5e4.zip |
net/mlx5: E-Switch, Refactor eswitch SR-IOV interface
Devlink eswitch mode is not necessarily related to SR-IOV, e.g, ECPF
can be at offload mode when SR-IOV is not enabled.
Rename the interface and eswitch mode names to decouple from SR-IOV,
and cleanup eswitch messages accordingly.
Signed-off-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/ib_rep.h')
-rw-r--r-- | drivers/infiniband/hw/mlx5/ib_rep.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/ib_rep.h b/drivers/infiniband/hw/mlx5/ib_rep.h index 22adce2d6795..478503ce20df 100644 --- a/drivers/infiniband/hw/mlx5/ib_rep.h +++ b/drivers/infiniband/hw/mlx5/ib_rep.h @@ -28,7 +28,7 @@ struct net_device *mlx5_ib_get_rep_netdev(struct mlx5_eswitch *esw, #else /* CONFIG_MLX5_ESWITCH */ static inline u8 mlx5_ib_eswitch_mode(struct mlx5_eswitch *esw) { - return SRIOV_NONE; + return MLX5_ESWITCH_NONE; } static inline |