mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 22:23:14 -04:00
net: dsa: add port_vlan_dump routine
Similar to port_fdb_dump, add a port_vlan_dump function to DSA drivers which gets passed the switchdev VLAN object and callback. This function, if implemented, takes precedence over the soon legacy vlan_getnext/port_pvid_get approach. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2a04c7bade
commit
65aebfc002
3 changed files with 10 additions and 0 deletions
|
|
@ -313,6 +313,9 @@ struct dsa_switch_driver {
|
|||
struct switchdev_trans *trans);
|
||||
int (*port_vlan_del)(struct dsa_switch *ds, int port,
|
||||
const struct switchdev_obj_port_vlan *vlan);
|
||||
int (*port_vlan_dump)(struct dsa_switch *ds, int port,
|
||||
struct switchdev_obj_port_vlan *vlan,
|
||||
int (*cb)(struct switchdev_obj *obj));
|
||||
int (*port_pvid_get)(struct dsa_switch *ds, int port, u16 *pvid);
|
||||
int (*vlan_getnext)(struct dsa_switch *ds, u16 *vid,
|
||||
unsigned long *ports, unsigned long *untagged);
|
||||
|
|
|
|||
Loading…
Reference in a new issue