Fix media reporting for dual port CX4 myri10ge NICs

MFC after: 7 days
Sponsored by: Myricom, Inc.
This commit is contained in:
Andrew Gallatin 2011-07-12 14:43:49 +00:00
parent 0d2653cb44
commit 30882b10fc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223957

View File

@ -2834,7 +2834,7 @@ mxge_media_init(mxge_softc_t *sc)
return;
}
}
if (*ptr == 'C') {
if (*ptr == 'C' || *(ptr +1) == 'C') {
/* -C is CX4 */
sc->connector = MXGE_CX4;
mxge_media_set(sc, IFM_10G_CX4);