• Veaceslav Falico's avatar
    bonding: remove __get_next_port() · 3c4c88a1
    Veaceslav Falico authored
    Currently this function is only used in constructs like
    
    for (port = __get_first_port(bond); port; port = __get_next_port(port))
    
    which is basicly the same as
    
    bond_for_each_slave(bond, slave, iter) {
    	port = &(SLAVE_AD_INFO(slave).port);
    
    but a more time consuming.
    
    Remove the function and convert the users to bond_for_each_slave().
    
    CC: Jay Vosburgh <fubar@us.ibm.com>
    CC: Andy Gospodarek <andy@greyhouse.net>
    Signed-off-by: default avatarVeaceslav Falico <vfalico@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    3c4c88a1
bond_3ad.c 80.3 KB