net/mlx5e: Do early return when setup vports dests for slow path flow
authorRoi Dayan <roid@nvidia.com>
Mon, 21 Nov 2022 10:14:50 +0000 (12:14 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 30 Nov 2022 05:09:47 +0000 (21:09 -0800)
commit42760d95a0c192218b57f033ef39f7b493ffec59
tree3bce77b2750978c893cc2dcca4bf9a88efb63ad6
parent3c683429b0786634fc75a2a4bf760d3f0fc3f25c
net/mlx5e: Do early return when setup vports dests for slow path flow

Adding flow flag cases in setup vport dests before the slow path
case is incorrect as the slow path should take precedence.
Current code doesn't show this importance so make the slow path
case return early and separate from the other cases and remove
the redundant comparison of it in the sample case.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Chris Mi <cmi@nvidia.com>
Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c