mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net: dsa: Change DSA slave FDB API to be switchdev independent
In order to support FDB add/del to be on a notifier chain the slave API need to be changed to be switchdev independent. Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com> Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
511aeaf466
commit
6c2c1dcb18
8 changed files with 49 additions and 62 deletions
|
@ -386,13 +386,11 @@ struct dsa_switch_ops {
|
|||
* Forwarding database
|
||||
*/
|
||||
int (*port_fdb_prepare)(struct dsa_switch *ds, int port,
|
||||
const struct switchdev_obj_port_fdb *fdb,
|
||||
struct switchdev_trans *trans);
|
||||
const unsigned char *addr, u16 vid);
|
||||
void (*port_fdb_add)(struct dsa_switch *ds, int port,
|
||||
const struct switchdev_obj_port_fdb *fdb,
|
||||
struct switchdev_trans *trans);
|
||||
const unsigned char *addr, u16 vid);
|
||||
int (*port_fdb_del)(struct dsa_switch *ds, int port,
|
||||
const struct switchdev_obj_port_fdb *fdb);
|
||||
const unsigned char *addr, u16 vid);
|
||||
int (*port_fdb_dump)(struct dsa_switch *ds, int port,
|
||||
struct switchdev_obj_port_fdb *fdb,
|
||||
switchdev_obj_dump_cb_t *cb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue