From ac90a311a388a0dc9a7e27d633d54da9c266b2ca Mon Sep 17 00:00:00 2001 From: clnhub Date: Mon, 8 Mar 2021 21:05:37 +0100 Subject: [PATCH] Add kernel 5.12(+) (GRO_DROP removed) support --- os_dep/linux/recv_linux.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/os_dep/linux/recv_linux.c b/os_dep/linux/recv_linux.c index 2f7b3e3..7fecc84 100644 --- a/os_dep/linux/recv_linux.c +++ b/os_dep/linux/recv_linux.c @@ -355,8 +355,12 @@ static int napi_recv(_adapter *padapter, int budget) #ifdef CONFIG_RTW_GRO if (pregistrypriv->en_gro) { +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 12, 0) if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP) rx_ok = _TRUE; +#else + rx_ok = _TRUE; +#endif goto next; } #endif /* CONFIG_RTW_GRO */