OSDN Git Service

mlxsw: spectrum_router: Allocate FID prior to RIF configuration
authorIdo Schimmel <idosch@mellanox.com>
Fri, 26 May 2017 06:37:32 +0000 (08:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 19:18:47 +0000 (15:18 -0400)
commitcaa3ddf8e39022ee2cd87835bc400b9c516fcd95
tree5c279688dbde46ba53ed5826dbb9be83ba7e6f9c
parentc57529e1d5d882fbd6383163e2cb2e4ba3118174
mlxsw: spectrum_router: Allocate FID prior to RIF configuration

The following patches are going to re-arrange the FID and RIF code, so
that when the RIF is configured to the device based on the information
present in the RIF struct (which points to a FID).

For this reason, move the FID allocation to just before the RIF
configuration.

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