diff options
author | Bodong Wang <bodong@mellanox.com> | 2019-02-13 07:55:40 +0100 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-02-14 21:14:42 +0100 |
commit | b05af6aacdb920dc3bfd27d53ade7f680d43265c (patch) | |
tree | abb1c73c4ff4042e70b9d0b5ccc11ff827dd3fbe /include | |
parent | net/mlx5: Provide an alternative VF upper bound for ECPF (diff) | |
download | linux-b05af6aacdb920dc3bfd27d53ade7f680d43265c.tar.xz 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')
-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); |