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 <[email protected]>
Acked-by: Nikolay Aleksandrov <[email protected]>
---
 bridge/mdb.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bridge/mdb.c b/bridge/mdb.c
index 196363a5..72490971 100644
--- a/bridge/mdb.c
+++ b/bridge/mdb.c
@@ -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)
-- 
2.49.0


Reply via email to