]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Fix fib entry update path
authorJiri Pirko <jiri@mellanox.com>
Thu, 1 Sep 2016 08:37:41 +0000 (10:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Sep 2016 16:44:56 +0000 (09:44 -0700)
commit527b17abcb84d9747eeabfb4a7921fd7ce27b6cd
tree6fd8ebad06866c9909ec09c954d3dc21d32448fa
parent5a511d4019b4b9a2cbcddcb0b9dfd308b33a0e8a
mlxsw: spectrum_router: Fix fib entry update path

Originally, I expected that there would be needed to call update
operation in case RALUE record action is changed. However, that is not
needed since write operation takes care of that nicely. Remove prepared
construct and always call the write operation.

Fixes: b9543b2872ec ("mlxsw: spectrum_router: Implement fib4 add/del switchdev obj ops")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c