]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip/tunnel: always print all known attributes
authorIlya Dmitrichenko <errordeveloper@gmail.com>
Mon, 9 Aug 2021 10:22:39 +0000 (11:22 +0100)
committerDavid Ahern <dsahern@kernel.org>
Wed, 11 Aug 2021 18:17:52 +0000 (12:17 -0600)
commit51d8fc708cfc6f19eec50723c6bb8833ba41ddbc
treef725a00271047e9998fca1ab1e7acf1912483589
parent71ba9c18e0131558f3d6745490f6e658b9a8c98d
ip/tunnel: always print all known attributes

Presently, if a Geneve or VXLAN interface was created with 'external',
it's not possible for a user to determine e.g. the value of 'dstport'
after creation. This change fixes that by avoiding early returns.

This change partly reverts commit 00ff4b8e31af ("ip/tunnel: Be consistent
when printing tunnel collect metadata").

Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/iplink_geneve.c
ip/iplink_vxlan.c
ip/link_gre.c
ip/link_gre6.c
ip/link_ip6tnl.c
ip/link_iptnl.c