Deal correctly with 40G ports that don't have any transceiver plugged
in. Do not claim that they have unknown tranceivers. MFC after: 3 days
This commit is contained in:
parent
d13fc9954b
commit
d607c7477c
@ -2616,12 +2616,19 @@ build_medialist(struct port_info *pi)
|
||||
ifmedia_add(media, m | IFM_40G_SR4, data, NULL);
|
||||
ifmedia_set(media, m | IFM_40G_SR4);
|
||||
break;
|
||||
|
||||
case FW_PORT_MOD_TYPE_TWINAX_PASSIVE:
|
||||
case FW_PORT_MOD_TYPE_TWINAX_ACTIVE:
|
||||
ifmedia_add(media, m | IFM_40G_CR4, data, NULL);
|
||||
ifmedia_set(media, m | IFM_40G_CR4);
|
||||
break;
|
||||
|
||||
case FW_PORT_MOD_TYPE_NONE:
|
||||
m &= ~IFM_FDX;
|
||||
ifmedia_add(media, m | IFM_NONE, data, NULL);
|
||||
ifmedia_set(media, m | IFM_NONE);
|
||||
break;
|
||||
|
||||
default:
|
||||
device_printf(pi->dev,
|
||||
"unknown port_type (%d), mod_type (%d)\n",
|
||||
|
Loading…
Reference in New Issue
Block a user