]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd92b29f8ead165d8e86177bf6adc82bddc778782
treed6a592076b5ec65c773c2234d31260e1620405b8
parent370a35e6e214aa64b43affedd4fd40921dacf8f4
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