]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcfa58d32895f54eae4e4e9d7ac4aec7b352f18f2
tree96bed734f17fda7ec3a25cea9947b2082bab34b8
parente3c3b828be5921c7e8578ab8f723368c8bc9d193
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