Skip to content

Commit 6717986

Browse files
w1ldptrSaeed Mahameed
authored andcommitted
net/mlx5e: Refactor tun routing helpers
Refactor tun routing helpers to use dedicated struct mlx5e_tc_tun_route_attr instead of multiple output arguments. This simplifies the callers (no need to keep track of bunch of output param pointers) and allows to unify struct release code in new mlx5e_tc_tun_route_attr_cleanup() helper instead of requiring callers to manually release some of the output parameters that require it. Simplify code by unifying error handling at the end of the function and rearranging code. Remove redundant empty line. Signed-off-by: Vlad Buslov <[email protected]> Signed-off-by: Dmytro Linkin <[email protected]> Reviewed-by: Roi Dayan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 10742ef commit 6717986

File tree

1 file changed

+126
-109
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/en

1 file changed

+126
-109
lines changed

0 commit comments

Comments
 (0)