+ Xin Long

On Wed, Jul 16, 2025 at 08:26:05AM +0800, Li Tian wrote:
> Set an additional flag IFF_NO_ADDRCONF to prevent ipv6 addrconf.
> 
> Commit under Fixes added a new flag change that was not made
> to hv_netvsc resulting in the VF being assinged an IPv6.
> 
> Fixes: 8a321cf7becc ("net: add IFF_NO_ADDRCONF and use it in bonding to 
> prevent ipv6 addrconf")
> Suggested-by: Cathy Avery <[email protected]>
> Signed-off-by: Li Tian <[email protected]>
> ---
> v3:
>   - only fixes commit message.
> v2: https://lore.kernel.org/netdev/[email protected]/
>   - instead of replacing flag, add it.
> v1: https://lore.kernel.org/netdev/[email protected]/
> ---
>  drivers/net/hyperv/netvsc_drv.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)

Hi Li Tian,

Thanks for addressing earlier feedback.

I don't think you need to repost because of this, but for future reference:

1. Because this is a fix for a commit that is present in net
   it should be targeted at that tree.

   Subject: [PATCH net vX] ...

2. Please use get_maintainers.pl this.patch to generate the CC list. In
   this case Xin Long (now CCed) should be included as he is the author of the
   patch cited in the Fixes tag.

   b4 can help you with this and other aspects of patch management.

> 
> diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
> index c41a025c66f0..8be9bce66a4e 100644
> --- a/drivers/net/hyperv/netvsc_drv.c
> +++ b/drivers/net/hyperv/netvsc_drv.c
> @@ -2317,8 +2317,11 @@ static int netvsc_prepare_bonding(struct net_device 
> *vf_netdev)
>       if (!ndev)
>               return NOTIFY_DONE;
>  
> -     /* set slave flag before open to prevent IPv6 addrconf */
> +     /* Set slave flag and no addrconf flag before open
> +      * to prevent IPv6 addrconf.
> +      */
>       vf_netdev->flags |= IFF_SLAVE;
> +     vf_netdev->priv_flags |= IFF_NO_ADDRCONF;
>       return NOTIFY_DONE;
>  }
>  
> -- 
> 2.50.0
> 
> 

Reply via email to