]> 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)
commitf856e0092b67cd3a65aa1b53ce4ec3037d3cafb0
treeab2da7abac7292954132821008b555b699600ef8
parent2ab704288260cec5e17a0a452d44dad0e9db3b4e
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: c08c1530acbc ('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