diff options
Diffstat (limited to 'include/uapi/linux/openvswitch.h')
| -rw-r--r-- | include/uapi/linux/openvswitch.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/include/uapi/linux/openvswitch.h b/include/uapi/linux/openvswitch.h index 405918dd7b3f..c55efaaa9bb4 100644 --- a/include/uapi/linux/openvswitch.h +++ b/include/uapi/linux/openvswitch.h | |||
| @@ -164,6 +164,7 @@ enum ovs_vport_type { | |||
| 164 | OVS_VPORT_TYPE_UNSPEC, | 164 | OVS_VPORT_TYPE_UNSPEC, |
| 165 | OVS_VPORT_TYPE_NETDEV, /* network device */ | 165 | OVS_VPORT_TYPE_NETDEV, /* network device */ |
| 166 | OVS_VPORT_TYPE_INTERNAL, /* network device implemented by datapath */ | 166 | OVS_VPORT_TYPE_INTERNAL, /* network device implemented by datapath */ |
| 167 | OVS_VPORT_TYPE_GRE, /* GRE tunnel. */ | ||
| 167 | __OVS_VPORT_TYPE_MAX | 168 | __OVS_VPORT_TYPE_MAX |
| 168 | }; | 169 | }; |
| 169 | 170 | ||
| @@ -192,7 +193,6 @@ enum ovs_vport_type { | |||
| 192 | * optional; if not specified a free port number is automatically selected. | 193 | * optional; if not specified a free port number is automatically selected. |
| 193 | * Whether %OVS_VPORT_ATTR_OPTIONS is required or optional depends on the type | 194 | * Whether %OVS_VPORT_ATTR_OPTIONS is required or optional depends on the type |
| 194 | * of vport. | 195 | * of vport. |
| 195 | * and other attributes are ignored. | ||
| 196 | * | 196 | * |
| 197 | * For other requests, if %OVS_VPORT_ATTR_NAME is specified then it is used to | 197 | * For other requests, if %OVS_VPORT_ATTR_NAME is specified then it is used to |
| 198 | * look up the vport to operate on; otherwise dp_idx from the &struct | 198 | * look up the vport to operate on; otherwise dp_idx from the &struct |
| @@ -247,11 +247,29 @@ enum ovs_key_attr { | |||
| 247 | OVS_KEY_ATTR_ARP, /* struct ovs_key_arp */ | 247 | OVS_KEY_ATTR_ARP, /* struct ovs_key_arp */ |
| 248 | OVS_KEY_ATTR_ND, /* struct ovs_key_nd */ | 248 | OVS_KEY_ATTR_ND, /* struct ovs_key_nd */ |
| 249 | OVS_KEY_ATTR_SKB_MARK, /* u32 skb mark */ | 249 | OVS_KEY_ATTR_SKB_MARK, /* u32 skb mark */ |
| 250 | OVS_KEY_ATTR_TUNNEL, /* Nested set of ovs_tunnel attributes */ | ||
| 251 | |||
| 252 | #ifdef __KERNEL__ | ||
| 253 | OVS_KEY_ATTR_IPV4_TUNNEL, /* struct ovs_key_ipv4_tunnel */ | ||
| 254 | #endif | ||
| 250 | __OVS_KEY_ATTR_MAX | 255 | __OVS_KEY_ATTR_MAX |
| 251 | }; | 256 | }; |
| 252 | 257 | ||
| 253 | #define OVS_KEY_ATTR_MAX (__OVS_KEY_ATTR_MAX - 1) | 258 | #define OVS_KEY_ATTR_MAX (__OVS_KEY_ATTR_MAX - 1) |
| 254 | 259 | ||
| 260 | enum ovs_tunnel_key_attr { | ||
| 261 | OVS_TUNNEL_KEY_ATTR_ID, /* be64 Tunnel ID */ | ||
| 262 | OVS_TUNNEL_KEY_ATTR_IPV4_SRC, /* be32 src IP address. */ | ||
| 263 | OVS_TUNNEL_KEY_ATTR_IPV4_DST, /* be32 dst IP address. */ | ||
| 264 | OVS_TUNNEL_KEY_ATTR_TOS, /* u8 Tunnel IP ToS. */ | ||
| 265 | OVS_TUNNEL_KEY_ATTR_TTL, /* u8 Tunnel IP TTL. */ | ||
| 266 | OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT, /* No argument, set DF. */ | ||
| 267 | OVS_TUNNEL_KEY_ATTR_CSUM, /* No argument. CSUM packet. */ | ||
| 268 | __OVS_TUNNEL_KEY_ATTR_MAX | ||
| 269 | }; | ||
| 270 | |||
| 271 | #define OVS_TUNNEL_KEY_ATTR_MAX (__OVS_TUNNEL_KEY_ATTR_MAX - 1) | ||
| 272 | |||
| 255 | /** | 273 | /** |
| 256 | * enum ovs_frag_type - IPv4 and IPv6 fragment type | 274 | * enum ovs_frag_type - IPv4 and IPv6 fragment type |
| 257 | * @OVS_FRAG_TYPE_NONE: Packet is not a fragment. | 275 | * @OVS_FRAG_TYPE_NONE: Packet is not a fragment. |
