Lines Matching defs:link
139 MODULE_PARM_DESC(updelay, "Delay before considering link up, in milliseconds");
141 MODULE_PARM_DESC(downdelay, "Delay before considering link down, "
196 "link failure");
279 [BOND_MODE_8023AD] = "IEEE 802.3ad Dynamic link aggregation",
659 if (slave->link == BOND_LINK_UP) {
676 /* Get link speed and duplex from the slave's base driver
710 const char *bond_slave_link_status(s8 link)
712 switch (link) {
726 /* if <dev> supports MII link status reporting, check its link status.
731 * Return either BMSR_LSTATUS, meaning that the link is up (or we
732 * can't tell and just pretend it is), or 0, meaning that the link is
735 * If reporting is non-zero, instead of faking link up, return -1 if
755 /* Try to get link status using Ethtool first. */
787 * cannot report link status). If not reporting, pretend
1036 * - Check if there is a primary link. If the primary link was set and is up,
1037 * go on and do link reselection.
1039 * - If primary link is not set or down, find the highest priority link.
1040 * If the highest priority link is not current slave, set it as primary
1041 * link and do link reselection.
1050 if (!prim || prim->link != BOND_LINK_UP) {
1052 if (slave->link == BOND_LINK_UP) {
1064 if (!curr || curr->link != BOND_LINK_UP)
1075 if (!curr || curr->link != BOND_LINK_UP)
1112 if (slave->link == BOND_LINK_UP)
1114 if (slave->link == BOND_LINK_BACK && bond_slave_is_up(slave) &&
1154 * If @new's link state is %BOND_LINK_BACK we'll set it to %BOND_LINK_UP,
1178 if (new_active->link == BOND_LINK_BACK) {
1268 * - The old curr_active_slave has been released or lost its link.
1269 * - The primary_slave has got its link back.
1270 * - A slave has got its link back and there's no old curr_active_slave.
1571 * be suppressed we want to make an exception for link-local packets.
1577 * (including link-local ones) can have their originating interface
1740 info->link = slave->link;
1771 info.link_up = slave->link == BOND_LINK_UP ||
1772 slave->link == BOND_LINK_FAIL;
1848 slave_warn(bond_dev, slave_dev, "no link monitoring support\n");
2044 new_slave->link = BOND_LINK_DOWN;
2065 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");
2067 /* unable get link status using mii/ethtool */
2068 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");
2073 new_slave->link = BOND_LINK_NOCHANGE;
2100 if (new_slave->link != BOND_LINK_DOWN)
2103 new_slave->link == BOND_LINK_DOWN ? "DOWN" :
2104 (new_slave->link == BOND_LINK_UP ? "UP" : "BACK"));
2155 new_slave->link == BOND_LINK_UP)
2276 slave_info(bond_dev, slave_dev, "Enslaving as %s interface with %s link\n",
2278 new_slave->link != BOND_LINK_DOWN ? "an up" : "a down");
2606 switch (slave->link) {
2615 slave_info(bond->dev, slave->dev, "link status down for %sinterface, disabling it in %d ms\n",
2628 slave_info(bond->dev, slave->dev, "link status up again after %d ms\n",
2653 slave_info(bond->dev, slave->dev, "link status up, enabling it in %d ms\n",
2662 slave_info(bond->dev, slave->dev, "link status down again after %d ms\n",
2689 char link)
2693 bond_3ad_handle_link_change(slave, link);
2697 bond_alb_handle_link_change(bond, slave, link);
2719 * link monitoring could make a decision on the actual
2720 * link status
2723 slave->link == BOND_LINK_UP)
2730 slave->link = BOND_LINK_DOWN;
2733 "failed to get link speed/duplex\n");
2749 slave_info(bond->dev, slave->dev, "link status definitely up, %u Mbps %s duplex\n",
2773 slave_info(bond->dev, slave->dev, "link status definitely down, disabling slave\n");
2783 slave_err(bond->dev, slave->dev, "invalid new link %d on slave\n",
2805 * implement whatever link state changes are indicated.
3399 /* This function is called regularly to monitor each slave's link
3430 if (slave->link != BOND_LINK_UP) {
3443 slave_info(bond->dev, slave->dev, "link status definitely up\n");
3450 /* slave->link == BOND_LINK_UP */
3453 * when the source ip is 0, so don't take the link down
3476 * do - all replies will be rx'ed on same link causing slaves
3491 slave->link = slave->link_new_state;
3513 /* Called to inspect slaves for active-backup mode ARP monitor link state
3514 * changes. Sets proposed link state in slaves to specify what action
3516 * if changes to link states must be committed.
3531 if (slave->link != BOND_LINK_UP) {
3535 } else if (slave->link == BOND_LINK_BACK) {
3585 /* Called to commit link state changes noted by inspection step of
3619 slave_info(bond->dev, slave->dev, "link status definitely up\n");
3639 slave_info(bond->dev, slave->dev, "link status definitely down, disabling slave\n");
3718 /* if the link state is up at this point, we
3720 * simultaneous link failures and
3725 if (!bond_slave_is_up(slave) && slave->link == BOND_LINK_UP) {
3902 * in weird state. Mark it as link-fail if the link was
3903 * previously up or link-down if it hasn't yet come up, and
3904 * let link-monitoring (miimon) set it right when correct
3910 slave->link = BOND_LINK_FAIL;
3912 slave->link = BOND_LINK_DOWN;
4300 if (bond->params.miimon) /* link check interval, in milliseconds. */
5203 if (!(bond_slave_is_up(slave) && slave->link == BOND_LINK_UP))
5248 slave->link == BOND_LINK_UP) {
5723 * do not need to check mode. Though link speed might not represent
6082 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");
6114 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",
6215 pr_info("MII link monitoring set to %d ms\n", miimon);
6231 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");