mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-09 05:27:59 +08:00
🤞 Sync 2026-10-29 22:46:41
This commit is contained in:
1 parent
ff521a5a6a
commit
8d20d896c0
78 files changed
+16387
-1210
No files matched your search
+1
-1
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=mptcp
|
||||
PKG_VERSION:=6.1
|
||||
PKG_RELEASE:=29
|
||||
PKG_RELEASE:=30
|
||||
|
||||
PKG_MAINTAINER:=Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
|
||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
@@ -51,10 +51,19 @@ esac
|
||||
# Legacy v0.9x scheduler names carried over to a 6.x kernel: only the names
|
||||
# that never exist upstream are migrated (BPF schedulers are not listed in
|
||||
# available_schedulers until their object is registered, so they must not be
|
||||
# touched here).
|
||||
# touched here). BLEST and ECF have a BPF port: when its object is
|
||||
# installed, the choice is kept on it instead of going back to 'default'.
|
||||
if [ -f /proc/sys/net/mptcp/available_schedulers ]; then
|
||||
case "$(uci -q get network.globals.mptcp_scheduler)" in
|
||||
blest|roundrobin|redundant|ecf)
|
||||
blest|ecf)
|
||||
_sched="bpf_$(uci -q get network.globals.mptcp_scheduler)"
|
||||
[ -f "/usr/share/bpf/scheduler/mptcp_${_sched}.o" ] || _sched='default'
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set network.globals.mptcp_scheduler='${_sched}'
|
||||
commit network
|
||||
EOF
|
||||
;;
|
||||
roundrobin|redundant)
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set network.globals.mptcp_scheduler='default'
|
||||
commit network
|
||||
|
||||
Reference in new issue
Block a user