Searched refs:miimon (Results 1 - 7 of 7) sorted by relevance

/linux-4.4.14/drivers/net/bonding/
H A Dbond_options.c318 .name = "miimon",
343 .desc = "Use netif_carrier_ok (vs MII ioctls) in miimon",
727 /* set miimon to default value */ bond_option_mode_set()
728 bond->params.miimon = BOND_DEFAULT_MIIMON; bond_option_mode_set()
730 bond->params.miimon); bond_option_mode_set()
814 bond->params.miimon = newval->value; bond_option_miimon_set()
816 netdev_info(bond->dev, "Note: Updating updelay (to %d) since it is a multiple of the miimon value\n", bond_option_miimon_set()
817 bond->params.updelay * bond->params.miimon); bond_option_miimon_set()
819 netdev_info(bond->dev, "Note: Updating downdelay (to %d) since it is a multiple of the miimon value\n", bond_option_miimon_set()
820 bond->params.downdelay * bond->params.miimon); bond_option_miimon_set()
853 if (!bond->params.miimon) { bond_option_updelay_set()
857 if ((value % bond->params.miimon) != 0) { bond_option_updelay_set()
858 netdev_warn(bond->dev, "up delay (%d) is not a multiple of miimon (%d), updelay rounded to %d ms\n", bond_option_updelay_set()
859 value, bond->params.miimon, bond_option_updelay_set()
860 (value / bond->params.miimon) * bond_option_updelay_set()
861 bond->params.miimon); bond_option_updelay_set()
863 bond->params.updelay = value / bond->params.miimon; bond_option_updelay_set()
865 bond->params.updelay * bond->params.miimon); bond_option_updelay_set()
875 if (!bond->params.miimon) { bond_option_downdelay_set()
879 if ((value % bond->params.miimon) != 0) { bond_option_downdelay_set()
880 netdev_warn(bond->dev, "down delay (%d) is not a multiple of miimon (%d), delay rounded to %d ms\n", bond_option_downdelay_set()
881 value, bond->params.miimon, bond_option_downdelay_set()
882 (value / bond->params.miimon) * bond_option_downdelay_set()
883 bond->params.miimon); bond_option_downdelay_set()
885 bond->params.downdelay = value / bond->params.miimon; bond_option_downdelay_set()
887 bond->params.downdelay * bond->params.miimon); bond_option_downdelay_set()
913 if (bond->params.miimon) { bond_option_arp_interval_set()
915 bond->params.miimon = 0; bond_option_arp_interval_set()
H A Dbond_netlink.c164 int miimon = 0; bond_changelink() local
196 miimon = nla_get_u32(data[IFLA_BOND_MIIMON]); bond_changelink()
198 bond_opt_initval(&newval, miimon); bond_changelink()
230 if (arp_interval && miimon) { bond_changelink()
268 if (arp_validate && miimon) {
519 if (nla_put_u32(skb, IFLA_BOND_MIIMON, bond->params.miimon)) bond_fill_info()
523 bond->params.updelay * bond->params.miimon)) bond_fill_info()
527 bond->params.downdelay * bond->params.miimon)) bond_fill_info()
H A Dbond_main.c94 static int miimon; variable
126 module_param(miimon, int, 0);
127 MODULE_PARM_DESC(miimon, "Link check interval in milliseconds");
134 MODULE_PARM_DESC(use_carrier, "Use netif_carrier_ok (vs MII ioctls) in miimon; "
831 (bond->params.updelay - new_active->delay) * bond->params.miimon); bond_change_active_slave()
1256 info->miimon = bond->params.miimon; bond_fill_ifbond()
1544 if (bond->params.miimon && !bond->params.use_carrier) { bond_enslave()
1548 /* miimon is set but a bonded network driver bond_enslave()
1560 netdev_warn(bond_dev, "can't get link status from interface %s; 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", bond_enslave()
1566 if (bond->params.miimon) { bond_enslave()
2013 bond->params.downdelay * bond->params.miimon); bond_for_each_slave_rcu()
2023 bond->params.miimon, bond_for_each_slave_rcu()
2049 bond->params.miimon); bond_for_each_slave_rcu()
2058 bond->params.miimon, bond_for_each_slave_rcu()
2190 delay = msecs_to_jiffies(bond->params.miimon); bond_mii_monitor()
2216 if (bond->params.miimon) bond_mii_monitor()
2993 * If the setup does not use miimon or arpmon (mode-specific!), bond_slave_netdev_event()
2997 * events. If these (miimon/arpmon) parameters are configured bond_slave_netdev_event()
3229 if (bond->params.miimon) /* link check interval, in milliseconds. */
4275 if (miimon < 0) { bond_check_params()
4276 pr_warn("Warning: miimon module parameter (%d), not in range 0-%d, so it was reset to 0\n", bond_check_params()
4277 miimon, INT_MAX); bond_check_params()
4278 miimon = 0; bond_check_params()
4307 if (!miimon) { bond_check_params()
4308 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"); bond_check_params()
4309 pr_warn("Forcing miimon to 100msec\n"); bond_check_params()
4310 miimon = BOND_DEFAULT_MIIMON; bond_check_params()
4344 if (!miimon) { bond_check_params()
4347 * no effect since miimon is zero... bond_check_params()
4349 pr_warn("Warning: miimon module parameter not set and updelay (%d) or downdelay (%d) module parameter is set; updelay and downdelay have no effect unless miimon is set\n", bond_check_params()
4355 pr_warn("Warning: miimon (%d) and arp_interval (%d) can't be used simultaneously, disabling ARP monitoring\n", bond_check_params()
4356 miimon, arp_interval); bond_check_params()
4360 if ((updelay % miimon) != 0) { bond_check_params()
4361 pr_warn("Warning: updelay (%d) is not a multiple of miimon (%d), updelay rounded to %d ms\n", bond_check_params()
4362 updelay, miimon, (updelay / miimon) * miimon); bond_check_params()
4365 updelay /= miimon; bond_check_params()
4367 if ((downdelay % miimon) != 0) { bond_check_params()
4368 pr_warn("Warning: downdelay (%d) is not a multiple of miimon (%d), downdelay rounded to %d ms\n", bond_check_params()
4369 downdelay, miimon, bond_check_params()
4370 (downdelay / miimon) * miimon); bond_check_params()
4373 downdelay /= miimon; bond_check_params()
4441 if (miimon) { bond_check_params()
4442 pr_info("MII link monitoring set to %d ms\n", miimon); bond_check_params()
4455 /* miimon and arp_interval not set, we need one so things bond_check_params()
4458 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"); bond_check_params()
4527 params->miimon = miimon; bond_check_params()
H A Dbond_procfs.c101 seq_printf(seq, "MII Polling Interval (ms): %d\n", bond->params.miimon); bond_info_show_master()
103 bond->params.updelay * bond->params.miimon); bond_info_show_master()
105 bond->params.downdelay * bond->params.miimon); bond_info_show_master()
H A Dbond_sysfs.c326 return sprintf(buf, "%d\n", bond->params.downdelay * bond->params.miimon); bonding_show_downdelay()
337 return sprintf(buf, "%d\n", bond->params.updelay * bond->params.miimon); bonding_show_updelay()
403 return sprintf(buf, "%d\n", bond->params.miimon); bonding_show_miimon()
405 static DEVICE_ATTR(miimon, S_IRUGO | S_IWUSR,
/linux-4.4.14/include/uapi/linux/
H A Dif_bonding.h100 __s32 miimon; member in struct:ifbond
/linux-4.4.14/include/net/
H A Dbonding.h117 int miimon; member in struct:bond_params

Completed in 954 milliseconds