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 4BD49A0524; Fri, 31 Jan 2020 07:18:29 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1DF1C1C043; Fri, 31 Jan 2020 07:18:28 +0100 (CET) Received: from relay.smtp.broadcom.com (relay.smtp.broadcom.com [192.19.211.62]) by dpdk.org (Postfix) with ESMTP id 178EB1C030 for ; Fri, 31 Jan 2020 07:18:27 +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 EC21A28FCE9; Thu, 30 Jan 2020 22:18:25 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.10.3 relay.smtp.broadcom.com EC21A28FCE9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1580451506; bh=VlwJBelA+eJfv4i1M99UvHw5wMMDfjB9QOPFyEdkyQs=; h=From:To:Cc:Subject:Date:From; b=AMxxBSF9qihaby2s5B80pJgMSzuModpAS42H3sAFZi7xMA9ClhTv2wWOx6Z0xPQNF 3p+pDIo8+3Fu4Apq0+bgEZxz4BqcW402aSWggdZMuFrXhqkwX7ZH9S1PkVF9BBF6XJ 5fYQoVjReSN2zoJxb4jZdVWiaaVCvQbMb6YJKpog= From: Somnath Kotur To: dev@dpdk.org Cc: ferruh.yigit@intel.com Date: Fri, 31 Jan 2020 11:46:58 +0530 Message-Id: <20200131061658.17364-1-somnath.kotur@broadcom.com> X-Mailer: git-send-email 2.10.1.613.g2cc2e70 Subject: [dpdk-dev] [PATCH v2] 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: 94eb699bc82e ("net/bnxt: support flow mark action") Reviewed-by: Ajit Khaparde Signed-off-by: Somnath Kotur --- v1->v2: Used the correct commit id for the fixes tag 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