From: Nikolay Aleksandrov Date: Thu, 8 Oct 2020 13:50:20 +0000 (+0300) Subject: bridge: mdb: print fast_leave flag X-Git-Tag: v5.10.0~26^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f94e8b07498ab2d283b212535e868a801a55b445;p=thirdparty%2Fiproute2.git bridge: mdb: print fast_leave flag We're not showing the fast_leave flag when it's set. Currently that can be only when an mdb entry is being deleted due to fast leave, so it will only affect mdb monitor. Signed-off-by: Nikolay Aleksandrov Signed-off-by: David Ahern --- diff --git a/bridge/mdb.c b/bridge/mdb.c index 01c8a6e38..94cd3c3b2 100644 --- a/bridge/mdb.c +++ b/bridge/mdb.c @@ -153,6 +153,8 @@ static void print_mdb_entry(FILE *f, int ifindex, const struct br_mdb_entry *e, open_json_array(PRINT_JSON, "flags"); if (e->flags & MDB_FLAGS_OFFLOAD) print_string(PRINT_ANY, NULL, " %s", "offload"); + if (e->flags & MDB_FLAGS_FAST_LEAVE) + print_string(PRINT_ANY, NULL, " %s", "fast_leave"); close_json_array(PRINT_JSON, NULL); if (e->vid)