diff options
| author | Jiri Kosina <jkosina@suse.cz> | 2014-11-20 08:42:02 -0500 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2014-11-20 08:42:02 -0500 |
| commit | a02001086bbfb4da35d1228bebc2f1b442db455f (patch) | |
| tree | 62ab47936cef06fd08657ca5b6cd1df98c19be57 /include/uapi/linux/openvswitch.h | |
| parent | eff264efeeb0898408e8c9df72d8a32621035bed (diff) | |
| parent | fc14f9c1272f62c3e8d01300f52467c0d9af50f9 (diff) | |
Merge Linus' tree to be be to apply submitted patches to newer code than
current trivial.git base
Diffstat (limited to 'include/uapi/linux/openvswitch.h')
| -rw-r--r-- | include/uapi/linux/openvswitch.h | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/include/uapi/linux/openvswitch.h b/include/uapi/linux/openvswitch.h index a794d1dd7b40..435eabc5ffaa 100644 --- a/include/uapi/linux/openvswitch.h +++ b/include/uapi/linux/openvswitch.h | |||
| @@ -192,6 +192,7 @@ enum ovs_vport_type { | |||
| 192 | OVS_VPORT_TYPE_INTERNAL, /* network device implemented by datapath */ | 192 | OVS_VPORT_TYPE_INTERNAL, /* network device implemented by datapath */ |
| 193 | OVS_VPORT_TYPE_GRE, /* GRE tunnel. */ | 193 | OVS_VPORT_TYPE_GRE, /* GRE tunnel. */ |
| 194 | OVS_VPORT_TYPE_VXLAN, /* VXLAN tunnel. */ | 194 | OVS_VPORT_TYPE_VXLAN, /* VXLAN tunnel. */ |
| 195 | OVS_VPORT_TYPE_GENEVE, /* Geneve tunnel. */ | ||
| 195 | __OVS_VPORT_TYPE_MAX | 196 | __OVS_VPORT_TYPE_MAX |
| 196 | }; | 197 | }; |
| 197 | 198 | ||
| @@ -289,9 +290,12 @@ enum ovs_key_attr { | |||
| 289 | OVS_KEY_ATTR_TUNNEL, /* Nested set of ovs_tunnel attributes */ | 290 | OVS_KEY_ATTR_TUNNEL, /* Nested set of ovs_tunnel attributes */ |
| 290 | OVS_KEY_ATTR_SCTP, /* struct ovs_key_sctp */ | 291 | OVS_KEY_ATTR_SCTP, /* struct ovs_key_sctp */ |
| 291 | OVS_KEY_ATTR_TCP_FLAGS, /* be16 TCP flags. */ | 292 | OVS_KEY_ATTR_TCP_FLAGS, /* be16 TCP flags. */ |
| 293 | OVS_KEY_ATTR_DP_HASH, /* u32 hash value. Value 0 indicates the hash | ||
| 294 | is not computed by the datapath. */ | ||
| 295 | OVS_KEY_ATTR_RECIRC_ID, /* u32 recirc id */ | ||
| 292 | 296 | ||
| 293 | #ifdef __KERNEL__ | 297 | #ifdef __KERNEL__ |
| 294 | OVS_KEY_ATTR_IPV4_TUNNEL, /* struct ovs_key_ipv4_tunnel */ | 298 | OVS_KEY_ATTR_TUNNEL_INFO, /* struct ovs_tunnel_info */ |
| 295 | #endif | 299 | #endif |
| 296 | __OVS_KEY_ATTR_MAX | 300 | __OVS_KEY_ATTR_MAX |
| 297 | }; | 301 | }; |
| @@ -306,6 +310,8 @@ enum ovs_tunnel_key_attr { | |||
| 306 | OVS_TUNNEL_KEY_ATTR_TTL, /* u8 Tunnel IP TTL. */ | 310 | OVS_TUNNEL_KEY_ATTR_TTL, /* u8 Tunnel IP TTL. */ |
| 307 | OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT, /* No argument, set DF. */ | 311 | OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT, /* No argument, set DF. */ |
| 308 | OVS_TUNNEL_KEY_ATTR_CSUM, /* No argument. CSUM packet. */ | 312 | OVS_TUNNEL_KEY_ATTR_CSUM, /* No argument. CSUM packet. */ |
| 313 | OVS_TUNNEL_KEY_ATTR_OAM, /* No argument. OAM frame. */ | ||
| 314 | OVS_TUNNEL_KEY_ATTR_GENEVE_OPTS, /* Array of Geneve options. */ | ||
| 309 | __OVS_TUNNEL_KEY_ATTR_MAX | 315 | __OVS_TUNNEL_KEY_ATTR_MAX |
| 310 | }; | 316 | }; |
| 311 | 317 | ||
| @@ -493,6 +499,27 @@ struct ovs_action_push_vlan { | |||
| 493 | __be16 vlan_tci; /* 802.1Q TCI (VLAN ID and priority). */ | 499 | __be16 vlan_tci; /* 802.1Q TCI (VLAN ID and priority). */ |
| 494 | }; | 500 | }; |
| 495 | 501 | ||
| 502 | /* Data path hash algorithm for computing Datapath hash. | ||
| 503 | * | ||
| 504 | * The algorithm type only specifies the fields in a flow | ||
| 505 | * will be used as part of the hash. Each datapath is free | ||
| 506 | * to use its own hash algorithm. The hash value will be | ||
| 507 | * opaque to the user space daemon. | ||
| 508 | */ | ||
| 509 | enum ovs_hash_alg { | ||
| 510 | OVS_HASH_ALG_L4, | ||
| 511 | }; | ||
| 512 | |||
| 513 | /* | ||
| 514 | * struct ovs_action_hash - %OVS_ACTION_ATTR_HASH action argument. | ||
| 515 | * @hash_alg: Algorithm used to compute hash prior to recirculation. | ||
| 516 | * @hash_basis: basis used for computing hash. | ||
| 517 | */ | ||
| 518 | struct ovs_action_hash { | ||
| 519 | uint32_t hash_alg; /* One of ovs_hash_alg. */ | ||
| 520 | uint32_t hash_basis; | ||
| 521 | }; | ||
| 522 | |||
| 496 | /** | 523 | /** |
| 497 | * enum ovs_action_attr - Action types. | 524 | * enum ovs_action_attr - Action types. |
| 498 | * | 525 | * |
| @@ -521,6 +548,8 @@ enum ovs_action_attr { | |||
| 521 | OVS_ACTION_ATTR_PUSH_VLAN, /* struct ovs_action_push_vlan. */ | 548 | OVS_ACTION_ATTR_PUSH_VLAN, /* struct ovs_action_push_vlan. */ |
| 522 | OVS_ACTION_ATTR_POP_VLAN, /* No argument. */ | 549 | OVS_ACTION_ATTR_POP_VLAN, /* No argument. */ |
| 523 | OVS_ACTION_ATTR_SAMPLE, /* Nested OVS_SAMPLE_ATTR_*. */ | 550 | OVS_ACTION_ATTR_SAMPLE, /* Nested OVS_SAMPLE_ATTR_*. */ |
| 551 | OVS_ACTION_ATTR_RECIRC, /* u32 recirc_id. */ | ||
| 552 | OVS_ACTION_ATTR_HASH, /* struct ovs_action_hash. */ | ||
| 524 | __OVS_ACTION_ATTR_MAX | 553 | __OVS_ACTION_ATTR_MAX |
| 525 | }; | 554 | }; |
| 526 | 555 | ||
