mirror of
https://github.com/RinCat/RTL88x2BU-Linux-Driver.git
synced 2024-12-26 01:51:34 +00:00
Linux 5.12 compat: GRO_DROP
This commit is contained in:
parent
f4d598d634
commit
f3f32eb5f7
@ -405,7 +405,11 @@ static int napi_recv(_adapter *padapter, int budget)
|
|||||||
So, we should prevent cloned SKB go into napi_gro_receive.
|
So, we should prevent cloned SKB go into napi_gro_receive.
|
||||||
*/
|
*/
|
||||||
if (pregistrypriv->en_gro && !skb_cloned(pskb)) {
|
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)
|
if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP)
|
||||||
|
#endif
|
||||||
rx_ok = _TRUE;
|
rx_ok = _TRUE;
|
||||||
goto next;
|
goto next;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user