recirculation: Adjust ovs_key_attr ABI
authorAndy Zhou <azhou@nicira.com>
Fri, 28 Mar 2014 20:36:28 +0000 (13:36 -0700)
committerAndy Zhou <azhou@nicira.com>
Fri, 28 Mar 2014 22:15:23 +0000 (15:15 -0700)
Jesse helped to clarify how to maintain the ABI. Making the
adjustment accordingly and add some comments.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
include/linux/openvswitch.h

index 3fc4978..a88f6f1 100644 (file)
@@ -307,12 +307,13 @@ enum ovs_key_attr {
        OVS_KEY_ATTR_TUNNEL,    /* Nested set of ovs_tunnel attributes */
        OVS_KEY_ATTR_SCTP,      /* struct ovs_key_sctp */
        OVS_KEY_ATTR_TCP_FLAGS, /* be16 TCP flags. */
+       OVS_KEY_ATTR_DP_HASH,   /* u32 hash value */
+       OVS_KEY_ATTR_RECIRC_ID, /* u32 recirc id */
 #ifdef __KERNEL__
+       /* Only used within kernel data path. */
        OVS_KEY_ATTR_IPV4_TUNNEL,  /* struct ovs_key_ipv4_tunnel */
 #endif
-
-       OVS_KEY_ATTR_DP_HASH = 20,      /* u32 hash value */
-       OVS_KEY_ATTR_RECIRC_ID,         /* u32 recirc id */
+       /* Experimental */
 
        OVS_KEY_ATTR_MPLS = 62, /* array of struct ovs_key_mpls.
                                 * The implementation may restrict