diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2016-02-23 17:13:54 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-25 20:20:20 (GMT) |
commit | 65aebfc002abc1827ac7c8644a2bba0459ce3ce2 (patch) | |
tree | 60a6298a94bbee916fd1853059b4dff31be40596 /include/net/dsa.h | |
parent | 2a04c7baded1cb2717ef8d02759e2ce13ae28602 (diff) | |
download | linux-65aebfc002abc1827ac7c8644a2bba0459ce3ce2.tar.xz |
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>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r-- | include/net/dsa.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 1c845d7..ebc0d9e 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -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); |