summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5
diff options
context:
space:
mode:
authorBodong Wang2019-06-29 00:36:15 +0200
committerSaeed Mahameed2019-07-02 01:40:30 +0200
commitf6455de0b0e52dcb11aeb503151b12ec87f9c5e4 (patch)
tree77007e908a9269e8d008a4fd52b3e5cf2c41f0a8 /include/linux/mlx5
parentnet/mlx5: Handle host PF vport mac/guid for ECPF (diff)
downloadkernel-qcow2-linux-f6455de0b0e52dcb11aeb503151b12ec87f9c5e4.tar.gz
kernel-qcow2-linux-f6455de0b0e52dcb11aeb503151b12ec87f9c5e4.tar.xz
kernel-qcow2-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 'include/linux/mlx5')
-rw-r--r--include/linux/mlx5/eswitch.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/mlx5/eswitch.h b/include/linux/mlx5/eswitch.h
index 36cb641188b0..d4731199edb4 100644
--- a/include/linux/mlx5/eswitch.h
+++ b/include/linux/mlx5/eswitch.h
@@ -12,9 +12,9 @@
#define MLX5_ESWITCH_MANAGER(mdev) MLX5_CAP_GEN(mdev, eswitch_manager)
enum {
- SRIOV_NONE,
- SRIOV_LEGACY,
- SRIOV_OFFLOADS
+ MLX5_ESWITCH_NONE,
+ MLX5_ESWITCH_LEGACY,
+ MLX5_ESWITCH_OFFLOADS
};
enum {