Bug 586112
Summary: | tc generates a wrong filter match for IPv6 "priority" | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Peter Bieringer <pb> | ||||
Component: | iproute | Assignee: | Petr Šabata <psabata> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Zbysek MRAZ <zmraz> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 6.0 | CC: | ebenes, mishu, mmaslano, plautrba, psabata, rvokal | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | iproute-2.6.32-10.el6 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 584913 | ||||||
: | 751285 (view as bug list) | Environment: | |||||
Last Closed: | 2010-11-10 20:41:05 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 519903 | ||||||
Attachments: |
|
Description
Peter Bieringer
2010-04-26 20:08:18 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux major release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Major release. This request is not yet committed for inclusion. Created attachment 422553 [details]
right filter for IPv6 priority
IPv6 traffic class/priority is not aligned to whole bytes, but starts at 5th bit.
This patch adds new function which is intended just for parsing priority/traffic class.
static int parse_ip6_class(int *argc_p, char ***argv_p, struct tc_u32_sel *sel)
Results with patched version seems ok, works for me. Please review and test this.
# tc filter add dev eth0 parent 1: protocol ipv6 u32 match ip6 priority 17 0xff flowid 1:3
# tc -s filter show dev eth0
filter parent 1: protocol ipv6 pref 49147 u32
filter parent 1: protocol ipv6 pref 49147 u32 fh 805: ht divisor 1
filter parent 1: protocol ipv6 pref 49147 u32 fh 805::800 order 2048 key ht 805 bkt 0 flowid 1:3 (rule hit 0 success 0)
match 01100000/0ff00000 at 0 (success 0 )
Would you mind test it and tell us whether this patch fixed your issue? Where can I download binary RPM iproute-2.6.32-6.el6 for testing? We do not provide test rpms, but this will be included in next snapshot (hopefully). Also this patch was added into rawhide. rebuilded http://download.fedora.redhat.com/pub/fedora/linux/development/rawhide/source/SRPMS/iproute-2.6.34-2.fc14.src.rpm and run test on Fedora 12, match is proper generated and match e.g. ping6 $DST -Q 11 (just note, ping6 understands hexadecimal here...) Build 2.6.32-10 now includes the IP6 Priority header patch for 'tc'. Red Hat Enterprise Linux 6.0 is now available and should resolve the problem described in this bug report. This report is therefore being closed with a resolution of CURRENTRELEASE. You may reopen this bug report if the solution does not work for you. |