OSDN Git Service

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)
commit64d7b68577130ae00f954a28ea9d6bc51025caf9
tree528ac455e79e5e94bb1b2f7b6fa14bbf8288e166
parent5dfb6335cbecbd59040275c8396c2d0af0bbd549
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: 2a1f1768fa17 ("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