diff options
author | Parav Pandit <parav@mellanox.com> | 2020-07-20 14:10:16 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2020-07-28 02:37:34 -0700 |
commit | 0da3c12dd6fc08e40802fc102b00a37b5b415eeb (patch) | |
tree | cc2ddb42b84c703b97b0a8d4f79c8d53f6a8416c /drivers/mfd/twl6040.c | |
parent | 8b95bda47c73625a06561657c7b21e5874833567 (diff) |
net/mlx5: E-switch, Reuse total_vports and avoid duplicate nvports
Total e-switch vports are already stored in mlx5_eswitch total_vports.
Avoid copy of it in nvports and reuse existing total_vports calculation.
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>
Diffstat (limited to 'drivers/mfd/twl6040.c')
0 files changed, 0 insertions, 0 deletions