OSDN Git Service

net: dsa: bcm_sf2: Wire up MDB operations
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 24 Oct 2019 19:45:08 +0000 (12:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Oct 2019 20:58:20 +0000 (13:58 -0700)
Leverage the recently add b53_mdb_{add,del,prepare} functions since they
work as-is for bcm_sf2.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c

index c068a3b..a4a46f8 100644 (file)
@@ -968,6 +968,9 @@ static const struct dsa_switch_ops bcm_sf2_ops = {
        .set_rxnfc              = bcm_sf2_set_rxnfc,
        .port_mirror_add        = b53_mirror_add,
        .port_mirror_del        = b53_mirror_del,
+       .port_mdb_prepare       = b53_mdb_prepare,
+       .port_mdb_add           = b53_mdb_add,
+       .port_mdb_del           = b53_mdb_del,
 };
 
 struct bcm_sf2_of_data {