]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - queue-5.0/net-bridge-fix-netlink-export-of-vlan_stats_per_port-option.patch
5.0-stable patches
[thirdparty/kernel/stable-queue.git] / queue-5.0 / net-bridge-fix-netlink-export-of-vlan_stats_per_port-option.patch
CommitLineData
0ee3da53
GKH
1From foo@baz Sat Apr 20 16:43:09 CEST 2019
2From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
3Date: Tue, 16 Apr 2019 16:15:56 +0300
4Subject: net: bridge: fix netlink export of vlan_stats_per_port option
5
6From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
7
8[ Upstream commit 600bea7dba1a72874ae0cd9bc66bf2abfe43b49d ]
9
10Since the introduction of the vlan_stats_per_port option the netlink
11export of it has been broken since I made a typo and used the ifla
12attribute instead of the bridge option to retrieve its state.
13Sysfs export is fine, only netlink export has been affected.
14
15Fixes: 9163a0fc1f0c0 ("net: bridge: add support for per-port vlan stats")
16Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
17Signed-off-by: David S. Miller <davem@davemloft.net>
18Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19---
20 net/bridge/br_netlink.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23--- a/net/bridge/br_netlink.c
24+++ b/net/bridge/br_netlink.c
25@@ -1441,7 +1441,7 @@ static int br_fill_info(struct sk_buff *
26 nla_put_u8(skb, IFLA_BR_VLAN_STATS_ENABLED,
27 br_opt_get(br, BROPT_VLAN_STATS_ENABLED)) ||
28 nla_put_u8(skb, IFLA_BR_VLAN_STATS_PER_PORT,
29- br_opt_get(br, IFLA_BR_VLAN_STATS_PER_PORT)))
30+ br_opt_get(br, BROPT_VLAN_STATS_PER_PORT)))
31 return -EMSGSIZE;
32 #endif
33 #ifdef CONFIG_BRIDGE_IGMP_SNOOPING