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.a...@intel.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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to