]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8c2d99c56db708029e67250fddb4cfcfea202d55
treeb00068167c7582ed247a879870b7b46967d3c235
parent3b549ae8bc9519ff7fc1de3b1560a94a02a0a9ee
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