mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
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: kbowling@ Reviewed by: eugen_grosbein.net, mjoras@ MFC after: 1 week Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D12188
This commit is contained in:
parent
5b4b1bb3a1
commit
aa0186bc36
1 changed files with 5 additions and 1 deletions
|
|
@ -463,7 +463,11 @@ lacp_linkstate(struct lagg_port *lgp)
|
|||
uint16_t old_key;
|
||||
|
||||
bzero((char *)&ifmr, sizeof(ifmr));
|
||||
error = (*ifp->if_ioctl)(ifp, SIOCGIFMEDIA, (caddr_t)&ifmr);
|
||||
error = (*ifp->if_ioctl)(ifp, SIOCGIFXMEDIA, (caddr_t)&ifmr);
|
||||
if (error != 0) {
|
||||
bzero((char *)&ifmr, sizeof(ifmr));
|
||||
error = (*ifp->if_ioctl)(ifp, SIOCGIFMEDIA, (caddr_t)&ifmr);
|
||||
}
|
||||
if (error != 0)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue