Skip to content

Commit

Permalink
net/mlx5: Fix the macro for accessing EC VF vports
Browse files Browse the repository at this point in the history
The last value is not set correctly. This results in representors not
being created for all EC VFs when the base value is higher than 0.

Fixes: a7719b2 ("net/mlx5: Add management of EC VF vports")
Signed-off-by: Daniel Jurgens <danielj@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
  • Loading branch information
Daniel Jurgens authored and Saeed Mahameed committed Jun 16, 2023
1 parent c8013a1 commit b3bd689
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,7 @@ void mlx5e_tc_clean_fdb_peer_flows(struct mlx5_eswitch *esw);
index, \
vport, \
MLX5_CAP_GEN_2((esw->dev), ec_vf_vport_base), \
MLX5_CAP_GEN_2((esw->dev), ec_vf_vport_base) +\
(last) - 1)

struct mlx5_eswitch *mlx5_devlink_eswitch_get(struct devlink *devlink);
Expand Down

0 comments on commit b3bd689

Please sign in to comment.