]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
bridge: mdb: Support offload failed flag
authorJoseph Huang <Joseph.Huang@garmin.com>
Tue, 15 Apr 2025 14:43:05 +0000 (10:43 -0400)
committerDavid Ahern <dsahern@kernel.org>
Tue, 22 Apr 2025 22:38:51 +0000 (22:38 +0000)
Add support for the MDB_FLAGS_OFFLOAD_FAILED flag to indicate that
an attempt to offload an mdb entry to switchdev has failed.

Signed-off-by: Joseph Huang <Joseph.Huang@garmin.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David Ahern <dsahern@kernel.org>
bridge/mdb.c

index 196363a5c829159147e9f421bbb9dd637765ef03..72490971c0f15cfd163edaab051ac1a191e903ac 100644 (file)
@@ -256,6 +256,8 @@ static void print_mdb_entry(FILE *f, int ifindex, const struct br_mdb_entry *e,
                print_string(PRINT_ANY, NULL, " %s", "added_by_star_ex");
        if (e->flags & MDB_FLAGS_BLOCKED)
                print_string(PRINT_ANY, NULL, " %s", "blocked");
+       if (e->flags & MDB_FLAGS_OFFLOAD_FAILED)
+               print_string(PRINT_ANY, NULL, " %s", "offload_failed");
        close_json_array(PRINT_JSON, NULL);
 
        if (e->vid)