]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Initialize RIFs in a separate function
authorIdo Schimmel <idosch@mellanox.com>
Tue, 16 May 2017 17:38:29 +0000 (19:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 May 2017 18:06:54 +0000 (14:06 -0400)
commitb980b1f5f69c7649aa144c019569d91cf3821db4
tree8d861b4aadac6164c287d42c5afaac450bbf39bf
parentc52b7cef2922379ffd57582e72cf92a10d6ef5be
mlxsw: spectrum_router: Initialize RIFs in a separate function

The router interfaces (RIFs) array is currently initialized together
with the general router configuration. However, in a follow-up patchset
we're going to introduce a common RIF core that will require us to
initialize more RIF constructs, so move the RIF initialization to its
own function.

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