]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c25df608d0f622872bc508426eada549c5cfffa
tree331db508f1573a8567717af0e2e9ffabd2ad23b6
parent48f98d15b713761992d781285f1e5c2410de7b8b
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