/* Return the port of the slave that is next in line of @port's slave in the bond, or NULL if it can't be found.  */
static struct port* __get_next_port(struct port *port)
/* Return the port of the slave that is next in line of @port's slave in the bond, or NULL if it can't be found.  */
static struct port* __get_next_port(struct port *port)
{
	struct bonding *bond = __get_bond_by_port(port);
	struct slave *slave = port->slave;
	if ((bond == NULL) || (slave->next == bond->first_slave)) {
		return NULL;
	}
	return &(SLAVE_AD_INFO(slave->next).port);
}