mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2024-11-25 06:55:05 +00:00
Merge pull request #233 from CGarces/fix_5.12
Add kernel 5.12(+) (GRO_DROP removed) support
This commit is contained in:
commit
ab35c7e967
@ -355,8 +355,12 @@ static int napi_recv(_adapter *padapter, int budget)
|
|||||||
|
|
||||||
#ifdef CONFIG_RTW_GRO
|
#ifdef CONFIG_RTW_GRO
|
||||||
if (pregistrypriv->en_gro) {
|
if (pregistrypriv->en_gro) {
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 12, 0)
|
||||||
if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP)
|
if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP)
|
||||||
rx_ok = _TRUE;
|
rx_ok = _TRUE;
|
||||||
|
#else
|
||||||
|
rx_ok = _TRUE;
|
||||||
|
#endif
|
||||||
goto next;
|
goto next;
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_RTW_GRO */
|
#endif /* CONFIG_RTW_GRO */
|
||||||
|
Loading…
Reference in New Issue
Block a user