Linux 5.12 compat: GRO_DROP

This commit is contained in:
Mikhail Pogorelov
2021-05-18 12:22:39 +03:00
committed by GitHub
parent f1bc7e86c4
commit d4a3d37441

View File

@@ -355,7 +355,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_MERGED_FREE)
#else
if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP)
#endif
rx_ok = _TRUE;
goto next;
}