]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mlxsw: spectrum_router: Place RIF related code with router code
authorIdo Schimmel <idosch@mellanox.com>
Fri, 10 Mar 2017 07:53:39 +0000 (08:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Mar 2017 17:36:06 +0000 (09:36 -0800)
commit4724ba561a1ae0fcad2f2f2d3a5b1d4fd0840a9d
treee31903b6582dbc14a6b4fd7bb96a31cb45e665ca
parent97989ee0f5e855f4f5ec473b292c17f39cbaac58
mlxsw: spectrum_router: Place RIF related code with router code

The inetaddr notification block is currently implemented in the main
driver file, but this isn't really appropriate, as it mainly creates and
destroys router interfaces (RIFs) which belong with the rest of the
router code.

This will become even more apparent later on when we'll need to bind
these RIFs to virtual routers according to the VRF's table.

Structure the driver better and prevent unnecessary function exports by
moving the RIF related code with the rest of the router code.

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_router.c