mirror of
https://github.com/amazingfate/rtl8723ds.git
synced 2025-10-14 04:46:04 +01:00
fix build for 5.12
Signed-off-by: Icenowy Zheng <icenowy@sipeed.com>
This commit is contained in:
parent
6fde63d7c1
commit
4bc94be2c6
@ -359,7 +359,11 @@ 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_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…
x
Reference in New Issue
Block a user