mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-16 05:13:40 +00:00
ix, ixv: fix kernel build
struct adapter was renamed to struct sc. Reported by: FreeBSD User <freebsd@walstatt-de.de>
This commit is contained in:
parent
6ad2a9a64f
commit
5ddb1aa305
|
@ -3679,7 +3679,7 @@ ixgbe_if_update_admin_status(if_ctx_t ctx)
|
|||
/* Update DMA coalescing config */
|
||||
ixgbe_config_dmac(sc);
|
||||
iflib_link_state_change(ctx, LINK_STATE_UP,
|
||||
ixgbe_link_speed_to_baudrate(adapter->link_speed));
|
||||
ixgbe_link_speed_to_baudrate(sc->link_speed));
|
||||
|
||||
if (sc->feat_en & IXGBE_FEATURE_SRIOV)
|
||||
ixgbe_ping_all_vfs(sc);
|
||||
|
|
|
@ -937,7 +937,7 @@ ixv_if_update_admin_status(if_ctx_t ctx)
|
|||
"Full Duplex");
|
||||
sc->link_active = true;
|
||||
iflib_link_state_change(ctx, LINK_STATE_UP,
|
||||
ixgbe_link_speed_to_baudrate(adapter->link_speed));
|
||||
ixgbe_link_speed_to_baudrate(sc->link_speed));
|
||||
}
|
||||
} else { /* Link down */
|
||||
if (sc->link_active == true) {
|
||||
|
|
Loading…
Reference in a new issue