]> 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)
commitd0216426a45703978815d1cb7b450266e7f5418e
tree331db508f1573a8567717af0e2e9ffabd2ad23b6
parentb0f654377e41cdf3ae23aa1ef16125ee5628010a
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