diff options
author | Parav Pandit <parav@nvidia.com> | 2021-03-02 22:27:47 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2021-04-14 21:02:32 +0300 |
commit | 6308a5f06be08f3ea1f1a895a9ef54c7b65c4c35 (patch) | |
tree | 097acf44920b77798ce3d5f0baf9be7ad4d7c7b8 /include/linux/mlx5 | |
parent | 7d5ae47891929235c4a269b91996ab951cbf3c20 (diff) | |
download | linux-6308a5f06be08f3ea1f1a895a9ef54c7b65c4c35.tar.xz |
net/mlx5: E-Switch, Make vport number u16
Vport number is 16-bit field in hardware. Make it u16.
Move location of vport in the structure so that it reduces a hole
in the structure.
Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r-- | include/linux/mlx5/eswitch.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/mlx5/eswitch.h b/include/linux/mlx5/eswitch.h index 429a710c5a99..9cf1da2883c6 100644 --- a/include/linux/mlx5/eswitch.h +++ b/include/linux/mlx5/eswitch.h @@ -152,8 +152,7 @@ mlx5_eswitch_vport_match_metadata_enabled(const struct mlx5_eswitch *esw) }; static inline u32 -mlx5_eswitch_get_vport_metadata_for_match(struct mlx5_eswitch *esw, - int vport_num) +mlx5_eswitch_get_vport_metadata_for_match(struct mlx5_eswitch *esw, u16 vport_num) { return 0; }; |