]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Determine VR first when creating RIF
authorIdo Schimmel <idosch@mellanox.com>
Fri, 26 May 2017 06:37:38 +0000 (08:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 19:18:49 +0000 (15:18 -0400)
commit861a07873ad35e959d5c91b52248d2952eadd45e
tree7ae8e61ef151e430e7483d326250e3a7cb67c0b0
parent3a315724fc20b2e43e55e8a7ccc6680c782336ab
mlxsw: spectrum_router: Determine VR first when creating RIF

All RIF types are associated with a virtual router (VR), so determine VR
first when creating a RIF.

That way, we can more easily integrate the common RIF core in the
following patches.

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