summaryrefslogtreecommitdiff
path: root/target/linux/generic/patches-3.10/688-net-flow_dissector-add-802.1ad-support.patch
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2014-02-20 17:07:44 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2014-02-20 17:07:44 +0000
commit696cc8ac09257c96f8dc7bd61a84dc506665cdc6 (patch)
tree33a890b86af0cffd4fc1c7bc6d703c8f2930a58f /target/linux/generic/patches-3.10/688-net-flow_dissector-add-802.1ad-support.patch
parentf11b93c3f504c340ecf6a89c2ece0afdbc2a9e08 (diff)
kernel/3.10: improve fq_codel hashing for 6in4 6to4 801.ad and IPIP cases
This is a backport of code to improve the quality of fq_codel hashing for 3.10 for some encapsulated protocols. Not needed in 3.11 and later. Patch-by: Dave Taht <dave.taht@bufferbloat.net> Patchwork: http://patchwork.openwrt.org/patch/4902/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39640 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-3.10/688-net-flow_dissector-add-802.1ad-support.patch')
-rw-r--r--target/linux/generic/patches-3.10/688-net-flow_dissector-add-802.1ad-support.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.10/688-net-flow_dissector-add-802.1ad-support.patch b/target/linux/generic/patches-3.10/688-net-flow_dissector-add-802.1ad-support.patch
new file mode 100644
index 0000000000..e020d61bae
--- /dev/null
+++ b/target/linux/generic/patches-3.10/688-net-flow_dissector-add-802.1ad-support.patch
@@ -0,0 +1,24 @@
+From 017879b546ee5f85d13f90236a251d56605c9e86 Mon Sep 17 00:00:00 2001
+From: Eric Dumazet <edumazet@google.com>
+Date: Tue, 6 Aug 2013 04:35:06 -0700
+Subject: [PATCH 5/5] net: flow_dissector: add 802.1ad support
+
+Same behavior than 802.1q : finds the encapsulated protocol and
+skip 32bit header.
+
+Signed-off-by: Eric Dumazet <edumazet@google.com>
+Signed-off-by: David S. Miller <davem@davemloft.net>
+---
+ net/core/flow_dissector.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/net/core/flow_dissector.c
++++ b/net/core/flow_dissector.c
+@@ -65,6 +65,7 @@ ipv6:
+ nhoff += sizeof(struct ipv6hdr);
+ break;
+ }
++ case __constant_htons(ETH_P_8021AD):
+ case __constant_htons(ETH_P_8021Q): {
+ const struct vlan_hdr *vlan;
+ struct vlan_hdr _vlan;