tunneling: extend flow_tnl with ipv6 addresses
authorJiri Benc <jbenc@redhat.com>
Wed, 25 Nov 2015 13:31:11 +0000 (11:31 -0200)
committerBen Pfaff <blp@ovn.org>
Mon, 30 Nov 2015 18:31:35 +0000 (10:31 -0800)
commitffe4c74f9331114287754d5b0ca8eec219927acc
treee7f161b5d6f9b34e8b3a39ae92f51951ca08768e
parent53902038abe62c45ff46d7de9dcec30c3d1d861e
tunneling: extend flow_tnl with ipv6 addresses

Note that because there's been no prerequisite on the outer protocol,
we cannot add it now. Instead, treat the ipv4 and ipv6 dst fields in the way
that either both are null, or at most one of them is non-null.

[cascardo: abstract testing either dst with flow_tnl_dst_is_set]
cascardo: using IPv4-mapped address is an exercise for the future, since this
would require special handling of MFF_TUN_SRC and MFF_TUN_DST and OpenFlow
messages.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Co-authored-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
17 files changed:
datapath/linux/compat/include/linux/openvswitch.h
lib/dpif.c
lib/flow.c
lib/flow.h
lib/match.c
lib/match.h
lib/nx-match.c
lib/odp-util.c
lib/odp-util.h
lib/ofp-util.c
lib/packets.c
lib/packets.h
ofproto/ofproto-dpif-rid.c
ofproto/ofproto-dpif-rid.h
ofproto/ofproto-dpif-xlate.c
ofproto/tunnel.c
ofproto/tunnel.h