net/mlx5: E-switch, Use eswitch total_vports
authorParav Pandit <parav@mellanox.com>
Mon, 20 Jul 2020 11:27:54 +0000 (14:27 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 28 Jul 2020 09:37:36 +0000 (02:37 -0700)
commit8d6bd3c339a723ff2b21c432b2054f7dd96205ae
treeb00068167c7582ed247a879870b7b46967d3c235
parent0da3c12dd6fc08e40802fc102b00a37b5b415eeb
net/mlx5: E-switch, Use eswitch total_vports

Currently steering table and rx group initialization helper
routines works on the total_vports passed as input parameter.

Both eswitch helpers work on the mlx5_eswitch and thereby have access
to esw->total_vports. Hence use it directly instead of passing it
via function input arguments.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c