|
|
8fbaf1 |
Date: Fri, 16 Aug 2019 17:35:56 -0400
|
|
|
8fbaf1 |
From: Jonathan Toppins <jtoppins@redhat.com>
|
|
|
8fbaf1 |
To: rhkernel-list@redhat.com
|
|
|
8fbaf1 |
Cc: darcari@redhat.com, nhorman@redhat.com, linville@redhat.com
|
|
|
8fbaf1 |
Subject: [PATCH RHEL7 4/7] bnxt_en: Suppress error messages when querying
|
|
|
8fbaf1 |
DSCP DCB capabilities.
|
|
|
8fbaf1 |
|
|
|
8fbaf1 |
Some firmware versions do not support this so use the silent variant
|
|
|
8fbaf1 |
to send the message to firmware to suppress the harmless error. This
|
|
|
8fbaf1 |
error message is unnecessarily alarming the user.
|
|
|
8fbaf1 |
|
|
|
8fbaf1 |
Fixes: afdc8a84844a ("bnxt_en: Add DCBNL DSCP application protocol support.")
|
|
|
8fbaf1 |
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
|
|
|
8fbaf1 |
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
|
8fbaf1 |
(cherry picked from commit 4ca5fa39e1aea2f85eb9c4257075c4077c6531da)
|
|
|
8fbaf1 |
Bugzilla: 1738649
|
|
|
8fbaf1 |
Build Info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=23050341
|
|
|
8fbaf1 |
Tested: netperf with ipv4 & ipv6 testing
|
|
|
8fbaf1 |
Signed-off-by: Jonathan Toppins <jtoppins@redhat.com>
|
|
|
8fbaf1 |
---
|
|
|
8fbaf1 |
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c | 2 +-
|
|
|
8fbaf1 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
8fbaf1 |
|
|
|
8fbaf1 |
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
|
|
|
8fbaf1 |
index 15c7041e937b..88f0bc7a15ea 100644
|
|
|
8fbaf1 |
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
|
|
|
8fbaf1 |
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
|
|
|
8fbaf1 |
@@ -396,7 +396,7 @@ static int bnxt_hwrm_queue_dscp_qcaps(struct bnxt *bp)
|
|
|
8fbaf1 |
|
|
|
8fbaf1 |
bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_QUEUE_DSCP_QCAPS, -1, -1);
|
|
|
8fbaf1 |
mutex_lock(&bp->hwrm_cmd_lock);
|
|
|
8fbaf1 |
- rc = _hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT);
|
|
|
8fbaf1 |
+ rc = _hwrm_send_message_silent(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT);
|
|
|
8fbaf1 |
if (!rc) {
|
|
|
8fbaf1 |
bp->max_dscp_value = (1 << resp->num_dscp_bits) - 1;
|
|
|
8fbaf1 |
if (bp->max_dscp_value < 0x3f)
|
|
|
8fbaf1 |
--
|
|
|
8fbaf1 |
2.16.4
|
|
|
8fbaf1 |
|
|
|
8fbaf1 |
|