net/mlx5: Call mlx5_esw_offloads_rep_load/unload() for uplink port directly
authorJiri Pirko <jiri@nvidia.com>
Wed, 24 May 2023 17:14:38 +0000 (19:14 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 21 Aug 2023 17:55:16 +0000 (10:55 -0700)
commitba3d85f008f293ed1b721a4d892b0d55a7d16e9f
treef2f04a7f277c64698ab3073b6fdeede457d40ab4
parent6c8f7c4344876d9984dde2d1f5e9f6676b7a2df5
net/mlx5: Call mlx5_esw_offloads_rep_load/unload() for uplink port directly

For uplink port, mlx5_esw_offloads_load/unload_rep() are currently
called. There are 2 check inside, which effectively make the
functions a simple wrappers of mlx5_esw_offloads_rep_load/unload()
for uplink port. So avoid one check and indirection and call
mlx5_esw_offloads_rep_load/unload() for uplink port directly.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c