summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJarno Rajahalme <jarno.rajahalme@nsn.com>2012-12-29 08:58:40 +0200
committerJesse Gross <jesse@nicira.com>2012-12-31 14:39:26 -0800
commitd7f27b492e817aa13e8ec18033c69eab0f7f7816 (patch)
treeef805d2475dcef469f6ab4c2c04687262921f54e /include
parent968b25dc15d34373e6f98f8fe6aa8d4dc1356524 (diff)
downloadopenvswitch-d7f27b492e817aa13e8ec18033c69eab0f7f7816.tar.gz
Make OVS_TUNNEL_ATTR_DST_IPV4 optional to allow configuration of null_ports.
Signed-off-by: Jarno Rajahalme <jarno.rajahalme@nsn.com> [jesse: correct return type of get_u32_or_zero()] Signed-off-by: Jesse Gross <jesse@nicira.com> Conflicts: datapath/tunnel.c include/openvswitch/tunnel.h lib/netdev-vport.c
Diffstat (limited to 'include')
-rw-r--r--include/openvswitch/tunnel.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/openvswitch/tunnel.h b/include/openvswitch/tunnel.h
index 42c36217d..479f524d8 100644
--- a/include/openvswitch/tunnel.h
+++ b/include/openvswitch/tunnel.h
@@ -45,14 +45,15 @@
/* OVS_VPORT_ATTR_OPTIONS attributes for tunnels.
*
- * OVS_TUNNEL_ATTR_FLAGS and OVS_TUNNEL_ATTR_DST_IPV4 are required. All other
+ * OVS_TUNNEL_ATTR_DST_IPV4 is required for kernel tunnel ports, all other
* attributes are optional.
+ * For flow-based tunnels, none of the options apply.
*/
enum {
OVS_TUNNEL_ATTR_UNSPEC,
OVS_TUNNEL_ATTR_FLAGS, /* 32-bit TNL_F_*. */
- OVS_TUNNEL_ATTR_DST_IPV4, /* IPv4 destination address. */
- OVS_TUNNEL_ATTR_SRC_IPV4, /* IPv4 source address. */
+ OVS_TUNNEL_ATTR_DST_IPV4, /* Remote IPv4 address. */
+ OVS_TUNNEL_ATTR_SRC_IPV4, /* Local IPv4 address. */
OVS_TUNNEL_ATTR_OUT_KEY, /* __be64 key to use on output. */
OVS_TUNNEL_ATTR_IN_KEY, /* __be64 key to match on input. */
OVS_TUNNEL_ATTR_TOS, /* 8-bit TOS value. */