]> 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)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 1 Sep 2021 19:51:44 +0000 (12:51 -0700)
commitc730bd0b11a68014028ea82e25e2230c42399d06
tree8dbb89f0bbadb6d75e4852aa088b7f3bb95bf495
parentdf8912ede29c0fd812da1b8dcfdbb109dcd0af18
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