if_mxge.c (d60840138f6292c1ceeb177ebe797eca0b2749da) if_mxge.c (73a1170a8c41cb848f17cc0a8839e9dcee3d126e)
1/******************************************************************************
2
3Copyright (c) 2006-2013, Myricom Inc.
4All rights reserved.
5
6Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are met:
8

--- 2980 unchanged lines hidden (view full) ---

2989 uint32_t byte;
2990
2991 sc->need_media_probe = 0;
2992
2993 if (sc->connector == MXGE_XFP) {
2994 /* -R is XFP */
2995 mxge_media_types = mxge_xfp_media_types;
2996 mxge_media_type_entries =
1/******************************************************************************
2
3Copyright (c) 2006-2013, Myricom Inc.
4All rights reserved.
5
6Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are met:
8

--- 2980 unchanged lines hidden (view full) ---

2989 uint32_t byte;
2990
2991 sc->need_media_probe = 0;
2992
2993 if (sc->connector == MXGE_XFP) {
2994 /* -R is XFP */
2995 mxge_media_types = mxge_xfp_media_types;
2996 mxge_media_type_entries =
2997 sizeof (mxge_xfp_media_types) /
2998 sizeof (mxge_xfp_media_types[0]);
2997 nitems(mxge_xfp_media_types);
2999 byte = MXGE_XFP_COMPLIANCE_BYTE;
3000 cage_type = "XFP";
3001 } else if (sc->connector == MXGE_SFP) {
3002 /* -S or -2S is SFP+ */
3003 mxge_media_types = mxge_sfp_media_types;
3004 mxge_media_type_entries =
2998 byte = MXGE_XFP_COMPLIANCE_BYTE;
2999 cage_type = "XFP";
3000 } else if (sc->connector == MXGE_SFP) {
3001 /* -S or -2S is SFP+ */
3002 mxge_media_types = mxge_sfp_media_types;
3003 mxge_media_type_entries =
3005 sizeof (mxge_sfp_media_types) /
3006 sizeof (mxge_sfp_media_types[0]);
3004 nitems(mxge_sfp_media_types);
3007 cage_type = "SFP+";
3008 byte = 3;
3009 } else {
3010 /* nothing to do; media type cannot change */
3011 return;
3012 }
3013
3014 /*

--- 2014 unchanged lines hidden ---
3005 cage_type = "SFP+";
3006 byte = 3;
3007 } else {
3008 /* nothing to do; media type cannot change */
3009 return;
3010 }
3011
3012 /*

--- 2014 unchanged lines hidden ---