From b77d6abf54556b2a8e64ea0551e2b7919f45a6cf Mon Sep 17 00:00:00 2001 From: Victor Golovanenko Date: Sat, 1 May 2021 19:28:16 +0300 Subject: [PATCH] Linux 5.12 compat: GRO_DROP Changes related to removal of GRO_DROP --- 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 89f3bba..2942111 100644 --- a/os_dep/linux/recv_linux.c +++ b/os_dep/linux/recv_linux.c @@ -354,7 +354,11 @@ 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) +#else + if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_MERGED_FREE) +#endif rx_ok = _TRUE; goto next; }