diff options
author | Bodong Wang <bodong@mellanox.com> | 2019-02-12 22:55:40 -0800 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-02-14 12:14:42 -0800 |
commit | b05af6aacdb920dc3bfd27d53ade7f680d43265c (patch) | |
tree | abb1c73c4ff4042e70b9d0b5ccc11ff827dd3fbe /include/linux/mlx5 | |
parent | feb393693316bd5de2c88a020f6ded51e3a4120b (diff) | |
download | linux-b05af6aacdb920dc3bfd27d53ade7f680d43265c.tar.gz linux-b05af6aacdb920dc3bfd27d53ade7f680d43265c.tar.bz2 linux-b05af6aacdb920dc3bfd27d53ade7f680d43265c.zip |
net/mlx5: E-Switch, Normalize the name of uplink vport number
Driver used to name uplink vport as FDB_UPLINK_VPORT, it's hard to
comply with the same naming convention along with the introduction of
other vports. Use MLX5_VPORT as the prefix for such vports and
relocate the uplink vport definition to public header file for the
benefits of both net and IB drivers.
This patch doesn't change any functionality.
Signed-off-by: Bodong Wang <bodong@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r-- | include/linux/mlx5/vport.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mlx5/vport.h b/include/linux/mlx5/vport.h index 1654b911cdb2..2e2928eacd97 100644 --- a/include/linux/mlx5/vport.h +++ b/include/linux/mlx5/vport.h @@ -42,6 +42,10 @@ enum { MLX5_CAP_INLINE_MODE_NOT_REQUIRED, }; +enum { + MLX5_VPORT_UPLINK = 0xffff +}; + u8 mlx5_query_vport_state(struct mlx5_core_dev *mdev, u8 opmod, u16 vport); int mlx5_modify_vport_admin_state(struct mlx5_core_dev *mdev, u8 opmod, u16 vport, u8 state); |