Skip to content

Commit 7d82d0e

Browse files
committed
mlx4: Add support for persistent NAPI config to RX CQs
JIRA: https://issues.redhat.com/browse/RHEL-77816 Upstream Status: net.git commit c9191ea commit c9191ea Author: Joe Damato <jdamato@fastly.com> Date: Fri Oct 11 18:45:04 2024 +0000 mlx4: Add support for persistent NAPI config to RX CQs Use netif_napi_add_config to assign persistent per-NAPI config when initializing RX CQ NAPIs. Presently, struct napi_config only has support for two fields used for RX, so there is no need to support them with TX CQs, yet. Signed-off-by: Joe Damato <jdamato@fastly.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Link: https://patch.msgid.link/20241011184527.16393-10-jdamato@fastly.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Davide Caratti <dcaratti@redhat.com>
1 parent 862a86f commit 7d82d0e

File tree

1 file changed

+2
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx4

1 file changed

+2
-1
lines changed

drivers/net/ethernet/mellanox/mlx4/en_cq.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ int mlx4_en_activate_cq(struct mlx4_en_priv *priv, struct mlx4_en_cq *cq,
156156
break;
157157
case RX:
158158
cq->mcq.comp = mlx4_en_rx_irq;
159-
netif_napi_add(cq->dev, &cq->napi, mlx4_en_poll_rx_cq);
159+
netif_napi_add_config(cq->dev, &cq->napi, mlx4_en_poll_rx_cq,
160+
cq_idx);
160161
netif_napi_set_irq(&cq->napi, irq);
161162
napi_enable(&cq->napi);
162163
netif_queue_set_napi(cq->dev, cq_idx, NETDEV_QUEUE_TYPE_RX, &cq->napi);

0 commit comments

Comments
 (0)