]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit956a722199315b723f88e50959dfa9f88e296b07
tree80e2a19fa52a4f5be9a2748ba9862b1407e24246
parent228d27b4425e25854516b47eefe8bd1d190a1d37
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