mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-30 01:52:51 +00:00
ucentral: development update
* update netifd * update hostapd * update mt76 * update maverick * add dynamic vlan * update ucentral-client * update ucentral-schema * update ucode * update 5.10 patches * fix realtek Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
From 16ff9017e964d6429efeaad3e767522cb29da244 Mon Sep 17 00:00:00 2001
|
||||
From 0f37bb5919d96aaca7b0d06b56d37dabba87b190 Mon Sep 17 00:00:00 2001
|
||||
From: Felix Fietkau <nbd@nbd.name>
|
||||
Date: Sat, 24 Oct 2020 21:14:16 +0200
|
||||
Subject: [PATCH 01/39] kernel: add linux 5.10 support
|
||||
Subject: [PATCH 01/45] kernel: add linux 5.10 support
|
||||
|
||||
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
---
|
||||
@@ -34,6 +34,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
...threaded-able-napi-poll-loop-support.patch | 261 +
|
||||
...tribute-to-control-napi-threaded-mod.patch | 177 +
|
||||
...ween-napi-kthread-mode-and-busy-poll.patch | 93 +
|
||||
...up-on-napi_disable-for-threaded-napi.patch | 53 +
|
||||
...y-switchdev-of-disappearance-of-old-.patch | 126 +
|
||||
...r-when-a-non-legacy-FDB-operation-fa.patch | 52 +
|
||||
...e-switchdev_notifier_fdb_info-in-dsa.patch | 226 +
|
||||
@@ -218,7 +219,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
.../pending-5.10/834-ledtrig-libata.patch | 149 +
|
||||
...40-hwrng-bcm2835-set-quality-to-1000.patch | 26 +
|
||||
.../pending-5.10/920-mangle_bootargs.patch | 71 +
|
||||
213 files changed, 37353 insertions(+), 54 deletions(-)
|
||||
214 files changed, 37406 insertions(+), 54 deletions(-)
|
||||
create mode 100644 target/linux/generic/backport-5.10/010-Kbuild-don-t-hardcode-path-to-awk-in-scripts-ld-vers.patch
|
||||
create mode 100644 target/linux/generic/backport-5.10/011-kbuild-export-SUBARCH.patch
|
||||
create mode 100644 target/linux/generic/backport-5.10/071-crypto-arm-chacha-neon-optimize-for-non-block-size-m.patch
|
||||
@@ -240,6 +241,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
create mode 100644 target/linux/generic/backport-5.10/601-v5.12-net-implement-threaded-able-napi-poll-loop-support.patch
|
||||
create mode 100644 target/linux/generic/backport-5.10/602-v5.12-net-add-sysfs-attribute-to-control-napi-threaded-mod.patch
|
||||
create mode 100644 target/linux/generic/backport-5.10/603-v5.12-net-fix-race-between-napi-kthread-mode-and-busy-poll.patch
|
||||
create mode 100644 target/linux/generic/backport-5.10/604-v5.12-net-fix-hangup-on-napi_disable-for-threaded-napi.patch
|
||||
create mode 100644 target/linux/generic/backport-5.10/770-v5.12-net-bridge-notify-switchdev-of-disappearance-of-old-.patch
|
||||
create mode 100644 target/linux/generic/backport-5.10/771-v5.12-net-dsa-be-louder-when-a-non-legacy-FDB-operation-fa.patch
|
||||
create mode 100644 target/linux/generic/backport-5.10/772-v5.12-net-dsa-don-t-use-switchdev_notifier_fdb_info-in-dsa.patch
|
||||
@@ -3849,6 +3851,65 @@ index 0000000000..dddc35918e
|
||||
+ set_current_state(TASK_INTERRUPTIBLE);
|
||||
+ }
|
||||
+ __set_current_state(TASK_RUNNING);
|
||||
diff --git a/target/linux/generic/backport-5.10/604-v5.12-net-fix-hangup-on-napi_disable-for-threaded-napi.patch b/target/linux/generic/backport-5.10/604-v5.12-net-fix-hangup-on-napi_disable-for-threaded-napi.patch
|
||||
new file mode 100644
|
||||
index 0000000000..4b83641291
|
||||
--- /dev/null
|
||||
+++ b/target/linux/generic/backport-5.10/604-v5.12-net-fix-hangup-on-napi_disable-for-threaded-napi.patch
|
||||
@@ -0,0 +1,53 @@
|
||||
+From: Paolo Abeni <pabeni@redhat.com>
|
||||
+Date: Fri, 9 Apr 2021 17:24:17 +0200
|
||||
+Subject: [PATCH] net: fix hangup on napi_disable for threaded napi
|
||||
+
|
||||
+napi_disable() is subject to an hangup, when the threaded
|
||||
+mode is enabled and the napi is under heavy traffic.
|
||||
+
|
||||
+If the relevant napi has been scheduled and the napi_disable()
|
||||
+kicks in before the next napi_threaded_wait() completes - so
|
||||
+that the latter quits due to the napi_disable_pending() condition,
|
||||
+the existing code leaves the NAPI_STATE_SCHED bit set and the
|
||||
+napi_disable() loop waiting for such bit will hang.
|
||||
+
|
||||
+This patch addresses the issue by dropping the NAPI_STATE_DISABLE
|
||||
+bit test in napi_thread_wait(). The later napi_threaded_poll()
|
||||
+iteration will take care of clearing the NAPI_STATE_SCHED.
|
||||
+
|
||||
+This also addresses a related problem reported by Jakub:
|
||||
+before this patch a napi_disable()/napi_enable() pair killed
|
||||
+the napi thread, effectively disabling the threaded mode.
|
||||
+On the patched kernel napi_disable() simply stops scheduling
|
||||
+the relevant thread.
|
||||
+
|
||||
+v1 -> v2:
|
||||
+ - let the main napi_thread_poll() loop clear the SCHED bit
|
||||
+
|
||||
+Reported-by: Jakub Kicinski <kuba@kernel.org>
|
||||
+Fixes: 29863d41bb6e ("net: implement threaded-able napi poll loop support")
|
||||
+Signed-off-by: Paolo Abeni <pabeni@redhat.com>
|
||||
+Reviewed-by: Eric Dumazet <edumazet@google.com>
|
||||
+Link: https://lore.kernel.org/r/883923fa22745a9589e8610962b7dc59df09fb1f.1617981844.git.pabeni@redhat.com
|
||||
+Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
||||
+---
|
||||
+
|
||||
+--- a/net/core/dev.c
|
||||
++++ b/net/core/dev.c
|
||||
+@@ -6951,7 +6951,7 @@ static int napi_thread_wait(struct napi_
|
||||
+
|
||||
+ set_current_state(TASK_INTERRUPTIBLE);
|
||||
+
|
||||
+- while (!kthread_should_stop() && !napi_disable_pending(napi)) {
|
||||
++ while (!kthread_should_stop()) {
|
||||
+ /* Testing SCHED_THREADED bit here to make sure the current
|
||||
+ * kthread owns this napi and could poll on this napi.
|
||||
+ * Testing SCHED bit is not enough because SCHED bit might be
|
||||
+@@ -6969,6 +6969,7 @@ static int napi_thread_wait(struct napi_
|
||||
+ set_current_state(TASK_INTERRUPTIBLE);
|
||||
+ }
|
||||
+ __set_current_state(TASK_RUNNING);
|
||||
++
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
diff --git a/target/linux/generic/backport-5.10/770-v5.12-net-bridge-notify-switchdev-of-disappearance-of-old-.patch b/target/linux/generic/backport-5.10/770-v5.12-net-bridge-notify-switchdev-of-disappearance-of-old-.patch
|
||||
new file mode 100644
|
||||
index 0000000000..c43cb4d1f2
|
||||
|
||||
Reference in New Issue
Block a user