summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2023-03-06 21:17:25 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2023-03-06 21:17:25 +0100
commit47c8bd67b0852f699fa2d4d6780bb4444762e3d2 (patch)
tree633f3fddec57a84a209612915a9aa819e282e0fb
parent43bc14032d39a06f04d302977aa72558ee5a91e6 (diff)
downloadnixos-47c8bd67b0852f699fa2d4d6780bb4444762e3d2.tar
nixos-47c8bd67b0852f699fa2d4d6780bb4444762e3d2.tar.gz
nixos-47c8bd67b0852f699fa2d4d6780bb4444762e3d2.tar.bz2
nixos-47c8bd67b0852f699fa2d4d6780bb4444762e3d2.tar.xz
nixos-47c8bd67b0852f699fa2d4d6780bb4444762e3d2.zip
vidhar: cake tuning
-rw-r--r--hosts/vidhar/dns/default.nix1
-rw-r--r--hosts/vidhar/network/dsl.nix4
2 files changed, 3 insertions, 2 deletions
diff --git a/hosts/vidhar/dns/default.nix b/hosts/vidhar/dns/default.nix
index ade884e7..11e6f55f 100644
--- a/hosts/vidhar/dns/default.nix
+++ b/hosts/vidhar/dns/default.nix
@@ -26,6 +26,7 @@ in {
26 root-hints = "${pkgs.dns-root-data}/root.hints"; 26 root-hints = "${pkgs.dns-root-data}/root.hints";
27 trust-anchor-file = "${pkgs.dns-root-data}/root.key"; 27 trust-anchor-file = "${pkgs.dns-root-data}/root.key";
28 trust-anchor-signaling = false; 28 trust-anchor-signaling = false;
29 ip-dscp = 20;
29 30
30 num-threads = 12; 31 num-threads = 12;
31 so-reuseport = true; 32 so-reuseport = true;
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 '';