FreeBSD Bugzilla – Attachment 131919 Details for
Bug 176097
[lagg] [patch] lagg/lacp broken when aggregated interfaces have same speed but different media type
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.42 KB, created by
Josef Pojsl
on 2013-02-13 07:50:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Josef Pojsl
Created:
2013-02-13 07:50:00 UTC
Size:
1.42 KB
patch
obsolete
>*** sys/net/ieee8023ad_lacp.c.orig 2013-02-12 21:03:16.000000000 +0100 >--- sys/net/ieee8023ad_lacp.c 2013-02-12 21:13:39.000000000 +0100 >*************** >*** 1028,1035 **** > KASSERT(IFM_TYPE(media) == IFM_ETHER, ("invalid media type")); > KASSERT((media & IFM_FDX) != 0, ("aggregating HDX interface")); > >! /* bit 0..4: IFM_SUBTYPE */ >! key = subtype; > /* bit 5..14: (some bits of) if_index of lagg device */ > key |= 0x7fe0 & ((sc->sc_ifp->if_index) << 5); > /* bit 15: 0 */ >--- 1028,1063 ---- > KASSERT(IFM_TYPE(media) == IFM_ETHER, ("invalid media type")); > KASSERT((media & IFM_FDX) != 0, ("aggregating HDX interface")); > >! /* bit 0..4: IFM_SUBTYPE modulo speed */ >! switch (subtype) { >! case IFM_10_T: >! case IFM_10_2: >! case IFM_10_5: >! case IFM_10_STP: >! case IFM_10_FL: >! key = IFM_10_T; break; >! case IFM_100_TX: >! case IFM_100_FX: >! case IFM_100_T4: >! case IFM_100_VG: >! case IFM_100_T2: >! key = IFM_100_TX; break; >! case IFM_1000_SX: >! case IFM_1000_LX: >! case IFM_1000_CX: >! case IFM_1000_T: >! key = IFM_1000_SX; break; >! case IFM_10G_LR: >! case IFM_10G_SR: >! case IFM_10G_CX4: >! case IFM_10G_TWINAX: >! case IFM_10G_TWINAX_LONG: >! case IFM_10G_LRM: >! case IFM_10G_T: >! key = IFM_10G_LR; break; >! default: >! key = subtype; >! } > /* bit 5..14: (some bits of) if_index of lagg device */ > key |= 0x7fe0 & ((sc->sc_ifp->if_index) << 5); > /* bit 15: 0 */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 176097
: 131919