]> git.itanic.dy.fi Git - linux-stable/commit
bonding: update port speed when getting bond speed
authorHangbin Liu <liuhangbin@gmail.com>
Mon, 21 Aug 2023 10:10:08 +0000 (18:10 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 22 Aug 2023 13:10:35 +0000 (15:10 +0200)
commit691b2bf1494620ff8c292626e4967c57e5705a8b
tree70ee659359aca3fee50db8e3b094bbe240f7eed4
parent43c2817225fce05701f062a996255007481935e2
bonding: update port speed when getting bond speed

Andrew reported a bonding issue that if we put an active-back bond on top
of a 802.3ad bond interface. When the 802.3ad bond's speed/duplex changed
dynamically. The upper bonding interface's speed/duplex can't be changed at
the same time, which will show incorrect speed.

Fix it by updating the port speed when calling ethtool.

Reported-by: Andrew Schorr <ajschorr@alumni.princeton.edu>
Closes: https://lore.kernel.org/netdev/ZEt3hvyREPVdbesO@Laptop-X1/
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Acked-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Link: https://lore.kernel.org/r/20230821101008.797482-1-liuhangbin@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/bonding/bond_main.c