diff options
author | Parav Pandit <parav@mellanox.com> | 2019-04-21 20:34:45 -0500 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-05-01 14:39:17 -0700 |
commit | ee813f314b2486549cd06e9e2c4d56ccab005609 (patch) | |
tree | 4226f95f72f4068bfeef2d8c9625600bbd206a6a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 786ef904b43b9ddb675f55ef05afad5f07fb49d0 (diff) |
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 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions