net: flow_dissector: add 802.1ad support
authorEric Dumazet <edumazet@google.com>
Tue, 6 Aug 2013 11:35:06 +0000 (04:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2013 18:06:23 +0000 (11:06 -0700)
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

index 00ee068efc1c2374bc0195d9458eca00392359c6..b84a1b155bc133e39d0f118b61be85fb1d2ed02f 100644 (file)
@@ -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;