net/mlx5e: Don't inherit flow flags on peer flow creation
authorRoi Dayan <roid@mellanox.com>
Tue, 19 Feb 2019 14:38:56 +0000 (16:38 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 Mar 2019 20:04:16 +0000 (12:04 -0800)
commit95dc1902c3739a1a44397ea23b52b81375b711b3
tree80e2a19fa52a4f5be9a2748ba9862b1407e24246
parent544fe7c2e654124870e774157d99da357dce22dc
net/mlx5e: Don't inherit flow flags on peer flow creation

Currently the peer flow inherits the flags from the original flow
after we've set it. At this time the flags are set according to
the flow state, e.g marked as going to slow path and such.

Even if not getting us to real bugs now, this opens the door to
get us to troubles later. Future proof the code and avoid the
inheritance, use the peer flags as were set on input when we
started adding the original flow.

Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c