The branch stable/14 has been updated by kbowling:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=1c6690a9b5eaedb4f8fd5bea3fda70bb5455b21a

commit 1c6690a9b5eaedb4f8fd5bea3fda70bb5455b21a
Author:     Kevin Bowling <[email protected]>
AuthorDate: 2026-08-10 15:09:56 +0000
Commit:     Kevin Bowling <[email protected]>
CommitDate: 2026-08-24 09:12:22 +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);

Reply via email to