mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-14 01:53:12 +00:00
Fix GRO_DROP deprecation kernel 5.12
This commit is contained in:
parent
c0ce81745e
commit
e7e83f2593
@ -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…
Reference in New Issue
Block a user