summaryrefslogtreecommitdiffstats
path: root/sys/dev/mxge
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>2011-07-12 14:43:49 +0000
committergallatin <gallatin@FreeBSD.org>2011-07-12 14:43:49 +0000
commitd5b4db49161816ebb65219fe2a6115a40e1c8c4c (patch)
tree9ab94f49c7ee471a2a95ac29db4982f54971068a /sys/dev/mxge
parent03559906f7abb26f23d6642f95df7fbe90175656 (diff)
downloadFreeBSD-src-d5b4db49161816ebb65219fe2a6115a40e1c8c4c.zip
FreeBSD-src-d5b4db49161816ebb65219fe2a6115a40e1c8c4c.tar.gz
Fix media reporting for dual port CX4 myri10ge NICs
MFC after: 7 days Sponsored by: Myricom, Inc.
Diffstat (limited to 'sys/dev/mxge')
-rw-r--r--sys/dev/mxge/if_mxge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mxge/if_mxge.c b/sys/dev/mxge/if_mxge.c
index f6164d0..23af286 100644
--- a/sys/dev/mxge/if_mxge.c
+++ b/sys/dev/mxge/if_mxge.c
@@ -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);
OpenPOWER on IntegriCloud