Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net/mlx5: Rename total_vfs to total_vports

Macro MLX5_TOTAL_VPORTS() returns total number of vports. Therefore,
rename variable total_vfs to total_vports to improve code readability.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>

authored by

Parav Pandit and committed by
Saeed Mahameed
2aca1787 88d73849

+2 -2
+2 -2
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
··· 1287 1287 1288 1288 int esw_offloads_init_reps(struct mlx5_eswitch *esw) 1289 1289 { 1290 - int total_vfs = MLX5_TOTAL_VPORTS(esw->dev); 1290 + int total_vports = MLX5_TOTAL_VPORTS(esw->dev); 1291 1291 struct mlx5_core_dev *dev = esw->dev; 1292 1292 struct mlx5_eswitch_rep *rep; 1293 1293 u8 hw_id[ETH_ALEN], rep_type; 1294 1294 int vport; 1295 1295 1296 - esw->offloads.vport_reps = kcalloc(total_vfs, 1296 + esw->offloads.vport_reps = kcalloc(total_vports, 1297 1297 sizeof(struct mlx5_eswitch_rep), 1298 1298 GFP_KERNEL); 1299 1299 if (!esw->offloads.vport_reps)