netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 1/2] vxlan: use print_nll for gbp and gpe
@ 2023-05-23 16:59 Stephen Hemminger
  2023-05-23 16:59 ` [RFC 2/2] vxlan: make option printing more consistent Stephen Hemminger
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Hemminger @ 2023-05-23 16:59 UTC (permalink / raw)
  To: netdev; +Cc: Stephen Hemminger

The Gbp and Gpe are presence, not booleans so use print_null()
for them

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 ip/iplink_vxlan.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ip/iplink_vxlan.c b/ip/iplink_vxlan.c
index c7e0e1c47606..cb6745c74507 100644
--- a/ip/iplink_vxlan.c
+++ b/ip/iplink_vxlan.c
@@ -650,9 +650,9 @@ static void vxlan_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
 		print_bool(PRINT_ANY, "remcsum_rx", "remcsumrx ", true);
 
 	if (tb[IFLA_VXLAN_GBP])
-		print_bool(PRINT_ANY, "gbp", "gbp ", true);
+		print_null(PRINT_ANY, "gbp", "gbp ", NULL);
 	if (tb[IFLA_VXLAN_GPE])
-		print_bool(PRINT_ANY, "gpe", "gpe ", true);
+		print_null(PRINT_ANY, "gpe", "gpe ", NULL);
 }
 
 static void vxlan_print_help(struct link_util *lu, int argc, char **argv,
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-05-25 16:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-23 16:59 [RFC 1/2] vxlan: use print_nll for gbp and gpe Stephen Hemminger
2023-05-23 16:59 ` [RFC 2/2] vxlan: make option printing more consistent Stephen Hemminger
2023-05-24 18:06   ` Andrea Claudi
2023-05-24 18:44     ` Stephen Hemminger
2023-05-24 21:08       ` Stephen Hemminger
2023-05-25 16:16       ` Andrea Claudi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).