mirror of
git://git.proxmox.com/git/pve-common.git
synced 2025-03-22 06:50:42 +03:00
revert tc rate filter changes
This commit is contained in:
parent
a01c54654f
commit
0aaf0ca4bf
@ -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
|
||||
|
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -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 <support@proxmox.com> Fri, 01 Feb 2013 09:04:27 +0100
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user