]> 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)
commit2d47e2df0864ad749d560571e13faedb09bb814e
tree5b2c543db928c453be624f2dfb1153daedb53cb7
parent1e6f1b47fbb4834c059f6e7df76f1dea23401689
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: c55c8284b43d ("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