mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-27 08:12:33 +00:00
net: improve ingress tc filter
Instead of doing a dummy "0 == 0" comparison with the u32 filter just use the 'basic' filter.
This commit is contained in:
parent
b7248cc7b1
commit
1b915170db
@ -92,7 +92,7 @@ sub setup_tc_rate_limit {
|
||||
|
||||
run_command("/sbin/tc qdisc add dev $iface handle ffff: ingress");
|
||||
run_command("/sbin/tc filter add dev $iface parent ffff: " .
|
||||
"protocol all prio 50 u32 match u32 0 0 " .
|
||||
"prio 50 basic " .
|
||||
"police rate ${rate}bps burst ${burst}b mtu 64kb " .
|
||||
"drop flowid :1");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user