|
|
4aca6e |
From 74776a9a952915531233e5092e6e1dbfdaf846d5 Mon Sep 17 00:00:00 2001
|
|
|
4aca6e |
From: Phil Sutter <psutter@redhat.com>
|
|
|
4aca6e |
Date: Tue, 28 Feb 2017 16:12:38 +0100
|
|
|
4aca6e |
Subject: [PATCH] bridge: mdb: add support for offloaded mdb entries
|
|
|
4aca6e |
|
|
|
4aca6e |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1417289
|
|
|
4aca6e |
Upstream Status: iproute2.git commit 29d61fb385967
|
|
|
4aca6e |
|
|
|
4aca6e |
commit 29d61fb385967e6e558aad99f68714df42f18c38
|
|
|
4aca6e |
Author: Elad Raz <eladr@mellanox.com>
|
|
|
4aca6e |
Date: Sun Mar 6 12:46:04 2016 -0800
|
|
|
4aca6e |
|
|
|
4aca6e |
bridge: mdb: add support for offloaded mdb entries
|
|
|
4aca6e |
|
|
|
4aca6e |
Mark MDB entries which are offloaded to HW with "offload" flag
|
|
|
4aca6e |
|
|
|
4aca6e |
Signed-off-by: Elad Raz <eladr@mellanox.com>
|
|
|
4aca6e |
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
|
|
|
4aca6e |
---
|
|
|
4aca6e |
bridge/mdb.c | 5 +++--
|
|
|
4aca6e |
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
4aca6e |
|
|
|
4aca6e |
diff --git a/bridge/mdb.c b/bridge/mdb.c
|
|
|
4aca6e |
index 09d4b22..600596c 100644
|
|
|
4aca6e |
--- a/bridge/mdb.c
|
|
|
4aca6e |
+++ b/bridge/mdb.c
|
|
|
4aca6e |
@@ -60,10 +60,11 @@ static void print_mdb_entry(FILE *f, int ifindex, struct br_mdb_entry *e,
|
|
|
4aca6e |
(const void *)&e->addr.u.ip6;
|
|
|
4aca6e |
if (n->nlmsg_type == RTM_DELMDB)
|
|
|
4aca6e |
fprintf(f, "Deleted ");
|
|
|
4aca6e |
- fprintf(f, "dev %s port %s grp %s %s", ll_index_to_name(ifindex),
|
|
|
4aca6e |
+ fprintf(f, "dev %s port %s grp %s %s %s", ll_index_to_name(ifindex),
|
|
|
4aca6e |
ll_index_to_name(e->ifindex),
|
|
|
4aca6e |
inet_ntop(af, src, abuf, sizeof(abuf)),
|
|
|
4aca6e |
- (e->state & MDB_PERMANENT) ? "permanent" : "temp");
|
|
|
4aca6e |
+ (e->state & MDB_PERMANENT) ? "permanent" : "temp",
|
|
|
4aca6e |
+ (e->flags & MDB_FLAGS_OFFLOAD) ? "offload" : "");
|
|
|
4aca6e |
if (e->vid)
|
|
|
4aca6e |
fprintf(f, " vid %hu", e->vid);
|
|
|
4aca6e |
if (show_stats && tb && tb[MDBA_MDB_EATTR_TIMER]) {
|
|
|
4aca6e |
--
|
|
|
4aca6e |
1.8.3.1
|
|
|
4aca6e |
|