mirror of
https://github.com/brektrou/rtl8821CU.git
synced 2026-03-22 15:39:05 +08:00
Merge pull request #134 from artemyto/kernel_5_12
Add kernel 5.12 compatibility
This commit is contained in:
@@ -355,7 +355,11 @@ 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_MERGED_FREE)
|
||||
#else
|
||||
if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP)
|
||||
#endif
|
||||
rx_ok = _TRUE;
|
||||
goto next;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user