tunnels: Don't require remote endpoint or ID during creation.
authorJesse Gross <jesse@nicira.com>
Fri, 16 Oct 2015 23:36:00 +0000 (16:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Oct 2015 05:44:10 +0000 (22:44 -0700)
commite277de5f3f7d6eed2a41920983c44c4df386b871
treed6a592076b5ec65c773c2234d31260e1620405b8
parent740dbc289155fdeed32438396370e70b684cd45e
tunnels: Don't require remote endpoint or ID during creation.

Before lightweight tunnels existed, it really didn't make sense to
create a tunnel that was not fully specified, such as without a
destination IP address - the resulting packets would go nowhere.
However, with lightweight tunnels, the opposite is true - it doesn't
make sense to require this information when it will be provided later
on by the route. This loosens the requirements for this information.

An alternative would be to allow the relaxed version only when
COLLECT_METADATA is enabled. However, since there are several
variations on this theme (such as NBMA tunnels in GRE), just dropping
the restrictions seems the most consistent across tunnels and with
the existing configuration.

CC: John Linville <linville@tuxdriver.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c
drivers/net/vxlan.c