# Re: \[PATCH net\] team: Move team device type change at the end of team\_port\_add

- From: Paolo Abeni \<pabeni@redhat.com\>
- Date: 2025-11-18 11:46:42 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/11/3301551
- Thread: https://ratatoskr.run/netdev/2025/11/3291861/t.md

```text
On 11/12/25 1:34 AM, Nikola Z. Ivanov wrote:
> @@ -1233,6 +1231,10 @@ static int team_port_add(struct team *team, struct net_device *port_dev,
>  		}
>  	}
>  
> +	err = team_dev_type_check_change(dev, port_dev);
> +	if (err)
> +		goto err_set_dev_type;

Please don't add unneeded new labels, instead reuse the exiting
`err_set_slave_promisc`.

Thanks,

Paolo

```
