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 988C0A0524; Fri, 31 Jan 2020 06:13:54 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B77531C044; Fri, 31 Jan 2020 06:13:53 +0100 (CET) Received: from relay.smtp.broadcom.com (relay.smtp.broadcom.com [192.19.232.149]) by dpdk.org (Postfix) with ESMTP id 8497C1C043 for ; Fri, 31 Jan 2020 06:13:52 +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 456311BE3BE; Thu, 30 Jan 2020 21:13:46 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.10.3 relay.smtp.broadcom.com 456311BE3BE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1580447627; bh=rn4ATYHYoAya8qVlv75vvZRQo5B1sb/mJCRQMBBeRt4=; h=From:To:Cc:Subject:Date:From; b=EZrQEDHoR6GQrkVtA7XLEZaCAY6OQOijJYQgB9BrhnflnvhCp6JelXEcpaRXbD11D MkFPia+o8esNNC1Y0dEmUbPxf+8zKE0fQiS79Fn0/gq6H5ZH5X4ghlnIRi5qcjqmju +ivQZyvEVXBrMuRMktuzkbe5W41sAXZ6apyi/auk= From: Somnath Kotur To: dev@dpdk.org Cc: ferruh.yigit@intel.com Date: Fri, 31 Jan 2020 10:42:17 +0530 Message-Id: <20200131051217.16773-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: 6d9be25b9771 ("net/bnxt: fix to support zero mark id along with RSS action") Reviewed-by: Ajit Khaparde 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