]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix source port matching in fdb peer flow rule
authorRaed Salem <raeds@mellanox.com>
Sun, 2 Jun 2019 09:04:08 +0000 (12:04 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 7 Jun 2019 21:40:37 +0000 (14:40 -0700)
commitc2a0182ec02096917e459e8456ec1e85ed0510b9
tree5b2c543db928c453be624f2dfb1153daedb53cb7
parent4411f5089bf92770794038a2ce0aa42f46c8df7c
net/mlx5e: Fix source port matching in fdb peer flow rule

The cited commit changed the initialization placement of the eswitch
attributes so it is done prior to parse tc actions function call,
including among others the in_rep and in_mdev fields which are mistakenly
reassigned inside the parse actions function.

This breaks the source port matching criteria of the peer redirect rule.

Fix by removing the now redundant reassignment of the already initialized
fields.

Fixes: 7ecdd9b7e88f ("net/mlx5e: Introduce mlx5e_flow_esw_attr_init() helper")
Signed-off-by: Raed Salem <raeds@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c