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:
Wolfgang Bumiller 2016-03-08 15:36:24 +01:00 committed by Dietmar Maurer
parent b7248cc7b1
commit 1b915170db

View File

@ -92,7 +92,7 @@ sub setup_tc_rate_limit {
run_command("/sbin/tc qdisc add dev $iface handle ffff: ingress"); run_command("/sbin/tc qdisc add dev $iface handle ffff: ingress");
run_command("/sbin/tc filter add dev $iface parent ffff: " . 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 " . "police rate ${rate}bps burst ${burst}b mtu 64kb " .
"drop flowid :1"); "drop flowid :1");