]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Properly initialize flow attributes for slow path eswitch rule deletion
authorOr Gerlitz <ogerlitz@mellanox.com>
Mon, 10 Dec 2018 10:31:42 +0000 (12:31 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 13 Dec 2018 09:24:44 +0000 (01:24 -0800)
commit26e0fece6f01d48a5f3f92115e3393c1de4e47b1
treeab2da7abac7292954132821008b555b699600ef8
parentf0db52aed524d3a9f3cf114fd0b432a3575bed93
net/mlx5e: Properly initialize flow attributes for slow path eswitch rule deletion

When a neighbour is resolved, we delete the goto slow path rule from HW.

The eswitch flow attributes where not properly initialized on that case,
hence we mess up the eswitch refcounts for chain zero (the default one).

Fix that along with making sure to use semicolons and not commas on that code;

Fixes: ff562d04a775 ('net/mlx5e: Use a slow path rule instead if vxlan neighbour isn't available')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c