mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net: dsa: Remove switchdev dependency from DSA switch notifier chain
Currently, the switchdev objects are embedded inside the DSA notifier info. This patch removes this dependency. This is done as a preparation stage before adding support for learning FDB through the switchdev notification chain. Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1b6dd556c3
commit
2acf4e6a89
4 changed files with 23 additions and 20 deletions
|
@ -43,9 +43,10 @@ struct dsa_notifier_bridge_info {
|
|||
|
||||
/* DSA_NOTIFIER_FDB_* */
|
||||
struct dsa_notifier_fdb_info {
|
||||
const struct switchdev_obj_port_fdb *fdb;
|
||||
int sw_index;
|
||||
int port;
|
||||
const unsigned char *addr;
|
||||
u16 vid;
|
||||
};
|
||||
|
||||
/* DSA_NOTIFIER_MDB_* */
|
||||
|
@ -120,10 +121,10 @@ int dsa_port_vlan_filtering(struct dsa_port *dp, bool vlan_filtering,
|
|||
struct switchdev_trans *trans);
|
||||
int dsa_port_ageing_time(struct dsa_port *dp, clock_t ageing_clock,
|
||||
struct switchdev_trans *trans);
|
||||
int dsa_port_fdb_add(struct dsa_port *dp,
|
||||
const struct switchdev_obj_port_fdb *fdb);
|
||||
int dsa_port_fdb_del(struct dsa_port *dp,
|
||||
const struct switchdev_obj_port_fdb *fdb);
|
||||
int dsa_port_fdb_add(struct dsa_port *dp, const unsigned char *addr,
|
||||
u16 vid);
|
||||
int dsa_port_fdb_del(struct dsa_port *dp, const unsigned char *addr,
|
||||
u16 vid);
|
||||
int dsa_port_fdb_dump(struct dsa_port *dp, struct switchdev_obj_port_fdb *fdb,
|
||||
switchdev_obj_dump_cb_t *cb);
|
||||
int dsa_port_mdb_add(struct dsa_port *dp,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue