diff options
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | 2019-04-16 15:15:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-17 06:40:29 +0200 |
commit | 600bea7dba1a72874ae0cd9bc66bf2abfe43b49d (patch) | |
tree | 74b5ca54163cf8e3593aa0dd8a0ad9fed758f8ba /net/bridge | |
parent | qed: fix spelling mistake "faspath" -> "fastpath" (diff) | |
download | linux-600bea7dba1a72874ae0cd9bc66bf2abfe43b49d.tar.xz linux-600bea7dba1a72874ae0cd9bc66bf2abfe43b49d.zip |
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.
Fixes: 9163a0fc1f0c0 ("net: bridge: add support for per-port vlan stats")
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/br_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c index 9c07591b0232..7104cf13da84 100644 --- a/net/bridge/br_netlink.c +++ b/net/bridge/br_netlink.c @@ -1441,7 +1441,7 @@ static int br_fill_info(struct sk_buff *skb, const struct net_device *brdev) nla_put_u8(skb, IFLA_BR_VLAN_STATS_ENABLED, br_opt_get(br, BROPT_VLAN_STATS_ENABLED)) || nla_put_u8(skb, IFLA_BR_VLAN_STATS_PER_PORT, - br_opt_get(br, IFLA_BR_VLAN_STATS_PER_PORT))) + br_opt_get(br, BROPT_VLAN_STATS_PER_PORT))) return -EMSGSIZE; #endif #ifdef CONFIG_BRIDGE_IGMP_SNOOPING |