OSDN Git Service

mlxsw: spectrum_router: Don't rely on missing extack to symbolize dump
authorJiri Pirko <jiri@mellanox.com>
Thu, 3 Oct 2019 09:49:29 +0000 (11:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Oct 2019 18:10:56 +0000 (11:10 -0700)
commit3f9e5c119a47d0fce01f8524ff0aba3acca71bb9
tree96bed734f17fda7ec3a25cea9947b2082bab34b8
parent55c894f762a1a99fca80ee55d593083d78e7e4fb
mlxsw: spectrum_router: Don't rely on missing extack to symbolize dump

Currently if info->extack is NULL, mlxsw assumes that the event came
down from dump. Originally, the dump did not propagate the return value
back to the original caller (fib_notifier_register()). However, that is
now happening. So benefit from this and push the error up if it happened.
Remove rule cases in work handlers that are now dead code.

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