kernel: add a small xfrm related performance optimization
[openwrt/svn-archive/archive.git] / target / linux / generic / patches-3.10 / 688-net-flow_dissector-add-802.1ad-support.patch
1 From 017879b546ee5f85d13f90236a251d56605c9e86 Mon Sep 17 00:00:00 2001
2 From: Eric Dumazet <edumazet@google.com>
3 Date: Tue, 6 Aug 2013 04:35:06 -0700
4 Subject: [PATCH 5/5] net: flow_dissector: add 802.1ad support
5
6 Same behavior than 802.1q : finds the encapsulated protocol and
7 skip 32bit header.
8
9 Signed-off-by: Eric Dumazet <edumazet@google.com>
10 Signed-off-by: David S. Miller <davem@davemloft.net>
11 ---
12 net/core/flow_dissector.c | 1 +
13 1 file changed, 1 insertion(+)
14
15 --- a/net/core/flow_dissector.c
16 +++ b/net/core/flow_dissector.c
17 @@ -65,6 +65,7 @@ ipv6:
18 nhoff += sizeof(struct ipv6hdr);
19 break;
20 }
21 + case __constant_htons(ETH_P_8021AD):
22 case __constant_htons(ETH_P_8021Q): {
23 const struct vlan_hdr *vlan;
24 struct vlan_hdr _vlan;