diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2023-03-06 21:17:25 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2023-03-06 21:17:25 +0100 |
commit | 47c8bd67b0852f699fa2d4d6780bb4444762e3d2 (patch) | |
tree | 633f3fddec57a84a209612915a9aa819e282e0fb /hosts/vidhar/network | |
parent | 43bc14032d39a06f04d302977aa72558ee5a91e6 (diff) | |
download | nixos-47c8bd67b0852f699fa2d4d6780bb4444762e3d2.tar nixos-47c8bd67b0852f699fa2d4d6780bb4444762e3d2.tar.gz nixos-47c8bd67b0852f699fa2d4d6780bb4444762e3d2.tar.bz2 nixos-47c8bd67b0852f699fa2d4d6780bb4444762e3d2.tar.xz nixos-47c8bd67b0852f699fa2d4d6780bb4444762e3d2.zip |
vidhar: cake tuning
Diffstat (limited to 'hosts/vidhar/network')
-rw-r--r-- | hosts/vidhar/network/dsl.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hosts/vidhar/network/dsl.nix b/hosts/vidhar/network/dsl.nix index 7a1dab58..403b0fad 100644 --- a/hosts/vidhar/network/dsl.nix +++ b/hosts/vidhar/network/dsl.nix | |||
@@ -66,14 +66,14 @@ in { | |||
66 | text = '' | 66 | text = '' |
67 | ethtool -K telekom tso off gso off gro off | 67 | ethtool -K telekom tso off gso off gro off |
68 | 68 | ||
69 | tc qdisc replace dev "${pppInterface}" root cake pppoe-ptm nat bandwidth 35mbit | 69 | tc qdisc replace dev "${pppInterface}" root cake pppoe-ptm nat diffserv4 wash bandwidth 35mbit |
70 | 70 | ||
71 | modprobe ifb | 71 | modprobe ifb |
72 | ip link del "ifb4${pppInterface}" || true | 72 | ip link del "ifb4${pppInterface}" || true |
73 | ip link add name "ifb4${pppInterface}" type ifb | 73 | ip link add name "ifb4${pppInterface}" type ifb |
74 | tc qdisc del dev "${pppInterface}" ingress || true | 74 | tc qdisc del dev "${pppInterface}" ingress || true |
75 | tc qdisc add dev "${pppInterface}" handle ffff: ingress | 75 | tc qdisc add dev "${pppInterface}" handle ffff: ingress |
76 | tc qdisc replace dev "ifb4${pppInterface}" root cake pppoe-ptm bandwidth 93mbit | 76 | tc qdisc replace dev "ifb4${pppInterface}" root cake pppoe-ptm diffserv4 bandwidth 93mbit |
77 | ip link set "ifb4${pppInterface}" up | 77 | ip link set "ifb4${pppInterface}" up |
78 | tc filter add dev "${pppInterface}" parent ffff: matchall action mirred egress redirect dev "ifb4${pppInterface}" | 78 | tc filter add dev "${pppInterface}" parent ffff: matchall action mirred egress redirect dev "ifb4${pppInterface}" |
79 | ''; | 79 | ''; |