Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kernel 5.12(+) (GRO_DROP removed) support #233

Merged
merged 1 commit into from Apr 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions os_dep/linux/recv_linux.c
Expand Up @@ -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 */
Expand Down