datapath: avoid hard coding OVS_VPORT_TYPE_GENEVE
authorAndy Zhou <azhou@nicira.com>
Wed, 1 Oct 2014 07:29:19 +0000 (00:29 -0700)
committerAndy Zhou <azhou@nicira.com>
Thu, 2 Oct 2014 08:36:12 +0000 (01:36 -0700)
OVS_VPORT_TYPE_GENEVE is currently hard coded to 6. This is not
necessary since slot 5 has not been taken yet. Drop the hard
coded value to before upstreaming GENEVE support to Linux kernel.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
datapath/linux/compat/include/linux/openvswitch.h

index 306ea86..5d40da5 100644 (file)
@@ -222,7 +222,7 @@ enum ovs_vport_type {
        OVS_VPORT_TYPE_INTERNAL, /* network device implemented by datapath */
        OVS_VPORT_TYPE_GRE,      /* GRE tunnel. */
        OVS_VPORT_TYPE_VXLAN,    /* VXLAN tunnel */
-       OVS_VPORT_TYPE_GENEVE = 6,  /* Geneve tunnel */
+       OVS_VPORT_TYPE_GENEVE  /* Geneve tunnel */
        OVS_VPORT_TYPE_GRE64 = 104, /* GRE tunnel with 64-bit keys */
        OVS_VPORT_TYPE_LISP = 105,  /* LISP tunnel */
        __OVS_VPORT_TYPE_MAX