Linux TC Filter Add/Delete

Add Filter:
tc filter add dev br0 parent 1: handle ::100 prio 1 protocol ip u32 match ip dst 10.10.10.10/32 flowid 1:100

Delete Filter:
tc filter del dev br0 parent 1: handle 800::100 prio 1 protocol ip u32

Add Policing Filter
tc filter add dev br0 parent ffff: protocol ip prio 50 u32 match ip sport 62332 0xffff police rate 500kbit burst 5k drop flowid :1

Delete Policing Filter
tc filter del dev br0 parent ffff: handle 800::100 prio 1 protocol ip u32

Find Ingress Filter ID
tc filter show dev br0 root
filter parent ffff: protocol ip pref 50 u32
filter parent ffff: protocol ip pref 50 u32 fh 800: ht divisor 1
filter parent ffff: protocol ip pref 50 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid :1
match f37c0000/ffff0000 at 20
action order 0:  police 0xe rate 500Kbit burst 5Kb mtu 2Kb action drop overhead 0b
ref 1 bind 1