kernel: backport b53/bcm_sf2 changes from v5.5
[openwrt/staging/hauke.git] / target / linux / generic / backport-5.4 / 703-v5.5-0002-net-dsa-bcm_sf2-Wire-up-MDB-operations.patch
1 From 29bb5e8337caf2e3d9802ee6a6804561f125bfcf Mon Sep 17 00:00:00 2001
2 From: Florian Fainelli <f.fainelli@gmail.com>
3 Date: Thu, 24 Oct 2019 12:45:08 -0700
4 Subject: [PATCH] net: dsa: bcm_sf2: Wire up MDB operations
5
6 Leverage the recently add b53_mdb_{add,del,prepare} functions since they
7 work as-is for bcm_sf2.
8
9 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
10 Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
11 Signed-off-by: David S. Miller <davem@davemloft.net>
12 ---
13 drivers/net/dsa/bcm_sf2.c | 3 +++
14 1 file changed, 3 insertions(+)
15
16 --- a/drivers/net/dsa/bcm_sf2.c
17 +++ b/drivers/net/dsa/bcm_sf2.c
18 @@ -981,6 +981,9 @@ static const struct dsa_switch_ops bcm_s
19 .set_rxnfc = bcm_sf2_set_rxnfc,
20 .port_mirror_add = b53_mirror_add,
21 .port_mirror_del = b53_mirror_del,
22 + .port_mdb_prepare = b53_mdb_prepare,
23 + .port_mdb_add = b53_mdb_add,
24 + .port_mdb_del = b53_mdb_del,
25 };
26
27 struct bcm_sf2_of_data {