summaryrefslogtreecommitdiff
path: root/include/linux/mlx5/eswitch.h
diff options
context:
space:
mode:
authorParav Pandit <parav@nvidia.com>2021-03-02 21:27:47 +0200
committerSaeed Mahameed <saeedm@nvidia.com>2021-04-14 11:02:32 -0700
commit6308a5f06be08f3ea1f1a895a9ef54c7b65c4c35 (patch)
tree097acf44920b77798ce3d5f0baf9be7ad4d7c7b8 /include/linux/mlx5/eswitch.h
parent7d5ae47891929235c4a269b91996ab951cbf3c20 (diff)
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/eswitch.h')
-rw-r--r--include/linux/mlx5/eswitch.h3
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;
};