]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd877db96351fd09b3bf893112db42b019b8a9239
treea132902409ae6d77fe1646fe6d0801fb4ca0aea4
parent92921615e1ff8d47588b0eeec3395fcb880c4a2c
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