]> 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)
commitd6c56d00af6827be4357212592ca7ab20371f878
treea132902409ae6d77fe1646fe6d0801fb4ca0aea4
parentf7b3647d38d462c0362834ca1197dd685b238b2c
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