diff options
author | Guenter Roeck <linux@roeck-us.net> | 2015-03-27 01:36:37 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-29 20:23:54 (GMT) |
commit | 339d82626d225e9b876665e4e89b7eb123e96b3d (patch) | |
tree | 03ef0d816547cd8423c6c2e89c651926fb228bb8 /include/net/dsa.h | |
parent | 3f244abb53665bf1ae0a762bb452d33b6648b7df (diff) | |
download | linux-339d82626d225e9b876665e4e89b7eb123e96b3d.tar.xz |
net: dsa: Add basic framework to support ndo_fdb functions
Provide callbacks for ndo_fdb_add, ndo_fdb_del, and ndo_fdb_dump.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r-- | include/net/dsa.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 47917e5..fbca63b 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -296,6 +296,12 @@ struct dsa_switch_driver { u32 br_port_mask); int (*port_stp_update)(struct dsa_switch *ds, int port, u8 state); + int (*fdb_add)(struct dsa_switch *ds, int port, + const unsigned char *addr, u16 vid); + int (*fdb_del)(struct dsa_switch *ds, int port, + const unsigned char *addr, u16 vid); + int (*fdb_getnext)(struct dsa_switch *ds, int port, + unsigned char *addr, bool *is_static); }; void register_switch_driver(struct dsa_switch_driver *type); |