summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
diff options
context:
space:
mode:
authorParav Pandit2019-04-22 03:34:45 +0200
committerSaeed Mahameed2019-05-01 23:39:17 +0200
commitee813f314b2486549cd06e9e2c4d56ccab005609 (patch)
tree4226f95f72f4068bfeef2d8c9625600bbd206a6a /drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
parentnet/mlx5: Reuse mlx5_esw_for_each_vf_vport macro in two files (diff)
downloadkernel-qcow2-linux-ee813f314b2486549cd06e9e2c4d56ccab005609.tar.gz
kernel-qcow2-linux-ee813f314b2486549cd06e9e2c4d56ccab005609.tar.xz
kernel-qcow2-linux-ee813f314b2486549cd06e9e2c4d56ccab005609.zip
net/mlx5: Use available mlx5_vport struct
Several functions need to access mlx5_vport and vport_num. When these functions are called, caller already has mlx5_vport* available. Hence pass such mlx5_vport pointer. This is preparation patch to add error checks to mlx5_eswitch_get_vport() and to return error status. By doing so, reduce places where error check of mlx5_eswitch_get_vport() can be avoided. While doing such change, mlx5_eswitch_query_vport_drop_stats() gets corrected to work on vport, instead of vport_idx. Signed-off-by: Parav Pandit <parav@mellanox.com> Reviewed-by: Bodong Wang <bodong@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/eswitch.h')
0 files changed, 0 insertions, 0 deletions