[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1444802314-28830-3-git-send-email-ronen.arad@intel.com>
Date: Tue, 13 Oct 2015 22:58:32 -0700
From: Ronen Arad <ronen.arad@...el.com>
To: netdev@...r.kernel.org
Cc: Ronen Arad <ronen.arad@...el.com>
Subject: [PATCH net-next 2/4] bridge: br_af_ops add br_get_link_af_size_filtered
Provide get_af_size_filtered (set to br_get_link_af_size_filtered)
in br_af_ops for proper filtering mask aware sizing of AF_BRIDGE
attributes. This is an optimization of netlink message size when
-c[compressvlans] option is entered for iproute2's bridge command.
Optimization will get into effect with rtnetlink change in the next
patch of this set.
Signed-off-by: Ronen Arad <ronen.arad@...el.com>
---
net/bridge/br_netlink.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c
index 94b4de8..d900881 100644
--- a/net/bridge/br_netlink.c
+++ b/net/bridge/br_netlink.c
@@ -1235,8 +1235,9 @@ static size_t br_get_link_af_size(const struct net_device *dev)
}
static struct rtnl_af_ops br_af_ops __read_mostly = {
- .family = AF_BRIDGE,
- .get_link_af_size = br_get_link_af_size,
+ .family = AF_BRIDGE,
+ .get_link_af_size = br_get_link_af_size,
+ .get_link_af_size_filtered = br_get_link_af_size_filtered,
};
struct rtnl_link_ops br_link_ops __read_mostly = {
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists