tunnel: Support all combinations of flow-based and specific tunnel matches.
authorBen Pfaff <blp@nicira.com>
Tue, 11 Feb 2014 23:13:56 +0000 (15:13 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 11 Feb 2014 23:13:56 +0000 (15:13 -0800)
commitc3fd6901f5d4436b92c675cdee6198786cd5a0ec
tree941cf22f5cd18064ebbb3078b27bd36cf2d21df0
parentf1c8a79c626f383926b70eb1885c40f8a427ba23
tunnel: Support all combinations of flow-based and specific tunnel matches.

There are 12 possible ways to specify a tunnel (2 * 2 * 3 == 12):

    - Specific in_key or flow-based (2 choices).

    - Specific ip_dst or flow-based (2 choices).

    - Specific ip_src, wildcarded, or flow-based (3 choices).

Until now, only 6 of the 12 possibilities have been supported.  We
have had a couple of requests to add another.  This commit adds all the
possibilities, so that we won't have to add the other 6 one by one.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Requested-by: Thomas Morin <thomas.morin@orange.com>
Acked-by: pritesh <pritesh.kothari@cisco.com>
AUTHORS
ofproto/tunnel.c