Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixgbe/if_ixv.c
Show First 20 Lines • Show All 926 Lines • ▼ Show 20 Lines | ixv_if_update_admin_status(if_ctx_t ctx) | ||||
if (adapter->link_up) { | if (adapter->link_up) { | ||||
if (adapter->link_active == FALSE) { | if (adapter->link_active == FALSE) { | ||||
if (bootverbose) | if (bootverbose) | ||||
device_printf(dev, "Link is up %d Gbps %s \n", | device_printf(dev, "Link is up %d Gbps %s \n", | ||||
((adapter->link_speed == 128) ? 10 : 1), | ((adapter->link_speed == 128) ? 10 : 1), | ||||
"Full Duplex"); | "Full Duplex"); | ||||
adapter->link_active = TRUE; | adapter->link_active = TRUE; | ||||
iflib_link_state_change(ctx, LINK_STATE_UP, | iflib_link_state_change(ctx, LINK_STATE_UP, | ||||
IF_Gbps(10)); | ixgbe_link_speed_to_baudrate(adapter->link_speed)); | ||||
} | } | ||||
} else { /* Link down */ | } else { /* Link down */ | ||||
if (adapter->link_active == TRUE) { | if (adapter->link_active == TRUE) { | ||||
if (bootverbose) | if (bootverbose) | ||||
device_printf(dev, "Link is Down\n"); | device_printf(dev, "Link is Down\n"); | ||||
iflib_link_state_change(ctx, LINK_STATE_DOWN, 0); | iflib_link_state_change(ctx, LINK_STATE_DOWN, 0); | ||||
adapter->link_active = FALSE; | adapter->link_active = FALSE; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 987 Lines • Show Last 20 Lines |