mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 21:56:42 +00:00
RTL8812AU: Fix building with 5.12
This commit is contained in:
parent
62b72db072
commit
a2ade7655f
@ -0,0 +1,26 @@
|
|||||||
|
From e7e83f2593c9e67e3ee50d032f1ad39fe47ea81d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Carlos <CGarces@users.noreply.github.com>
|
||||||
|
Date: Sat, 3 Apr 2021 14:38:14 +0000
|
||||||
|
Subject: [PATCH] Fix GRO_DROP deprecation kernel 5.12
|
||||||
|
|
||||||
|
---
|
||||||
|
os_dep/linux/recv_linux.c | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/os_dep/linux/recv_linux.c b/os_dep/linux/recv_linux.c
|
||||||
|
index 2f7b3e37..7fecc843 100644
|
||||||
|
--- a/os_dep/linux/recv_linux.c
|
||||||
|
+++ b/os_dep/linux/recv_linux.c
|
||||||
|
@@ -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 */
|
Loading…
x
Reference in New Issue
Block a user