diff options
| author | Andreas Born <[email protected]> | 2017-08-11 22:36:55 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-08-14 03:01:38 +0000 |
| commit | 11e9d7829dd08dbafb24517fe922f11c3a8a9dc2 (patch) | |
| tree | b389255ff179d7d2d325e87c6bf36d2c0ac9c108 /net/tipc/msg.c | |
| parent | udp: harden copy_linear_skb() (diff) | |
| download | kernel-11e9d7829dd08dbafb24517fe922f11c3a8a9dc2.tar.gz kernel-11e9d7829dd08dbafb24517fe922f11c3a8a9dc2.zip | |
bonding: ratelimit failed speed/duplex update warning
bond_miimon_commit() handles the UP transition for each slave of a bond
in the case of MII. It is triggered 10 times per second for the default
MII Polling interval of 100ms. For device drivers that do not implement
__ethtool_get_link_ksettings() the call to bond_update_speed_duplex()
fails persistently while the MII status could remain UP. That is, in
this and other cases where the speed/duplex update keeps failing over a
longer period of time while the MII state is UP, a warning is printed
every MII polling interval.
To address these excessive warnings net_ratelimit() should be used.
Printing a warning once would not be sufficient since the call to
bond_update_speed_duplex() could recover to succeed and fail again
later. In that case there would be no new indication what went wrong.
Fixes: b5bf0f5b16b9c (bonding: correctly update link status during mii-commit phase)
Signed-off-by: Andreas Born <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/msg.c')
0 files changed, 0 insertions, 0 deletions
