mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
modules/mqnic: Fix kernel version ifdef for netif_napi_add
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
parent
a5e810eedc
commit
4d2c2071cc
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user