Skip to content

Commit

Permalink
modules/mqnic: Fix kernel version ifdef for netif_napi_add
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Forencich <alex@alexforencich.com>
  • Loading branch information
alexforencich committed Jul 4, 2023
1 parent a5e810e commit 4d2c207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mqnic/mqnic_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4d2c207

Please sign in to comment.