From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 292B2A0524; Fri, 31 Jan 2020 06:07:22 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7656B1C044; Fri, 31 Jan 2020 06:07:21 +0100 (CET) Received: from relay.smtp.broadcom.com (relay.smtp.broadcom.com [192.19.232.149]) by dpdk.org (Postfix) with ESMTP id DB44F1C043 for ; Fri, 31 Jan 2020 06:07:20 +0100 (CET) Received: from dhcp-10-123-153-55.dhcp.broadcom.net (dhcp-10-123-153-55.dhcp.broadcom.net [10.123.153.55]) by relay.smtp.broadcom.com (Postfix) with ESMTP id 0B0991BE3B6; Thu, 30 Jan 2020 21:07:15 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.10.3 relay.smtp.broadcom.com 0B0991BE3B6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1580447236; bh=YNXRiOZExQraW3Xah6CZSYCxllKp+xDy1c04bMMwlrU=; h=From:To:Cc:Subject:Date:From; b=DhqoUtz5OLy3pRQRVbfvSAlSbkYVMkLpXF4wnNBoF7m4QG2Q3zkuGJm4pZjBPi3+0 rZDkSWQiSE6i5YU6pkA6NItTl8zh5F3U8RB/cw9hryTZbKWKiwCrgRIknT4VQBHdIN iXBAyfnId0LvBCW+ic2Y9G5bJa9/06/ohS0nBH1Y= From: Somnath Kotur To: dev@dpdk.org Cc: ferruh.yigit@intel.com Date: Fri, 31 Jan 2020 10:35:47 +0530 Message-Id: <20200131050547.16665-1-somnath.kotur@broadcom.com> X-Mailer: git-send-email 2.10.1.613.g2cc2e70 Subject: [dpdk-dev] [PATCH] net/bnxt: fix to remove spurious warning in Rx handler X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" HW seems to populate the cfa code in the Rx descriptor even if an explicit flow rule is not configured via application as there might be a default rule configured in HW even for promisc mode. Fixes: ff88f133be45 ("net/bnxt: fix to support zero mark id along with RSS action") Bug: CTRL-45914 Change-Id: I1c1a95b0a4661fd7b8bbe02de62d18e0119d15d2 Signed-off-by: Somnath Kotur --- drivers/net/bnxt/bnxt_rxr.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/bnxt/bnxt_rxr.c b/drivers/net/bnxt/bnxt_rxr.c index 1960b05..1f47db9 100644 --- a/drivers/net/bnxt/bnxt_rxr.c +++ b/drivers/net/bnxt/bnxt_rxr.c @@ -909,11 +909,8 @@ void bnxt_set_mark_in_mbuf(struct bnxt *bp, if (!cfa_code) return; - if (cfa_code && !bp->mark_table[cfa_code].valid) { - PMD_DRV_LOG(WARNING, "Invalid mark_tbl entry! cfa_code: 0x%x\n", - cfa_code); + if (cfa_code && !bp->mark_table[cfa_code].valid) return; - } flags2 = rte_le_to_cpu_16(rxcmp1->flags2); meta = rte_le_to_cpu_32(rxcmp1->metadata); -- 1.8.3.1