diff mbox series

[iproute2-next,1/2] bridge: mdb: Support offload failed flag

Message ID 20250318225026.145501-2-Joseph.Huang@garmin.com (mailing list archive)
State New
Delegated to: David Ahern
Headers show
Series Add support mdb offload failure notification | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Joseph Huang March 18, 2025, 10:50 p.m. UTC
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>
---
 bridge/mdb.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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)