]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5e: E-Switch, Fix comparing termination table instance
authorRoi Dayan <roid@nvidia.com>
Thu, 3 Nov 2022 06:55:46 +0000 (23:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Nov 2022 08:57:12 +0000 (09:57 +0100)
commit3b27e20601abe48ae4baf9cb0cb0e3dcfdff4525
treee47dd6884904f8a56dd1696a7c08bbf205f2c871
parenteb6fa0ac2a9c14b700ee7a2bb55736a0bd14a099
net/mlx5e: E-Switch, Fix comparing termination table instance

[ Upstream commit f4f4096b410e8d31c3f07f39de3b17d144edd53d ]

The pkt_reformat pointer being saved under flow_act and not
dest attribute in the termination table instance.
Fix the comparison pointers.

Also fix returning success if one pkt_reformat pointer is null
and the other is not.

Fixes: 249ccc3c95bd ("net/mlx5e: Add support for offloading traffic from uplink to uplink")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Chris Mi <cmi@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c