mlxsw: spectrum: Enable L3 interfaces on top of bridge devices
authorIdo Schimmel <idosch@mellanox.com>
Mon, 4 Jul 2016 06:23:17 +0000 (08:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2016 01:25:16 +0000 (18:25 -0700)
commit99f44bb3527b25198387bd56ec1bfc88a4421050
tree331db508f1573a8567717af0e2e9ffabd2ad23b6
parent701b186ebf52f872134824ffd8bd734c4c1e35df
mlxsw: spectrum: Enable L3 interfaces on top of bridge devices

As with the previously introduced L3 interfaces, listen to 'inetaddr'
notifications sent for bridges devices configured on top of the port
netdevs and create / destroy router interfaces (RIFs) accordingly.
This also includes VLAN devices configured on top of the VLAN-aware
bridge.

The RIFs will be destroyed either when the last IP address is removed or
when the underlying FID is is destroyed.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c