]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Only skip encap flows update when encap init failed
authorVlad Buslov <vladbu@mellanox.com>
Tue, 24 Sep 2019 07:19:16 +0000 (10:19 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 29 Oct 2019 23:27:18 +0000 (16:27 -0700)
commit6561ab8fcbe24b1abe6fd2bb0e470730a55e8f27
tree528ac455e79e5e94bb1b2f7b6fa14bbf8288e166
parent32b89b93202003204c0852415d885c046e535f9c
net/mlx5e: Only skip encap flows update when encap init failed

When encap entry initialization completes successfully e->compl_result is
set to positive value and not zero, like mlx5e_rep_update_flows() assumes
at the moment. Fix the conditional to only skip encap flows update when
e->compl_result < 0.

Fixes: 8f69dfc1fd8f ("net/mlx5e: Refactor neigh update for concurrent execution")
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c