[01/11] net/bnxt: disable TruFlow if compressed CQE is set
Checks
Commit Message
If a user selects compressed CQE mode using the cqe-mode devarg,
it is clear that the user does not intend to use TruFlow mode.
Since host backed TruFlow setting is enable by default now, disable
TruFlow during initialization to prevent unexpected behavior
when the two get enabled.
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
---
drivers/net/bnxt/bnxt_ethdev.c | 5 +++++
drivers/net/bnxt/bnxt_hwrm.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
@@ -5785,6 +5785,11 @@ static int bnxt_get_config(struct bnxt *bp)
if (rc)
return rc;
+ if (bnxt_compressed_rx_cqe_mode_enabled(bp)) {
+ PMD_DRV_LOG_LINE(INFO, "Compressed CQE is set. Truflow is disabled.");
+ bp->fw_cap &= ~BNXT_FW_CAP_TRUFLOW_EN;
+ }
+
rc = bnxt_hwrm_queue_qportcfg(bp);
if (rc)
return rc;
@@ -1731,7 +1731,7 @@ int bnxt_hwrm_ver_get(struct bnxt *bp, uint32_t timeout)
if (dev_caps_cfg &
HWRM_VER_GET_OUTPUT_DEV_CAPS_CFG_CFA_TRUFLOW_SUPPORTED) {
- PMD_DRV_LOG_LINE(DEBUG, "Host-based truflow feature enabled.");
+ PMD_DRV_LOG_LINE(DEBUG, "Host-based truflow feature supported.");
bp->fw_cap |= BNXT_FW_CAP_TRUFLOW_EN;
}