]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitc9ec53f03460b374c5565c09beac2aec5dfc5cbc
tree7ae8e61ef151e430e7483d326250e3a7cb67c0b0
parent8e3482d6adef158d362e46cae1415940bf0f9b07
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