From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9EF3EA034F; Mon, 30 Aug 2021 16:36:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 906FF410FC; Mon, 30 Aug 2021 16:36:02 +0200 (CEST) Received: from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113]) by mails.dpdk.org (Postfix) with ESMTP id 15E72410F6; Mon, 30 Aug 2021 16:36:01 +0200 (CEST) Received: from localhost.localdomain (unknown [5.144.120.37]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by shelob.oktetlabs.ru (Postfix) with ESMTPSA id 3DE0A7F504; Mon, 30 Aug 2021 17:36:00 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru 3DE0A7F504 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=oktetlabs.ru; s=default; t=1630334160; bh=8OEf/Kw1l4lyIPMFc6z/rGY1Jrq8qUg9UpQqfYi8N1A=; h=From:To:Cc:Subject:Date; b=WI6q/vmhJPkoJQp0Evx+GGDBfFqb27Z8ZVp3PAlP5CZsetPlXciiYc1AFS12OaQva 9IhNTrAkKYZ0giVizBLFzXBUeZ+/PwAhEFCiZkSCmvYO55Hs/fyFr4Jny3/L+5+FWp G4jdKs06+QRtP8wVVyH1rVgafnGnAOTt68XgtJ6c= From: Ivan Malov To: dev@dpdk.org Cc: stable@dpdk.org, Andrew Rybchenko Date: Mon, 30 Aug 2021 17:35:42 +0300 Message-Id: <20210830143542.19966-1-ivan.malov@oktetlabs.ru> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] net/sfc: make EF100 native Rx datapath set FDIR bit for MARK X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" According to flow action MARK definition, PMDs must set both PKT_RX_FDIR and PKT_RX_FDIR_ID if the packet contains a mark. Fixes: 1aacc3d388d3 ("net/sfc: support user mark and flag Rx for EF100") Cc: stable@dpdk.org Signed-off-by: Ivan Malov Reviewed-by: Andrew Rybchenko --- drivers/net/sfc/sfc_ef100_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/sfc/sfc_ef100_rx.c b/drivers/net/sfc/sfc_ef100_rx.c index d4cb96881c..1bf04f565a 100644 --- a/drivers/net/sfc/sfc_ef100_rx.c +++ b/drivers/net/sfc/sfc_ef100_rx.c @@ -414,7 +414,7 @@ sfc_ef100_rx_prefix_to_offloads(const struct sfc_ef100_rxq *rxq, user_mark = EFX_OWORD_FIELD(rx_prefix[0], ESF_GZ_RX_PREFIX_USER_MARK); if (user_mark != SFC_EF100_USER_MARK_INVALID) { - ol_flags |= PKT_RX_FDIR_ID; + ol_flags |= PKT_RX_FDIR | PKT_RX_FDIR_ID; m->hash.fdir.hi = user_mark; } } -- 2.20.1