Page MenuHomeFreeBSD

Fix LACP with extended media.
ClosedPublic

Authored by np on Aug 31 2017, 5:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 18, 5:30 AM
Unknown Object (File)
Tue, Apr 16, 2:08 AM
Unknown Object (File)
Thu, Apr 11, 1:47 PM
Unknown Object (File)
Sun, Apr 7, 12:04 PM
Unknown Object (File)
Jan 26 2024, 10:28 AM
Unknown Object (File)
Jan 23 2024, 8:40 PM
Unknown Object (File)
Jan 13 2024, 3:39 AM
Unknown Object (File)
Dec 20 2023, 3:34 AM
Subscribers

Details

Summary

Make LACP based lagg work with interfaces (like 100Gbps and 25Gbps) that
report extended media types.

lacp_aggregator_bandwidth() uses the media to determine the speed of the
interface and returns 0 for IFM_OTHER without the bits in the extended range.

Reported by: Kevin Bowling @ LLNW
Sponsored by: Chelsio Communications

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Aug 31 2017, 7:57 PM
mjoras added a subscriber: mjoras.

When you commit can you be more explicit about why this fixes it with the extended media types? For people not familiar with if_lagg some more specifics in the message would be helpful.

Also unless I'm mistaken it looks like IF_BRIDGE(4) has the same bug. Should we fix that as well?

Also unless I'm mistaken it looks like IF_BRIDGE(4) has the same bug. Should we fix that as well?

Upon further inspection, it doesn't actually matter for bridge interfaces.

When you commit can you be more explicit about why this fixes it with the extended media types? For people not familiar with if_lagg some more specifics in the message would be helpful.

I updated the review summary, which is going to be the commit message.

In D12188#252958, @np wrote:

When you commit can you be more explicit about why this fixes it with the extended media types? For people not familiar with if_lagg some more specifics in the message would be helpful.

I updated the review summary, which is going to be the commit message.

Thanks, LGTM!

This revision was automatically updated to reflect the committed changes.