git: 19a57f85baac - main - if_bnxt: Fix the PORT_PHY_CFG HWRM requests while setting Pause

From: Warner Losh <imp_at_FreeBSD.org>
Date: Fri, 04 Nov 2022 22:55:55 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=19a57f85baac915a3642733c8a856517f4e95cb3

commit 19a57f85baac915a3642733c8a856517f4e95cb3
Author:     Sumit Saxena <sumit.saxena@broadcom.com>
AuthorDate: 2022-11-04 22:31:24 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-11-04 22:31:24 +0000

    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 40c47ffe372c..9d74b1ebf65b 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);
 	}
 }