* [PATCH net-next] team: Add matching error label for failed action
@ 2025-11-28 7:25 Nikola Z. Ivanov
2025-11-29 17:58 ` Simon Horman
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Nikola Z. Ivanov @ 2025-11-28 7:25 UTC (permalink / raw)
To: jiri, andrew+netdev, davem, edumazet, kuba, pabeni
Cc: netdev, linux-kernel, skhan, david.hunter.linux, khalid,
linux-kernel-mentees, Nikola Z. Ivanov
Follow the "action" - "err_action" pairing of labels
found across the source code of team net device.
Currently in team_port_add the err_set_slave_promisc
label is reused for exiting on error when setting
allmulti level of the new slave.
Signed-off-by: Nikola Z. Ivanov <zlatistiv@gmail.com>
---
Related discussion:
https://lore.kernel.org/netdev/admyw5vnd3hup26xew7yxfwqo4ypr5sfb3esk7spv4jx3yqpxu@g47iffagagah/
drivers/net/team/team_core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/team/team_core.c b/drivers/net/team/team_core.c
index 0a41d2b45d8c..4d5c9ae8f221 100644
--- a/drivers/net/team/team_core.c
+++ b/drivers/net/team/team_core.c
@@ -1231,7 +1231,7 @@ static int team_port_add(struct team *team, struct net_device *port_dev,
if (err) {
if (dev->flags & IFF_PROMISC)
dev_set_promiscuity(port_dev, -1);
- goto err_set_slave_promisc;
+ goto err_set_slave_allmulti;
}
}
@@ -1258,6 +1258,7 @@ static int team_port_add(struct team *team, struct net_device *port_dev,
return 0;
err_set_dev_type:
+err_set_slave_allmulti:
err_set_slave_promisc:
__team_option_inst_del_port(team, port);
--
2.51.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH net-next] team: Add matching error label for failed action
2025-11-28 7:25 [PATCH net-next] team: Add matching error label for failed action Nikola Z. Ivanov
@ 2025-11-29 17:58 ` Simon Horman
2025-12-01 10:50 ` Jiri Pirko
2025-12-01 22:50 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2025-11-29 17:58 UTC (permalink / raw)
To: Nikola Z. Ivanov
Cc: jiri, andrew+netdev, davem, edumazet, kuba, pabeni, netdev,
linux-kernel, skhan, david.hunter.linux, khalid,
linux-kernel-mentees
On Fri, Nov 28, 2025 at 09:25:44AM +0200, Nikola Z. Ivanov wrote:
> Follow the "action" - "err_action" pairing of labels
> found across the source code of team net device.
>
> Currently in team_port_add the err_set_slave_promisc
> label is reused for exiting on error when setting
> allmulti level of the new slave.
>
> Signed-off-by: Nikola Z. Ivanov <zlatistiv@gmail.com>
> ---
> Related discussion:
> https://lore.kernel.org/netdev/admyw5vnd3hup26xew7yxfwqo4ypr5sfb3esk7spv4jx3yqpxu@g47iffagagah/
Reviewed-by: Simon Horman <horms@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] team: Add matching error label for failed action
2025-11-28 7:25 [PATCH net-next] team: Add matching error label for failed action Nikola Z. Ivanov
2025-11-29 17:58 ` Simon Horman
@ 2025-12-01 10:50 ` Jiri Pirko
2025-12-01 22:50 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: Jiri Pirko @ 2025-12-01 10:50 UTC (permalink / raw)
To: Nikola Z. Ivanov
Cc: andrew+netdev, davem, edumazet, kuba, pabeni, netdev,
linux-kernel, skhan, david.hunter.linux, khalid,
linux-kernel-mentees
Fri, Nov 28, 2025 at 08:25:44AM +0100, zlatistiv@gmail.com wrote:
>Follow the "action" - "err_action" pairing of labels
>found across the source code of team net device.
>
>Currently in team_port_add the err_set_slave_promisc
>label is reused for exiting on error when setting
>allmulti level of the new slave.
>
>Signed-off-by: Nikola Z. Ivanov <zlatistiv@gmail.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] team: Add matching error label for failed action
2025-11-28 7:25 [PATCH net-next] team: Add matching error label for failed action Nikola Z. Ivanov
2025-11-29 17:58 ` Simon Horman
2025-12-01 10:50 ` Jiri Pirko
@ 2025-12-01 22:50 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-12-01 22:50 UTC (permalink / raw)
To: Nikola Z. Ivanov
Cc: jiri, andrew+netdev, davem, edumazet, kuba, pabeni, netdev,
linux-kernel, skhan, david.hunter.linux, khalid,
linux-kernel-mentees
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Fri, 28 Nov 2025 09:25:44 +0200 you wrote:
> Follow the "action" - "err_action" pairing of labels
> found across the source code of team net device.
>
> Currently in team_port_add the err_set_slave_promisc
> label is reused for exiting on error when setting
> allmulti level of the new slave.
>
> [...]
Here is the summary with links:
- [net-next] team: Add matching error label for failed action
https://git.kernel.org/netdev/net-next/c/aee0f01b4f11
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-12-01 22:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-28 7:25 [PATCH net-next] team: Add matching error label for failed action Nikola Z. Ivanov
2025-11-29 17:58 ` Simon Horman
2025-12-01 10:50 ` Jiri Pirko
2025-12-01 22:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox