mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-25 14:44:09 +00:00
Add kernel v5.12 support
This commit is contained in:
parent
9d19d2b184
commit
a8b3b99726
@ -399,13 +399,17 @@ static int napi_recv(_adapter *padapter, int budget)
|
||||
rx_ok = _FALSE;
|
||||
|
||||
#ifdef CONFIG_RTW_GRO
|
||||
/*
|
||||
/*
|
||||
cloned SKB use dataref to avoid kernel release it.
|
||||
But dataref changed in napi_gro_receive.
|
||||
So, we should prevent cloned SKB go into napi_gro_receive.
|
||||
*/
|
||||
if (pregistrypriv->en_gro && !skb_cloned(pskb)) {
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user