net: dsa: Remove redundant MDB dump support
authorArkadi Sharshevsky <arkadis@mellanox.com>
Sun, 6 Aug 2017 13:15:48 +0000 (16:15 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 21:48:48 +0000 (14:48 -0700)
Currently the MDB HW database is synced with the bridge's one, thus,
There is no need to support special dump functionality.

Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dsa.h
net/dsa/dsa_priv.h
net/dsa/port.c
net/dsa/slave.c

index d7b9bdd0e768f6ed362b4215011e83e1b4fd36a9..4ef185997b6fe959d8ce5000ec0025b96e90b0b7 100644 (file)
@@ -400,10 +400,6 @@ struct dsa_switch_ops {
                                struct switchdev_trans *trans);
        int     (*port_mdb_del)(struct dsa_switch *ds, int port,
                                const struct switchdev_obj_port_mdb *mdb);
-       int     (*port_mdb_dump)(struct dsa_switch *ds, int port,
-                                struct switchdev_obj_port_mdb *mdb,
-                                 switchdev_obj_dump_cb_t *cb);
-
        /*
         * RXNFC
         */
index 7f297bcefa0cae33be440f0b1ff54781a4883960..9c890de6e4ddfe0b29275317478292ee6bff12f1 100644 (file)
@@ -140,8 +140,6 @@ int dsa_port_mdb_add(struct dsa_port *dp,
                     struct switchdev_trans *trans);
 int dsa_port_mdb_del(struct dsa_port *dp,
                     const struct switchdev_obj_port_mdb *mdb);
-int dsa_port_mdb_dump(struct dsa_port *dp, struct switchdev_obj_port_mdb *mdb,
-                     switchdev_obj_dump_cb_t *cb);
 int dsa_port_vlan_add(struct dsa_port *dp,
                      const struct switchdev_obj_port_vlan *vlan,
                      struct switchdev_trans *trans);
index ce1921663cdd21908c3e360a2c888286471684d0..73787828953ad1227d6c82ca9010e430ccca4f1c 100644 (file)
@@ -210,17 +210,6 @@ int dsa_port_mdb_del(struct dsa_port *dp,
        return dsa_port_notify(dp, DSA_NOTIFIER_MDB_DEL, &info);
 }
 
-int dsa_port_mdb_dump(struct dsa_port *dp, struct switchdev_obj_port_mdb *mdb,
-                     switchdev_obj_dump_cb_t *cb)
-{
-       struct dsa_switch *ds = dp->ds;
-
-       if (ds->ops->port_mdb_dump)
-               return ds->ops->port_mdb_dump(ds, dp->index, mdb, cb);
-
-       return -EOPNOTSUPP;
-}
-
 int dsa_port_vlan_add(struct dsa_port *dp,
                      const struct switchdev_obj_port_vlan *vlan,
                      struct switchdev_trans *trans)
index ccf670679343cb1f06844643dd3ee2612d2dd795..5807c905fd1dd9a1433d33a30ffec55020a458b7 100644 (file)
@@ -299,9 +299,6 @@ static int dsa_slave_port_obj_dump(struct net_device *dev,
        case SWITCHDEV_OBJ_ID_PORT_FDB:
                err = dsa_port_fdb_dump(dp, SWITCHDEV_OBJ_PORT_FDB(obj), cb);
                break;
-       case SWITCHDEV_OBJ_ID_PORT_MDB:
-               err = dsa_port_mdb_dump(dp, SWITCHDEV_OBJ_PORT_MDB(obj), cb);
-               break;
        default:
                err = -EOPNOTSUPP;
                break;