mlxsw: spectrum_router: Don't create FIB node during lookup
authorIdo Schimmel <idosch@mellanox.com>
Tue, 18 Jul 2017 08:10:20 +0000 (10:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Jul 2017 18:57:33 +0000 (11:57 -0700)
commit160e22aa2629875c23092e38eded442002d1ebda
treec8fa11ffc1fc98846345674bff4385cbfcdd5cef
parent58adf2c48003d1a7469fe0d0b438300ab6173031
mlxsw: spectrum_router: Don't create FIB node during lookup

When looking up a FIB entry we shouldn't create the FIB node where it's
supposed to be linked in case the node doesn't already exist.

Instead, lookup the node and fail if it doesn't exist.

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