datapath: Add IPv6 to list of parsed EtherTypes.
authorJesse Gross <jesse@nicira.com>
Tue, 1 Nov 2011 22:25:14 +0000 (15:25 -0700)
committerJesse Gross <jesse@nicira.com>
Wed, 2 Nov 2011 23:00:10 +0000 (16:00 -0700)
The kernel can parse IPv6, so if it receives a flow with an IPv6
EtherType then it expects to get IPv6 information as well.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/flow.c

index 0084ca20771e8875d0fe28e0220baa676a19ef89..95297a52ce5953493a21408adab503763ebd5089 100644 (file)
@@ -1094,6 +1094,7 @@ int flow_from_nlattrs(struct sw_flow_key *swkey, int *key_lenp,
 
        case OVS_KEY_ATTR_ETHERTYPE:
                if (swkey->eth.type == htons(ETH_P_IP) ||
+                   swkey->eth.type == htons(ETH_P_IPV6) ||
                    swkey->eth.type == htons(ETH_P_ARP))
                        goto invalid;
                goto ok;