diff options
author | Samudrala, Sridhar <sridhar.samudrala@intel.com> | 2015-05-14 06:55:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-18 04:49:09 +0200 |
commit | 45d4122ca7cdb3a4b91f392605cd22cfa75f1d99 (patch) | |
tree | 5b4524c25f701e345a1526ce9379ea5b3c1beee2 /drivers/net/bonding | |
parent | Merge branch 'tcp_mem_pressure' (diff) | |
download | linux-45d4122ca7cdb3a4b91f392605cd22cfa75f1d99.tar.xz linux-45d4122ca7cdb3a4b91f392605cd22cfa75f1d99.zip |
switchdev: add support for fdb add/del/dump via switchdev_port_obj ops.
- introduce port fdb obj and generic switchdev_port_fdb_add/del/dump()
- use switchdev_port_fdb_add/del/dump in rocker/team/bonding ndo ops.
- add support for fdb obj in switchdev_port_obj_add/del/dump()
- switch rocker to implement fdb ops via switchdev_ops
v3: updated to sync with named union changes.
Signed-off-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index ef26e0147050..2268438f3f63 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -4039,6 +4039,9 @@ static const struct net_device_ops bond_netdev_ops = { .ndo_bridge_setlink = switchdev_port_bridge_setlink, .ndo_bridge_getlink = switchdev_port_bridge_getlink, .ndo_bridge_dellink = switchdev_port_bridge_dellink, + .ndo_fdb_add = switchdev_port_fdb_add, + .ndo_fdb_del = switchdev_port_fdb_del, + .ndo_fdb_dump = switchdev_port_fdb_dump, .ndo_features_check = passthru_features_check, }; |