]> git.proxmox.com Git - pve-kernel.git/blame - patches/kernel/0016-net-sched-fix-TCF_LAYER_LINK-case-in-tcf_get_base_pt.patch
add tc fixes
[pve-kernel.git] / patches / kernel / 0016-net-sched-fix-TCF_LAYER_LINK-case-in-tcf_get_base_pt.patch
CommitLineData
f90505f3
FG
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3Date: Fri, 19 Jan 2018 11:12:38 +0100
4Subject: [PATCH] net: sched: fix TCF_LAYER_LINK case in tcf_get_base_ptr
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9TCF_LAYER_LINK and TCF_LAYER_NETWORK returned the same pointer as
10skb->data points to the network header.
11Use skb_mac_header instead.
12
13Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
14Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
15---
16 include/net/pkt_cls.h | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h
20index 537d0a0ad4c4..4450961b1554 100644
21--- a/include/net/pkt_cls.h
22+++ b/include/net/pkt_cls.h
23@@ -395,7 +395,7 @@ static inline unsigned char * tcf_get_base_ptr(struct sk_buff *skb, int layer)
24 {
25 switch (layer) {
26 case TCF_LAYER_LINK:
27- return skb->data;
28+ return skb_mac_header(skb);
29 case TCF_LAYER_NETWORK:
30 return skb_network_header(skb);
31 case TCF_LAYER_TRANSPORT:
32--
332.14.2
34