The branch stable/15 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=c8d38edfa266266a2ad20595c248124b3c4e138d
commit c8d38edfa266266a2ad20595c248124b3c4e138d Author: Kevin Bowling <[email protected]> AuthorDate: 2026-08-10 15:09:56 +0000 Commit: Kevin Bowling <[email protected]> CommitDate: 2026-08-24 00:51:15 +0000 ixgbe: Compare flow control against requested mode The flow-control sysctl represents the configured policy, while current_mode is the mode negotiated with the link partner. Comparing a new request with current_mode can needlessly reprogram an unchanged policy or skip a requested policy change that happens to match the current negotiation result. Compare with requested_mode before deciding that no update is needed. (cherry picked from commit c410551b9feadf9b65f920fd25714fcda8299a56) --- sys/dev/ixgbe/if_ix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ixgbe/if_ix.c b/sys/dev/ixgbe/if_ix.c index 8c3bb0c790af..b67d18a2c41d 100644 --- a/sys/dev/ixgbe/if_ix.c +++ b/sys/dev/ixgbe/if_ix.c @@ -5254,7 +5254,7 @@ ixgbe_sysctl_flowcntl(SYSCTL_HANDLER_ARGS) /* Serialize the live register update with the administrative task. */ ctx_lock = iflib_ctx_lock_get(sc->ctx); sx_xlock(ctx_lock); - if (fc == sc->hw.fc.current_mode) + if (fc == sc->hw.fc.requested_mode) error = 0; else error = ixgbe_set_flowcntl(sc, fc);
