Skip to contentSkip to conversation

team: Add matching error label for failed action

PATCH Applied Nikola Z. Ivanov 4 participants 4 messages Nov 28, 2025 – Dec 1, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 team: Add matching error label for failed action

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.

---
Related discussion:
https://lore.kernel.org/netdev/admyw5vnd3hup26xew7yxfwqo4ypr5sfb3esk7spv4jx3yqpxu@g47iffagagah/

 drivers/net/team/team_core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/team/team_core.c +2 -1
index 0a41d2b45d8c..4d5c9ae8f221 100644
@@ -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);
 
Signature · 1 line
2.51.0
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · 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.

---
Related discussion:
https://lore.kernel.org/netdev/admyw5vnd3hup26xew7yxfwqo4ypr5sfb3esk7spv4jx3yqpxu@g47iffagagah/

maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Nikola Z. Ivanov
Quoted 8 lines · Fri, Nov 28, 2025 at 08:25:44AM +0100, [email protected] 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.

#3 lore raw
In reply to Nikola Z. Ivanov
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · 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!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html