mlxsw: spectrum_router: Pass argument explicitly
authorIdo Schimmel <idosch@mellanox.com>
Mon, 14 Aug 2017 08:54:04 +0000 (10:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Aug 2017 18:14:03 +0000 (11:14 -0700)
commit0adb214ba2c04489eb13bdbd145c5bf77d78b078
treea132902409ae6d77fe1646fe6d0801fb4ca0aea4
parentcc70267008d5a22bc044fb1670937d52cb024cd3
mlxsw: spectrum_router: Pass argument explicitly

Instead of relying on the LPM tree to be assigned to the virtual router
before binding the two, lets pass it explicitly.

This will later allow us to return upon binding error instead of having
to perform a rollback of the assignment.

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