bridge: reserve space for IFLA_BRPORT_FAST_LEAVE
authorstephen hemminger <stephen@networkplumber.org>
Mon, 11 Mar 2013 13:52:17 +0000 (13:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Mar 2013 09:38:29 +0000 (05:38 -0400)
The bridge multicast fast leave feature was added sufficient space
was not reserved in the netlink message. This means the flag may be
lost in netlink events and results of queries.

Found by observation while looking up some netlink stuff for discussion with Vlad.
Problem introduced by commit c2d3babfafbb9f6629cfb47139758e59a5eb0d80
Author: David S. Miller <davem@davemloft.net>
Date:   Wed Dec 5 16:24:45 2012 -0500

    bridge: implement multicast fast leave

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netlink.c

index 27aa3ee517ce56101e28fd37602356f1f43843ff..db12a0fcfe50246e274c235fd353778a9671b99f 100644 (file)
@@ -29,6 +29,7 @@ static inline size_t br_port_info_size(void)
                + nla_total_size(1)     /* IFLA_BRPORT_MODE */
                + nla_total_size(1)     /* IFLA_BRPORT_GUARD */
                + nla_total_size(1)     /* IFLA_BRPORT_PROTECT */
+               + nla_total_size(1)     /* IFLA_BRPORT_FAST_LEAVE */
                + 0;
 }