[ovs-dev] [PATCH 1/3] datapath: Add IPv6 to list of parsed EtherTypes.

Jesse Gross jesse at nicira.com
Wed Nov 2 05:50:49 UTC 2011


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 at nicira.com>
---
 datapath/flow.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/datapath/flow.c b/datapath/flow.c
index 0084ca2..95297a5 100644
--- a/datapath/flow.c
+++ b/datapath/flow.c
@@ -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;
-- 
1.7.5.4




More information about the dev mailing list