summaryrefslogtreecommitdiff
path: root/sys/dev/ixgbe
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2023-07-11 17:41:26 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2023-07-11 17:41:26 +0000
commit5ddb1aa3056305c202e604dd456fe0dcf365edd7 (patch)
treedba739a9c9d325129ea9b10edb8f614991994ee8 /sys/dev/ixgbe
parent6ad2a9a64f34ea3b376c3064fcba30b3c8e654dd (diff)
Diffstat (limited to 'sys/dev/ixgbe')
-rw-r--r--sys/dev/ixgbe/if_ix.c2
-rw-r--r--sys/dev/ixgbe/if_ixv.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ixgbe/if_ix.c b/sys/dev/ixgbe/if_ix.c
index 45ab7c27233a..487a5625dd3a 100644
--- a/sys/dev/ixgbe/if_ix.c
+++ b/sys/dev/ixgbe/if_ix.c
@@ -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);
diff --git a/sys/dev/ixgbe/if_ixv.c b/sys/dev/ixgbe/if_ixv.c
index 13f48a6fd3ec..cf5c8f92c450 100644
--- a/sys/dev/ixgbe/if_ixv.c
+++ b/sys/dev/ixgbe/if_ixv.c
@@ -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) {