From 0aaf0ca4bfc317f3da15feeb3a09a1d93e1febb6 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 1 Feb 2013 10:13:11 +0100 Subject: [PATCH] revert tc rate filter changes --- data/PVE/Network.pm | 10 +++++----- debian/changelog | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/data/PVE/Network.pm b/data/PVE/Network.pm index 6b8af87..fd5207e 100644 --- a/data/PVE/Network.pm +++ b/data/PVE/Network.pm @@ -16,12 +16,12 @@ sub setup_tc_rate_limit { run_command("/sbin/tc qdisc add dev $iface handle ffff: ingress"); - # virtio uses large packets 64K, so we need to set mtu to that - # value - else filter drops those packets and rate limit does not work. + # this does not work wit virtio - don't know why (setting "mtu 64kb" does not help) + #run_command("/sbin/tc filter add dev $iface parent ffff: protocol ip prio 50 u32 match ip src 0.0.0.0/0 police rate ${rate}bps burst ${burst}b drop flowid :1"); + # so we use avrate instead run_command("/sbin/tc filter add dev $iface parent ffff: " . - "protocol ip prio 50 u32 match ip src 0.0.0.0/0 " . - "police rate ${rate}bps burst ${burst}b " . - "mtu 64kb drop flowid :1"); + "protocol ip prio 50 estimator 1sec 8sec " . + "u32 match ip src 0.0.0.0/0 police avrate ${rate}bps drop flowid :1"); # tbf does not work for unknown reason #$TC qdisc add dev $DEV root tbf rate $RATE latency 100ms burst $BURST diff --git a/debian/changelog b/debian/changelog index 6b434fa..1e3e956 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,8 @@ libpve-common-perl (1.0-45) unstable; urgency=low * read_meminfo: query KSM page sharing + + * revert tc rate filter changes: they do not work as expected -- Proxmox Support Team Fri, 01 Feb 2013 09:04:27 +0100 -- 2.39.2