summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndy Zhou <azhou@nicira.com>2014-07-24 02:17:48 -0700
committerAndy Zhou <azhou@nicira.com>2014-07-24 13:41:42 -0700
commit965662a9e3fd921767912863fff866b75a959e0e (patch)
treea1ddd71834ee8cdf0462f739308851aed94228cd /include/linux
parentc27fd2f912b67647ede98c5703421e2415d8c2aa (diff)
downloadopenvswitch-965662a9e3fd921767912863fff866b75a959e0e.tar.gz
datapath: reorder action netlink attribute definition for upstreaming
Keeping the order of netlink attribute definition in the order of upstreaming is the best way to keep all released user space program forward compatible with upstreamed kernel modules. Adjust action netlink attribute order to match with the current upstreaming plan. Recirc and hash actions are introduced in branch 2.3, which will be fixed by the patch. The MPLS actions have been released since branch-2.1 but there is no kernel implementation of them prior to branch 2.3. Thus the ordering change should not affect them. Signed-off-by: Andy Zhou <azhou@nicira.com> Acked-by: Pravin B Shelar <pshelar@nicira.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/openvswitch.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h
index bf27dcbea..271a14ebf 100644
--- a/include/linux/openvswitch.h
+++ b/include/linux/openvswitch.h
@@ -579,6 +579,8 @@ struct ovs_action_hash {
* @OVS_ACTION_ATTR_SET: Replaces the contents of an existing header. The
* single nested %OVS_KEY_ATTR_* attribute specifies a header to modify and its
* value.
+ * @OVS_ACTION_RECIRC: Recirculate within the data path.
+ * @OVS_ACTION_HASH: Compute and set flow hash value.
* @OVS_ACTION_ATTR_PUSH_MPLS: Push a new MPLS label stack entry onto the
* top of the packets MPLS label stack. Set the ethertype of the
* encapsulating frame to either %ETH_P_MPLS_UC or %ETH_P_MPLS_MC to
@@ -588,7 +590,6 @@ struct ovs_action_hash {
* indicate the new packet contents. This could potentially still be
* %ETH_P_MPLS if the resulting MPLS label stack is not empty. If there
* is no MPLS label stack, as determined by ethertype, no action is taken.
- * @OVS_ACTION_RECIRC: Recirculate within the data path.
*
* Only a single header can be set with a single %OVS_ACTION_ATTR_SET. Not all
* fields within a header are modifiable, e.g. the IPv4 protocol and fragment
@@ -603,10 +604,10 @@ enum ovs_action_attr {
OVS_ACTION_ATTR_PUSH_VLAN, /* struct ovs_action_push_vlan. */
OVS_ACTION_ATTR_POP_VLAN, /* No argument. */
OVS_ACTION_ATTR_SAMPLE, /* Nested OVS_SAMPLE_ATTR_*. */
- OVS_ACTION_ATTR_PUSH_MPLS, /* struct ovs_action_push_mpls. */
- OVS_ACTION_ATTR_POP_MPLS, /* __be16 ethertype. */
OVS_ACTION_ATTR_RECIRC, /* u32 recirc_id. */
OVS_ACTION_ATTR_HASH, /* struct ovs_action_hash. */
+ OVS_ACTION_ATTR_PUSH_MPLS, /* struct ovs_action_push_mpls. */
+ OVS_ACTION_ATTR_POP_MPLS, /* __be16 ethertype. */
__OVS_ACTION_ATTR_MAX
};