blob: 98c69fc51e79be17dcc4663e5ca775f2e2778c4e [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From 29bb5e8337caf2e3d9802ee6a6804561f125bfcf Mon Sep 17 00:00:00 2001
2From: Florian Fainelli <f.fainelli@gmail.com>
3Date: Thu, 24 Oct 2019 12:45:08 -0700
4Subject: [PATCH] net: dsa: bcm_sf2: Wire up MDB operations
5
6Leverage the recently add b53_mdb_{add,del,prepare} functions since they
7work as-is for bcm_sf2.
8
9Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
10Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
11Signed-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 {