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 4B1C5A0518; Fri, 24 Jul 2020 07:33:52 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D6AF31C0B5; Fri, 24 Jul 2020 07:33:16 +0200 (CEST) Received: from mail-ua1-f99.google.com (mail-ua1-f99.google.com [209.85.222.99]) by dpdk.org (Postfix) with ESMTP id B434B1C037 for ; Fri, 24 Jul 2020 07:33:08 +0200 (CEST) Received: by mail-ua1-f99.google.com with SMTP id q15so2586666uap.4 for ; Thu, 23 Jul 2020 22:33:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Tj24auzSmqz411glmAW86S5BzB657XFQ1JNKXQye+1E=; b=bw5Ct47QkYpn360+pmYLwnz6YE2y+pQD2oHOJ070JTu58/UG5wvQqLrESOOoIrWByX o1ibaSpV8DefkKxSqrIorU3Qvy3ITElIN7X64if6/V4KXDVcV/jhuUSTbbXEyT4+Hz5S q0uqUr0RsqHFE2PJ5JemO39zhtQ+djz9927ak= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Tj24auzSmqz411glmAW86S5BzB657XFQ1JNKXQye+1E=; b=YiI5s5sQq3Q9637+cUm1UsaxADwK7cHDgg0OfiMS9EcL/W5+2/0MXZwDRQyRZJJCrK zfs2r1d3Tn1Ddk+hMqfylCI5b4BN0Y6wuk81jBndy+iyxK4mb9eA4j7/XEf+WmXSEP3m HZx1WiOEMHNdKGgvozxzKEgDYCOw3R4iMEf2kvpvfa3TgLJ359a3mFNdgWE9XoPJfBh8 MPNt36up2PWwA1PuGXgsVbuqlRvM+hU3eHlQ5UFGKywN14FeXekHkX9se3bLJOQzPx9x olqbPNV2PTvjV/3hx8PuGTgEy7rNIs1kuNNoXWrlJQQqpFXT+KLdjF3SyfqNH6WhNDXL TMdg== X-Gm-Message-State: AOAM532chM6viDnffNHAZB2u17eLp9DTV+67yzyd9Fl90A86HaVt2Q6k zXa5b7lKVYEdVZnXw5ThofBrMxKiGAf0tMSWkIqVfsPfJiuzjol8abiDMg1oIhwjqIANgfxl6PG OsiMfA5KLrMShtTADcaB4JcQe3V1nxHnvr1b+zTXyj1q51jgXAMFMBZYSAn347JOg5EGS9ZUwfs 5JFA== X-Google-Smtp-Source: ABdhPJwst22EAYRPDSev5AQi6pOvU4mQ0eKvLBy/vhrg8S8sliXg1MeibBhOWhKN7huBuCUSSGqGGjNdmJ/1 X-Received: by 2002:ab0:76d2:: with SMTP id w18mr6504220uaq.27.1595568787964; Thu, 23 Jul 2020 22:33:07 -0700 (PDT) Received: from localhost.localdomain ([192.19.223.252]) by smtp-relay.gmail.com with ESMTPS id h17sm592840vsk.0.2020.07.23.22.33.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jul 2020 22:33:07 -0700 (PDT) X-Relaying-Domain: broadcom.com From: Ajit Khaparde To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Venkat Duvvuru , Sriharsha Basavapatna , Somnath Kotur Date: Thu, 23 Jul 2020 22:32:19 -0700 Message-Id: <20200724053235.71069-7-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.21.1 (Apple Git-122.3) In-Reply-To: <20200724053235.71069-1-ajit.khaparde@broadcom.com> References: <20200723115639.22357-1-somnath.kotur@broadcom.com> <20200724053235.71069-1-ajit.khaparde@broadcom.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 06/22] net/bnxt: skip mark id injection into mbuf 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" From: Venkat Duvvuru When a packet is looped back from VF to VFR, it is marked to identify the VFR interface. However, this mark_id shouldn't be percolated up to the OVS as it is internal to pmd. This patch fixes it by skipping mark injection into mbuf if the packet is received on VFR interface. Signed-off-by: Venkat Duvvuru Signed-off-by: Sriharsha Basavapatna Reviewed-by: Somnath Kotur --- drivers/net/bnxt/bnxt_rxr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/bnxt/bnxt_rxr.c b/drivers/net/bnxt/bnxt_rxr.c index baf73cb25..43b1256dc 100644 --- a/drivers/net/bnxt/bnxt_rxr.c +++ b/drivers/net/bnxt/bnxt_rxr.c @@ -485,6 +485,9 @@ bnxt_ulp_set_mark_in_mbuf(struct bnxt *bp, struct rx_pkt_cmpl_hi *rxcmp1, rc = ulp_mark_db_mark_get(bp->ulp_ctx, gfid, cfa_code, vfr_flag, &mark_id); if (!rc) { + /* VF to VFR Rx path. So, skip mark_id injection in mbuf */ + if (vfr_flag && *vfr_flag) + return mark_id; /* Got the mark, write it to the mbuf and return */ mbuf->hash.fdir.hi = mark_id; mbuf->udata64 = (cfa_code & 0xffffffffull) << 32; -- 2.21.1 (Apple Git-122.3)