1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add MPTCP BPF Scheduler in interface and config to use them

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-04-29 19:35:11 +02:00
parent 31b29bf4cf
commit ff93ca8530
3 changed files with 13 additions and 1 deletions

View file

@ -67,6 +67,12 @@ global_multipath_settings() {
[ -z "$mptcp_checksum" ] || sysctl -qew net.mptcp.checksum_enabled="$mptcp_checksum"
[ -z "$mptcp_stale_loss_cnt" ] || sysctl -qew net.mptcp.stale_loss_cnt="$mptcp_stale_loss_cnt"
[ -z "$mptcp_pm_type" ] || sysctl -qew net.mptcp.pm_type="$mptcp_pm_type"
if [ -n "$mptcp_scheduler" ]; then
for scheduler in $(ls -1 /usr/share/bpf/scheduler/*.o); do
bpftool struct_ops register $scheduler 2>&1 >/dev/null
done
sysctl -qew net.mptcp.scheduler="$mptcp_scheduler"
fi
fi
[ -z "$congestion" ] || sysctl -qew net.ipv4.tcp_congestion_control="$congestion"
}