]> git.baikalelectronics.ru Git - kernel.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)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 9 Nov 2022 18:30:43 +0000 (10:30 -0800)
commitf4f4096b410e8d31c3f07f39de3b17d144edd53d
tree2ee34e550a306a104e0f3a80e67bd7d91af1ab17
parent9e06430841363a1d2932d546fdce1cc5edb3c2a0
net/mlx5e: E-Switch, Fix comparing termination table instance

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>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c