diff options
author | Jesse Gross <jesse@nicira.com> | 2011-10-22 18:22:18 -0700 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2011-10-23 11:24:19 -0700 |
commit | 69685a8882e40d846f7bcdbb6a55d3cce517cc26 (patch) | |
tree | 736d6125033ce794e29e49825d5b3478b64aff3e /include/linux | |
parent | 21f7563cef5f3e5ab52c15ade58594c2dfdb7195 (diff) | |
download | openvswitch-69685a8882e40d846f7bcdbb6a55d3cce517cc26.tar.gz |
datapath: Define constants for versions of GENL families.
Currently we hard code the versions of our GENL families to 1 but it's
nicer to have symbolic constants.
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/openvswitch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h index 190bf79e2..5bfe48866 100644 --- a/include/linux/openvswitch.h +++ b/include/linux/openvswitch.h @@ -46,6 +46,7 @@ #define OVS_DATAPATH_FAMILY "ovs_datapath" #define OVS_DATAPATH_MCGROUP "ovs_datapath" +#define OVS_DATAPATH_VERSION 0x1 enum ovs_datapath_cmd { OVS_DP_CMD_UNSPEC, @@ -116,6 +117,7 @@ struct ovs_vport_stats { #define OVSP_LOCAL ((__u16)0) #define OVS_PACKET_FAMILY "ovs_packet" +#define OVS_PACKET_VERSION 0x1 enum ovs_packet_cmd { OVS_PACKET_CMD_UNSPEC, @@ -173,6 +175,7 @@ enum ovs_vport_type { #define OVS_VPORT_FAMILY "ovs_vport" #define OVS_VPORT_MCGROUP "ovs_vport" +#define OVS_VPORT_VERSION 0x1 enum ovs_vport_cmd { OVS_VPORT_CMD_UNSPEC, @@ -238,6 +241,7 @@ enum { #define OVS_FLOW_FAMILY "ovs_flow" #define OVS_FLOW_MCGROUP "ovs_flow" +#define OVS_FLOW_VERSION 0x1 enum ovs_flow_cmd { OVS_FLOW_CMD_UNSPEC, |