diff options
| author | Gal Pressman <[email protected]> | 2025-07-08 21:16:25 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-10 02:47:43 +0000 |
| commit | c0ca344d796cf00c169f63f09eea0f4905778be1 (patch) | |
| tree | b25adbfa8d3fd1b3d0b8c7769feac7e3b55607cc /net/unix/af_unix.c | |
| parent | net/mlx5e: CT: extract a memcmp from a spinlock section (diff) | |
| download | kernel-c0ca344d796cf00c169f63f09eea0f4905778be1.tar.gz kernel-c0ca344d796cf00c169f63f09eea0f4905778be1.zip | |
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 <[email protected]>
Reviewed-by: Cosmin Ratiu <[email protected]>
Signed-off-by: Tariq Toukan <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
