mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-06-29 23:43:21 -04:00
net: team: use IFF_NO_ADDRCONF flag to prevent ipv6 addrconf
This patch is to use IFF_NO_ADDRCONF flag to prevent ipv6 addrconf for Team port. This flag will be set in team_port_enter(), which is called before dev_open(), and cleared in team_port_leave(), called after dev_close() and the err path in team_port_add(). Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
8a321cf7be
commit
0aa64df30b
1 changed files with 2 additions and 0 deletions
|
@ -1044,6 +1044,7 @@ static int team_port_enter(struct team *team, struct team_port *port)
|
||||||
goto err_port_enter;
|
goto err_port_enter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
port->dev->priv_flags |= IFF_NO_ADDRCONF;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -1057,6 +1058,7 @@ static void team_port_leave(struct team *team, struct team_port *port)
|
||||||
{
|
{
|
||||||
if (team->ops.port_leave)
|
if (team->ops.port_leave)
|
||||||
team->ops.port_leave(team, port);
|
team->ops.port_leave(team, port);
|
||||||
|
port->dev->priv_flags &= ~IFF_NO_ADDRCONF;
|
||||||
dev_put(team->dev);
|
dev_put(team->dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue