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.
Showing the changes to include/linux (1 of 11 files). Show all
Unified · Split
| @@ -12,9 +12,9 @@ · 11 unmodified lines | |||
| 12 | #define MLX5_ESWITCH_MANAGER(mdev) MLX5_CAP_GEN(mdev, eswitch_manager) | 12 | #define MLX5_ESWITCH_MANAGER(mdev) MLX5_CAP_GEN(mdev, eswitch_manager) |
| 13 | 13 | ||
| 14 | enum { | 14 | enum { |
| 15 | SRIOV_NONE, | 15 | MLX5_ESWITCH_NONE, |
| 16 | SRIOV_LEGACY, | 16 | MLX5_ESWITCH_LEGACY, |
| 17 | SRIOV_OFFLOADS | 17 | MLX5_ESWITCH_OFFLOADS |
| 18 | }; | 18 | }; |
| 19 | 19 | ||
| 20 | enum { | 20 | enum { |