Skip to content

Commit

Permalink
net/mlx5e: xsk: Set napi_id to support busy polling
Browse files Browse the repository at this point in the history
xdp_rxq_info_reg should get the actual napi_id, not 0, in order to
support socket busy polling properly.

Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Maxim Mikityanskiy authored and Jakub Kicinski committed Oct 3, 2022
1 parent 082a9ed commit a2740f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/mellanox/mlx5/core/en_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ static int mlx5e_init_rxq_rq(struct mlx5e_channel *c, struct mlx5e_params *param
if (err)
return err;

return xdp_rxq_info_reg(&rq->xdp_rxq, rq->netdev, rq->ix, 0);
return xdp_rxq_info_reg(&rq->xdp_rxq, rq->netdev, rq->ix, c->napi.napi_id);
}

static int mlx5_rq_shampo_alloc(struct mlx5_core_dev *mdev,
Expand Down

0 comments on commit a2740f5

Please sign in to comment.