• Xin Long's avatar
    net: add IFF_NO_ADDRCONF and use it in bonding to prevent ipv6 addrconf · 8a321cf7
    Xin Long authored
    Currently, in bonding it reused the IFF_SLAVE flag and checked it
    in ipv6 addrconf to prevent ipv6 addrconf.
    
    However, it is not a proper flag to use for no ipv6 addrconf, for
    bonding it has to move IFF_SLAVE flag setting ahead of dev_open()
    in bond_enslave(). Also, IFF_MASTER/SLAVE are historical flags
    used in bonding and eql, as Jiri mentioned, the new devices like
    Team, Failover do not use this flag.
    
    So as Jiri suggested, this patch adds IFF_NO_ADDRCONF in priv_flags
    of the device to indicate no ipv6 addconf, and uses it in bonding
    and moves IFF_SLAVE flag setting back to its original place.
    Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    8a321cf7
bond_main.c 174 KB