| Summary: | >=gentoo-sources-4.15: network bonding doesn't work | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Patrick Lauer <patrick> |
| Component: | Current packages | Assignee: | Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | hydrapolic |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1753662 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Patrick Lauer
2018-04-21 08:29:38 UTC
I cannot find a similar bug report yet. Are you able to do a bisect? Yes, we'll try to bisect it Success: # git bisect good 4d2c0cda07448ea6980f00102dc3964eb25e241c is the first bad commit commit 4d2c0cda07448ea6980f00102dc3964eb25e241c Author: Mahesh Bandewar <maheshb@google.com> Date: Wed Sep 27 18:03:49 2017 -0700 bonding: speed/duplex update at NETDEV_UP event Some NIC drivers don't have correct speed/duplex settings at the time they send NETDEV_UP notification and that messes up the bonding state. Especially 802.3ad mode which is very sensitive to these settings. In the current implementation we invoke bond_update_speed_duplex() when we receive NETDEV_UP, however, ignore the return value. If the values we get are invalid (UNKNOWN), then slave gets removed from the aggregator with speed and duplex set to UNKNOWN while link is still marked as UP. This patch fixes this scenario. Also 802.3ad mode is sensitive to these conditions while other modes are not, so making sure that it doesn't change the behavior for other modes. Signed-off-by: Mahesh Bandewar <maheshb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> :040000 040000 d8c0cdd0d36e0360d0dea20417fdd690fd9db57e 0c78a15116c4f157e7eaa418888e3e7c54146a76 M drivers A config fix works: modprobe bonding miimon=100 Default is 0, any non-zero value should work. Solving as fixed with the identified workaround. |