]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commit348b8fc3cf3059ac151c693dac992947a3daa437
tree8d861b4aadac6164c287d42c5afaac450bbf39bf
parent7e39d1153de244fbdc57623a482f810bcf73a03f
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