]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc02438834bdad3d48bcb44c84aa8cc7ea224a0c9
treec8fa11ffc1fc98846345674bff4385cbfcdd5cef
parentb01319d1faf0a513f9693984fc4b3884343b3b2c
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