jamal wrote: >bug is around since 2.1.x; never cared about chasing it until now >because it is affecting someone i know. >Dave, please apply. I will prepare a 2.4.x version. > The patch is wrong. The "divisor"-lines are missing in the output with your patch and it only hides the real error. ->walk is supposed to walk all filters of the given priority/protocol, but u32 walks all filters. This patch fixes it. Output with new patch: filter protocol ip pref 6 u32 filter protocol ip pref 6 u32 fh 800: ht divisor 1 filter protocol ip pref 6 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:16 (rule hit 0 success 0) match 0a0000d2/ffffffff at 12 (success 0 ) filter protocol ip pref 7 u32 filter protocol ip pref 7 u32 fh 801: ht divisor 1 filter protocol ip pref 7 u32 fh 801::800 order 2048 key ht 801 bkt 0 flowid 1:15 (rule hit 0 success 0) match 0a000090/ffffffff at 12 (success 0 ) Signed-off-by: Patrick McHardy BTW: u32_walk seems to have another bug, it uses tcf_walker->count and tcf_walker->skip for skipping over both hnodes and knodes and doesn't skip hnodes properly at all. I'll have a look at this now. Regards Patrick >AFTER FIX: >--------- > >root@jdev:/usr/src# tc -s filter show parent ffff: dev eth0 >filter protocol ip pref 6 u32 >filter protocol ip pref 6 u32 fh 800::800 order 2048 key ht 800 bkt 0 >flowid 1:16 > match 0a0000d2/ffffffff at 12 > filter protocol ip pref 7 u32 > filter protocol ip pref 7 u32 fh 801::800 order 2048 key ht 801 bkt 0 >flowid 1:15 > match 0a000090/ffffffff at 12 > > >