History

net: bridge: fix netlink export of vlan_stats_per_port option

Since the introduction of the vlan_stats_per_port option the netlink export of it has been broken since I made a typo and used the ifla attribute instead of the bridge option to retrieve its state. Sysfs export is fine, only netlink export has been affected.

Nikolay Aleksandrov committed 7 years ago

Commit 600bea71 parent 3321b6c1 file · +1 −1Browse files

Unified · Split

net/bridge/br_netlink.c+1−1
@@ -1441,7 +1441,7 @@ static int br_fill_info(struct sk_buff *skb, const struct net_device *brdev) · 1440 unmodified lines
14411441 nla_put_u8(skb, IFLA_BR_VLAN_STATS_ENABLED,
14421442 br_opt_get(br, BROPT_VLAN_STATS_ENABLED)) ||
14431443 nla_put_u8(skb, IFLA_BR_VLAN_STATS_PER_PORT,
1444− br_opt_get(br, IFLA_BR_VLAN_STATS_PER_PORT)))
1444+ br_opt_get(br, BROPT_VLAN_STATS_PER_PORT)))
14451445 return -EMSGSIZE;
14461446 #endif
14471447 #ifdef CONFIG_BRIDGE_IGMP_SNOOPING