Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sch_cake: properly obtain skb protocol in case of VLAN/QinQ
cake_handle_diffserv() expects only ETH_P_IP or ETH_P_IPV6, which means that all tagged headers should be stripped down. Fix this issue by implementing cake_skb_proto() helper instead of using tc_skb_proto(). Fixes: 9fba602 ("sch_cake: Use tc_skb_protocol for getting packet protocol") Signed-off-by: Ilya Ponetayev <i.ponetaev@ndmsystems.com>
- Loading branch information
Showing
2 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
be8e2e4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tohojo Does this need to go upstream?
be8e2e4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! Planning to submit it along with #136 so waiting for that to land first...
be8e2e4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff - I was a bit confused - I'll backport to openwrt when it lands upstream :-)
be8e2e4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.