]> 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)
commit749c8aacb8cb2314db0c0f326b36eb78079f600f
tree80e2a19fa52a4f5be9a2748ba9862b1407e24246
parent30720fbb02df1a39d8e6d83c8b06f44d164c5e59
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