From 19a57f85baac915a3642733c8a856517f4e95cb3 Mon Sep 17 00:00:00 2001 From: Sumit Saxena Date: Fri, 4 Nov 2022 16:31:24 -0600 Subject: [PATCH] if_bnxt: Fix the PORT_PHY_CFG HWRM requests while setting Pause Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D36446 --- sys/dev/bnxt/bnxt_hwrm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/bnxt/bnxt_hwrm.c b/sys/dev/bnxt/bnxt_hwrm.c index 40c47ffe372..9d74b1ebf65 100644 --- a/sys/dev/bnxt/bnxt_hwrm.c +++ b/sys/dev/bnxt/bnxt_hwrm.c @@ -868,6 +868,9 @@ bnxt_hwrm_set_pause_common(struct bnxt_softc *softc, HWRM_PORT_PHY_CFG_INPUT_FORCE_PAUSE_TX; req->enables |= htole32(HWRM_PORT_PHY_CFG_INPUT_ENABLES_FORCE_PAUSE); + req->auto_pause = req->force_pause; + req->enables |= + htole32(HWRM_PORT_PHY_CFG_INPUT_ENABLES_AUTO_PAUSE); } }