From 4d2c2071cc93653724f1e806cfb1916ac83d6e81 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Mon, 3 Jul 2023 22:54:34 -0700 Subject: [PATCH] modules/mqnic: Fix kernel version ifdef for netif_napi_add Signed-off-by: Alex Forencich --- modules/mqnic/mqnic_netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mqnic/mqnic_netdev.c b/modules/mqnic/mqnic_netdev.c index b53d4e209..a0ac96c75 100644 --- a/modules/mqnic/mqnic_netdev.c +++ b/modules/mqnic/mqnic_netdev.c @@ -42,7 +42,7 @@ int mqnic_start_port(struct net_device *ndev) goto fail; } -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0) netif_napi_add(ndev, &cq->napi, mqnic_poll_rx_cq); #else netif_napi_add(ndev, &cq->napi, mqnic_poll_rx_cq, NAPI_POLL_WEIGHT);