git: 57b82de88bc4 - stable/13 - ix, ixv: fix kernel build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Nov 2024 02:14:29 UTC
The branch stable/13 has been updated by kbowling:
URL: https://cgit.FreeBSD.org/src/commit/?id=57b82de88bc4f758a198c397c5aec79769689436
commit 57b82de88bc4f758a198c397c5aec79769689436
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-07-11 17:41:26 +0000
Commit: Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2024-11-27 01:17:10 +0000
ix, ixv: fix kernel build
struct adapter was renamed to struct sc.
Reported by: FreeBSD User <freebsd@walstatt-de.de>
(cherry picked from commit 5ddb1aa3056305c202e604dd456fe0dcf365edd7)
---
sys/dev/ixgbe/if_ix.c | 2 +-
sys/dev/ixgbe/if_ixv.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/dev/ixgbe/if_ix.c b/sys/dev/ixgbe/if_ix.c
index 2fb1c289ada4..313f95c82713 100644
--- a/sys/dev/ixgbe/if_ix.c
+++ b/sys/dev/ixgbe/if_ix.c
@@ -3880,7 +3880,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 6e97e50c1914..4812f5e7368c 100644
--- a/sys/dev/ixgbe/if_ixv.c
+++ b/sys/dev/ixgbe/if_ixv.c
@@ -941,7 +941,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) {