diff options
author | Gal Pressman <gal@nvidia.com> | 2025-07-09 00:16:25 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-07-09 19:47:43 -0700 |
commit | c0ca344d796cf00c169f63f09eea0f4905778be1 (patch) | |
tree | b25adbfa8d3fd1b3d0b8c7769feac7e3b55607cc /drivers/usb/cdns3/cdnsp-debug.h | |
parent | 122d86aa2a0c8950ea958a3d258eccbb5872bd68 (diff) |
net/mlx5e: Replace recursive VLAN push handling with an iterative loop
mlx5e_tc_act_vlan_add_push_action() uses tail-recursion to walk through
a stack of VLAN devices.
There is no need for a complicated recursion with unnecessary stack
consumption and less obvious code flow, rewrite the function so that it
uses a do while loop instead.
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/1752009387-13300-4-git-send-email-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/usb/cdns3/cdnsp-debug.h')
0 files changed, 0 insertions, 0 deletions