]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
bridge: mdb: print fast_leave flag
authorNikolay Aleksandrov <nikolay@nvidia.com>
Thu, 8 Oct 2020 13:50:20 +0000 (16:50 +0300)
committerDavid Ahern <dsahern@gmail.com>
Mon, 12 Oct 2020 02:07:30 +0000 (20:07 -0600)
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 <nikolay@nvidia.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
bridge/mdb.c

index 01c8a6e389a8c788dbfde7b8f800779a5d07cb5e..94cd3c3b23909642fa259a150b6f7191db016fd5 100644 (file)
@@ -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)