[PATCH v2 iproute2] tc: fix ipv6 filter selector attribute for some prefix lengths

2017-09-30 Thread Yulia Kartseva
pref 2307 u32 fh 800::800 order 2048 key ht 800 bkt 0 match faceb00f/ at 24 v2: previous patch was made with a wrong repo Signed-off-by: Yulia Kartseva --- tc/f_u32.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tc/f_u32.c b/tc/f_u32.c index 5815be9..14b9588

Re: [PATCH iproute2] tc: fix ipv6 filter selector attribute for some prefix lengths

2017-09-27 Thread Yulia Kartseva
Hello Stephen, Sending as an attachment. Thank you! On Wed, Sep 27, 2017 at 1:26 AM, Stephen Hemminger wrote: > On Mon, 25 Sep 2017 11:12:38 -0700 > Yulia Kartseva wrote: > >> Wrong TCA_U32_SEL attribute packing if prefixLen AND 0x1f equals 0x1f. >> These are /31, /63

[PATCH iproute2] tc: fix ipv6 filter selector attribute for some prefix lengths

2017-09-25 Thread Yulia Kartseva
Wrong TCA_U32_SEL attribute packing if prefixLen AND 0x1f equals 0x1f. These are /31, /63, /95 and /127 prefix lengths. Example: # tc filter add dev eth0 protocol ipv6 parent b: prio 2307 u32 match ip6 dst face:b00f::/31 # tc filter show dev eth0 filter parent b: protocol ipv6 pref 2307 u32 filte