Fix kernel 5.12 build

pull/127/head
smp79 5 years ago
parent 046d5be1af
commit efd84db37d

@ -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 */

Loading…
Cancel
Save