]> 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)
commitce53721043b50f7289c8ee0caf1ba517b8c02699
tree2ee34e550a306a104e0f3a80e67bd7d91af1ab17
parent8dbcc58e80e421503442f1c997387b3401b8bf77
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: b814d9a846ec ("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