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 DFDF5454E8 for ; Tue, 25 Jun 2024 01:59:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D68CE4026F; Tue, 25 Jun 2024 01:59:58 +0200 (CEST) Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by mails.dpdk.org (Postfix) with ESMTP id 29F6E4026F for ; Tue, 25 Jun 2024 01:59:57 +0200 (CEST) Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-366e70d0330so1701208f8f.1 for ; Mon, 24 Jun 2024 16:59:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719273597; x=1719878397; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TDwNSbFA+bfnOMqgFHqZSlk047r7DADDqe/blCbR4xU=; b=Strt5tcrqF4d1N1v9C1jnC6gxdCLaSmL40LJZbWbsBS2hTa0p8fzndqLWattaexkHq D2xoWlnfSWUY/Xmy081h62ipoi2rxdJRWqBzfXV6oJ57O6A60/8SxTeuREIXKB3/q/M9 /3gUeJrf3/lrK1l3CoFwBSt04tNpkfamYv7A9XU5NNKbvmBtSn2vNcAXzTHCBk7qP6jA z/OyI0FA9+cpIy1A6H4GSz20ZcGGwmSukIJm6bovyukS8FedERh2jlclkU/pBzWC15St 5tFjvi7VyIUfRecx4q2/XF84J6+zROzGOxob7CoQ2NX4GFYWB/kwIYu9V9EhR8nmjgxq PiCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719273597; x=1719878397; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TDwNSbFA+bfnOMqgFHqZSlk047r7DADDqe/blCbR4xU=; b=eM2vpY1HcitMeNPh4U+7h00l+x60KWcBzW3lqtqGcSB+krqMiPLRMuUvNiYmDtUOIP nd9Xs/1aiug7p+3zz0W9SXahbvDbK/EY+l00QpzVaH+5+pYH72ATb8KXKdP1Dq2Y75Zv Q99JBpx1qUYQE9LeuKcjNe46ACMKIli4N8yRLirDUHniwRF+cuBkqg8uAVr1uAtdmMML oOk26jCbFSILF5Z8Z2aAKwufF/wFKpyuHQT8HzvsB47ufegKtERo1OoIUUIVGABgMQWr alzvyQNmh53Ot4tgT0wmFj0CP/37XV9iWkx7tU29eRBlLTdTyN7/EBTG2q++reqEy6U6 +R6A== X-Gm-Message-State: AOJu0Ywf3dcVHX7N3oRBahdqM3RCVmyewDjCfjFxswSfL+TAn6MCTfv3 glw3WZMLxA69qaRG9wr6lFjQMT79gIbD5X3nodEDcWMwWbuJvmeR X-Google-Smtp-Source: AGHT+IGTO+3bLd1Ln6vqpTBuIWd5XDi7QZz7puaPzsHg4UVX96wIgejUYYPj8qgJA/Qh/ZmI4LiYgw== X-Received: by 2002:a5d:6d8c:0:b0:366:eef4:ce99 with SMTP id ffacd0b85a97d-366eef4cf70mr3852875f8f.45.1719273596754; Mon, 24 Jun 2024 16:59:56 -0700 (PDT) Received: from localhost ([2a01:4b00:d036:ae00:7aef:1aaa:3dff:d546]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-366389b869esm11309553f8f.37.2024.06.24.16.59.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 16:59:56 -0700 (PDT) From: luca.boccassi@gmail.com To: Jie Hai Cc: dpdk stable Subject: patch 'net/hns3: disable SCTP verification tag for RSS hash input' has been queued to stable release 22.11.6 Date: Tue, 25 Jun 2024 00:58:00 +0100 Message-Id: <20240624235907.885628-14-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240624235907.885628-1-luca.boccassi@gmail.com> References: <20240624235907.885628-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 22.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/27/24. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/ac72e810412dc6e55ff861377573e9f3e090ba04 Thanks. Luca Boccassi --- >From ac72e810412dc6e55ff861377573e9f3e090ba04 Mon Sep 17 00:00:00 2001 From: Jie Hai Date: Wed, 3 Apr 2024 18:16:23 +0800 Subject: [PATCH] net/hns3: disable SCTP verification tag for RSS hash input [ upstream commit bb1f4717636f5b7d27f4f2fe30469b69d8910bd0 ] When the symmetric RSS algorithm is used, the same packet is expected to be hashed to the same queue in the upstream and downstream directions. The problem is that it could map the packets in the same SCTP connection to different NIC RX queues depending on the direction of packets. This is because the verification Tag is used as the RSS hash input for the SCTP packets, and the value depends on the peer end of the SCTP connection and could not be symmetrically used in the hardware-implemented RSS algorithm. In addition, the ethdev framework doesn't support setting SCTP V-tag as the RSS hash input. So disable it for all RSS hash algorithms. Signed-off-by: Jie Hai --- drivers/net/hns3/hns3_rss.c | 6 ++---- drivers/net/hns3/hns3_rss.h | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/net/hns3/hns3_rss.c b/drivers/net/hns3/hns3_rss.c index eeeca71a5c..ac88ca04ce 100644 --- a/drivers/net/hns3/hns3_rss.c +++ b/drivers/net/hns3/hns3_rss.c @@ -153,8 +153,7 @@ static const struct { BIT_ULL(HNS3_RSS_FIELD_IPV4_SCTP_EN_IP_S) | BIT_ULL(HNS3_RSS_FIELD_IPV4_SCTP_EN_IP_D) | BIT_ULL(HNS3_RSS_FIELD_IPV4_SCTP_EN_SCTP_S) | - BIT_ULL(HNS3_RSS_FIELD_IPV4_SCTP_EN_SCTP_D) | - BIT_ULL(HNS3_RSS_FIELD_IPV4_SCTP_EN_SCTP_VER), + BIT_ULL(HNS3_RSS_FIELD_IPV4_SCTP_EN_SCTP_D), HNS3_RSS_TUPLE_IPV4_SCTP_M }, /* IPV6-FRAG */ @@ -274,8 +273,7 @@ static const struct { BIT_ULL(HNS3_RSS_FIELD_IPV6_SCTP_EN_IP_S) | BIT_ULL(HNS3_RSS_FIELD_IPV6_SCTP_EN_IP_D) | BIT_ULL(HNS3_RSS_FIELD_IPV6_SCTP_EN_SCTP_D) | - BIT_ULL(HNS3_RSS_FIELD_IPV6_SCTP_EN_SCTP_S) | - BIT_ULL(HNS3_RSS_FIELD_IPV6_SCTP_EN_SCTP_VER), + BIT_ULL(HNS3_RSS_FIELD_IPV6_SCTP_EN_SCTP_S), HNS3_RSS_TUPLE_IPV6_SCTP_M }, }; diff --git a/drivers/net/hns3/hns3_rss.h b/drivers/net/hns3/hns3_rss.h index 9d182a8025..0755760b45 100644 --- a/drivers/net/hns3/hns3_rss.h +++ b/drivers/net/hns3/hns3_rss.h @@ -49,7 +49,6 @@ enum hns3_tuple_field { HNS3_RSS_FIELD_IPV4_SCTP_EN_SCTP_S, HNS3_RSS_FIELD_IPV4_SCTP_EN_IP_D, HNS3_RSS_FIELD_IPV4_SCTP_EN_IP_S, - HNS3_RSS_FIELD_IPV4_SCTP_EN_SCTP_VER, /* IPV4 ENABLE FIELD */ HNS3_RSS_FIELD_IPV4_EN_NONFRAG_IP_D = 24, @@ -74,7 +73,6 @@ enum hns3_tuple_field { HNS3_RSS_FIELD_IPV6_SCTP_EN_SCTP_S, HNS3_RSS_FIELD_IPV6_SCTP_EN_IP_D, HNS3_RSS_FIELD_IPV6_SCTP_EN_IP_S, - HNS3_RSS_FIELD_IPV6_SCTP_EN_SCTP_VER, /* IPV6 ENABLE FIELD */ HNS3_RSS_FIELD_IPV6_NONFRAG_IP_D = 56, @@ -96,12 +94,12 @@ enum hns3_tuple_field { #define HNS3_RSS_TUPLE_IPV4_TCP_M GENMASK(3, 0) #define HNS3_RSS_TUPLE_IPV4_UDP_M GENMASK(11, 8) -#define HNS3_RSS_TUPLE_IPV4_SCTP_M GENMASK(20, 16) +#define HNS3_RSS_TUPLE_IPV4_SCTP_M GENMASK(19, 16) #define HNS3_RSS_TUPLE_IPV4_NONF_M GENMASK(25, 24) #define HNS3_RSS_TUPLE_IPV4_FLAG_M GENMASK(27, 26) #define HNS3_RSS_TUPLE_IPV6_TCP_M GENMASK(35, 32) #define HNS3_RSS_TUPLE_IPV6_UDP_M GENMASK(43, 40) -#define HNS3_RSS_TUPLE_IPV6_SCTP_M GENMASK(52, 48) +#define HNS3_RSS_TUPLE_IPV6_SCTP_M GENMASK(51, 48) #define HNS3_RSS_TUPLE_IPV6_NONF_M GENMASK(57, 56) #define HNS3_RSS_TUPLE_IPV6_FLAG_M GENMASK(59, 58) -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-06-25 00:22:14.411982104 +0100 +++ 0014-net-hns3-disable-SCTP-verification-tag-for-RSS-hash-.patch 2024-06-25 00:22:13.089183692 +0100 @@ -1 +1 @@ -From bb1f4717636f5b7d27f4f2fe30469b69d8910bd0 Mon Sep 17 00:00:00 2001 +From ac72e810412dc6e55ff861377573e9f3e090ba04 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit bb1f4717636f5b7d27f4f2fe30469b69d8910bd0 ] + @@ -21,2 +22,0 @@ -Cc: stable@dpdk.org - @@ -30 +30 @@ -index 15feb26043..3eae4caf52 100644 +index eeeca71a5c..ac88ca04ce 100644