Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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.

Signed-off-by: Nikola Z. Ivanov <zlatistiv@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://patch.msgid.link/20251128072544.223645-1-zlatistiv@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Nikola Z. Ivanov and committed by
Jakub Kicinski
aee0f01b 9bf66036

+2 -1
+2 -1
drivers/net/team/team_core.c
··· 1231 1231 if (err) { 1232 1232 if (dev->flags & IFF_PROMISC) 1233 1233 dev_set_promiscuity(port_dev, -1); 1234 - goto err_set_slave_promisc; 1234 + goto err_set_slave_allmulti; 1235 1235 } 1236 1236 } 1237 1237 ··· 1258 1258 return 0; 1259 1259 1260 1260 err_set_dev_type: 1261 + err_set_slave_allmulti: 1261 1262 err_set_slave_promisc: 1262 1263 __team_option_inst_del_port(team, port); 1263 1264