Lines Matching defs:link
131 MODULE_PARM_DESC(updelay, "Delay before considering link up, in milliseconds");
133 MODULE_PARM_DESC(downdelay, "Delay before considering link down, "
188 "link failure");
271 [BOND_MODE_8023AD] = "IEEE 802.3ad Dynamic link aggregation",
618 if (slave->link == BOND_LINK_UP) {
635 /* Get link speed and duplex from the slave's base driver
669 const char *bond_slave_link_status(s8 link)
671 switch (link) {
685 /* if <dev> supports MII link status reporting, check its link status.
690 * Return either BMSR_LSTATUS, meaning that the link is up (or we
691 * can't tell and just pretend it is), or 0, meaning that the link is
694 * If reporting is non-zero, instead of faking link up, return -1 if
714 /* Try to get link status using Ethtool first. */
746 * cannot report link status). If not reporting, pretend
996 if (!prim || prim->link != BOND_LINK_UP) {
997 if (!curr || curr->link != BOND_LINK_UP)
1007 if (!curr || curr->link != BOND_LINK_UP)
1044 if (slave->link == BOND_LINK_UP)
1046 if (slave->link == BOND_LINK_BACK && bond_slave_is_up(slave) &&
1086 * If @new's link state is %BOND_LINK_BACK we'll set it to %BOND_LINK_UP,
1110 if (new_active->link == BOND_LINK_BACK) {
1201 * - The old curr_active_slave has been released or lost its link.
1202 * - The primary_slave has got its link back.
1203 * - A slave has got its link back and there's no old curr_active_slave.
1505 * be suppressed we want to make an exception for link-local packets.
1511 * (including link-local ones) can have their originating interface
1666 info->link = slave->link;
1697 info.link_up = slave->link == BOND_LINK_UP ||
1698 slave->link == BOND_LINK_FAIL;
1717 slave_warn(bond_dev, slave_dev, "no link monitoring support\n");
1919 new_slave->link = BOND_LINK_DOWN;
1938 slave_warn(bond_dev, slave_dev, "MII and ETHTOOL support not available for slave, and arp_interval/arp_ip_target module parameters not specified, thus bonding will not detect link failures! see bonding.txt for details\n");
1940 /* unable get link status using mii/ethtool */
1941 slave_warn(bond_dev, slave_dev, "can't get link status from slave; the network driver associated with this interface does not support MII or ETHTOOL link status reporting, thus miimon has no effect on this interface\n");
1946 new_slave->link = BOND_LINK_NOCHANGE;
1973 if (new_slave->link != BOND_LINK_DOWN)
1976 new_slave->link == BOND_LINK_DOWN ? "DOWN" :
1977 (new_slave->link == BOND_LINK_UP ? "UP" : "BACK"));
2028 new_slave->link == BOND_LINK_UP)
2112 slave_info(bond_dev, slave_dev, "Enslaving as %s interface with %s link\n",
2114 new_slave->link != BOND_LINK_DOWN ? "an up" : "a down");
2429 switch (slave->link) {
2438 slave_info(bond->dev, slave->dev, "link status down for %sinterface, disabling it in %d ms\n",
2451 slave_info(bond->dev, slave->dev, "link status up again after %d ms\n",
2476 slave_info(bond->dev, slave->dev, "link status up, enabling it in %d ms\n",
2485 slave_info(bond->dev, slave->dev, "link status down again after %d ms\n",
2512 char link)
2516 bond_3ad_handle_link_change(slave, link);
2520 bond_alb_handle_link_change(bond, slave, link);
2539 * link monitoring could make a decision on the actual
2540 * link status
2543 slave->link == BOND_LINK_UP)
2550 slave->link = BOND_LINK_DOWN;
2553 "failed to get link speed/duplex\n");
2569 slave_info(bond->dev, slave->dev, "link status definitely up, %u Mbps %s duplex\n",
2592 slave_info(bond->dev, slave->dev, "link status definitely down, disabling slave\n");
2602 slave_err(bond->dev, slave->dev, "invalid new link %d on slave\n",
2623 * implement whatever link state changes are indicated.
2987 /* This function is called regularly to monitor each slave's link
3018 if (slave->link != BOND_LINK_UP) {
3031 slave_info(bond->dev, slave->dev, "link status definitely up\n");
3038 /* slave->link == BOND_LINK_UP */
3041 * when the source ip is 0, so don't take the link down
3064 * do - all replies will be rx'ed on same link causing slaves
3079 slave->link = slave->link_new_state;
3101 /* Called to inspect slaves for active-backup mode ARP monitor link state
3102 * changes. Sets proposed link state in slaves to specify what action
3104 * if changes to link states must be committed.
3119 if (slave->link != BOND_LINK_UP) {
3123 } else if (slave->link == BOND_LINK_BACK) {
3173 /* Called to commit link state changes noted by inspection step of
3206 slave_info(bond->dev, slave->dev, "link status definitely up\n");
3225 slave_info(bond->dev, slave->dev, "link status definitely down, disabling slave\n");
3303 /* if the link state is up at this point, we
3305 * simultaneous link failures and
3310 if (!bond_slave_is_up(slave) && slave->link == BOND_LINK_UP) {
3487 * in weird state. Mark it as link-fail if the link was
3488 * previously up or link-down if it hasn't yet come up, and
3489 * let link-monitoring (miimon) set it right when correct
3495 slave->link = BOND_LINK_FAIL;
3497 slave->link = BOND_LINK_DOWN;
3785 if (bond->params.miimon) /* link check interval, in milliseconds. */
4612 if (!(bond_slave_is_up(slave) && slave->link == BOND_LINK_UP))
4657 slave->link == BOND_LINK_UP) {
4806 * do not need to check mode. Though link speed might not represent
5099 pr_warn("Warning: miimon must be specified, otherwise bonding will not detect link failure, speed and duplex which are essential for 802.3ad operation\n");
5131 pr_notice("In ALB mode you might experience client disconnections upon reconnection of a link if the bonding module updelay parameter (%d msec) is incompatible with the forwarding delay time of the switch\n",
5232 pr_info("MII link monitoring set to %d ms\n", miimon);
5248 pr_debug("Warning: either miimon or arp_interval and arp_ip_target module parameters must be specified, otherwise bonding will not detect link failures! see bonding.txt for details\n");