mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
net: dsa: add port_fdb_prepare
Push the prepare phase for FDB operations down to the DSA drivers, with a new port_fdb_prepare function. Currently only mv88e6xxx is affected. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6e86ac120e
commit
146a32067b
6 changed files with 26 additions and 2 deletions
|
@ -197,6 +197,9 @@ static inline u8 dsa_upstream_port(struct dsa_switch *ds)
|
|||
return ds->pd->rtable[dst->cpu_switch];
|
||||
}
|
||||
|
||||
struct switchdev_trans;
|
||||
struct switchdev_obj_port_fdb;
|
||||
|
||||
struct dsa_switch_driver {
|
||||
struct list_head list;
|
||||
|
||||
|
@ -316,6 +319,9 @@ struct dsa_switch_driver {
|
|||
/*
|
||||
* Forwarding database
|
||||
*/
|
||||
int (*port_fdb_prepare)(struct dsa_switch *ds, int port,
|
||||
const struct switchdev_obj_port_fdb *fdb,
|
||||
struct switchdev_trans *trans);
|
||||
int (*port_fdb_add)(struct dsa_switch *ds, int port,
|
||||
const unsigned char *addr, u16 vid);
|
||||
int (*port_fdb_del)(struct dsa_switch *ds, int port,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue