]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
net/mlx5e: Same max num channels for both nic and uplink profiles
authorSaeed Mahameed <saeedm@nvidia.com>
Mon, 23 Mar 2020 06:22:20 +0000 (23:22 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 16 Mar 2021 23:48:37 +0000 (16:48 -0700)
In downstream patches NIC netdev can change profile dynamically from
NIC mode to uplink mode and vise-versa. It is required that both profiles
must advertise the same max amount of tx/rx queues.

Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c

index a132fff7a980fb4ecb3649befdc18d8971afbf95..9156978c900daaf19c246c6a5e184c4a48b579b2 100644 (file)
@@ -1198,7 +1198,8 @@ static const struct mlx5e_profile mlx5e_uplink_rep_profile = {
        .update_carrier         = mlx5e_update_carrier,
        .rx_handlers            = &mlx5e_rx_handlers_rep,
        .max_tc                 = MLX5E_MAX_NUM_TC,
-       .rq_groups              = MLX5E_NUM_RQ_GROUPS(REGULAR),
+       /* XSK is needed so we can replace profile with NIC netdev */
+       .rq_groups              = MLX5E_NUM_RQ_GROUPS(XSK),
        .stats_grps             = mlx5e_ul_rep_stats_grps,
        .stats_grps_num         = mlx5e_ul_rep_stats_grps_num,
 };