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 0B81345C9B for ; Tue, 12 Nov 2024 23:10:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 072144064C; Tue, 12 Nov 2024 23:10:04 +0100 (CET) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mails.dpdk.org (Postfix) with ESMTP id D415340A89 for ; Tue, 12 Nov 2024 23:10:01 +0100 (CET) Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-43169902057so50649075e9.0 for ; Tue, 12 Nov 2024 14:10:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731449401; x=1732054201; 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=9RC6mRW8d0y3rX2jk2n4V/IVjCfmZGg2rzIz12UKGkM=; b=XTiZkCQ689Ibk3xYFVdAqHLAzmCp8A/30X6drglr+EcYVg+ghLprXTwWJ6/2n7uenk DNHcBtD0stSS7Guk7mkU0RI27TDiUNnXhHBZiw+lJ2IRGQy+LJSdOIxz5Ep2GJ+CEMJo IMTJoZn6h+3/rcGZezYPzJLiFgf7/862EFWyypizoDspaegxrZh0ssHRzopUNqq/QlPj D0ldAlWik8BvVTkdxqubNisjTbkZJ/VrOmZ0lBPHr6pKXQZnZN2SaIRwOaRS80/KiXmv KhRDYp13uT5tvpUMC7oNWuCNLDYXazabM7Y1e1j6VFXqNbxicHIyxCzbUt5WQvBArSgm Sm4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731449401; x=1732054201; 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=9RC6mRW8d0y3rX2jk2n4V/IVjCfmZGg2rzIz12UKGkM=; b=jqe2KFbbRJ0LiG3LDo8KulQtM+JxSEfTLJa7Qg1qcnCzUaGCzWUrG8PLJxyXWq4wXr yUwK2Z81WG+fScCXrrts87EL984x7WmNrWXjP4XeN+P8RFk0wkve7BhjFulEo8DV3J6n TSK7a/l6/D0g8wMYrQwHD3VbRBCEuN6/EdM9o2CtjlROdx2r3FfW2Zf6N6Ek7m0jwcz/ Iqwjg2TNsnYA5GyjpyFiuEAEnWTTYzRpLRnPskT2fH70kCZDMB7HLvVe9O91UDq9mvxC yp8Pf+00LOQMSgmTikDEYEixFpphGbzM9zIKVMdRdaTugyNDT1HM4Pct9zwAeI0TmILO SdMg== X-Forwarded-Encrypted: i=1; AJvYcCVc+VAwuUx2Hbc+02nNtJ0h7eJJVNCVNjkogG10Itkau0WKfSWutVEYS/Np0x4hN+acFvEFDSI=@dpdk.org X-Gm-Message-State: AOJu0YwsXqFKwgbJ+N3YlHf4ofCFOEZ1W5nyiucxRrupK1oVrm4UjNDf HBg+UEiS3D+YEu4QzFSO9WTVMPOjh4jYbjlJnNXVY6FEhhPXPilK X-Google-Smtp-Source: AGHT+IFvRBPgErss06rvuEU6UF9baeIr8QVAo88g91sbuAIOIA1On/vX5xb9zVrFBuzuSbuq1RNM1g== X-Received: by 2002:a05:600c:1c12:b0:431:60ec:7a91 with SMTP id 5b1f17b1804b1-432cce68265mr36152255e9.2.1731449401387; Tue, 12 Nov 2024 14:10:01 -0800 (PST) Received: from localhost ([2a01:4b00:d036:ae00:e89d:e9a1:da72:2f9d]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432d54f76b9sm1013465e9.14.2024.11.12.14.10.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2024 14:10:00 -0800 (PST) From: luca.boccassi@gmail.com To: Dengdui Huang Cc: Jie Hai , Stephen Hemminger , dpdk stable Subject: patch 'net/hns3: fix fully use hardware flow director table' has been queued to stable release 22.11.7 Date: Tue, 12 Nov 2024 22:07:45 +0000 Message-ID: <20241112220754.666489-35-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241112220754.666489-1-luca.boccassi@gmail.com> References: <20241023211704.1216956-79-luca.boccassi@gmail.com> <20241112220754.666489-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.7 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/14/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/83e31233d25065bdc9192d6d627667a371d99ef9 Thanks. Luca Boccassi --- >From 83e31233d25065bdc9192d6d627667a371d99ef9 Mon Sep 17 00:00:00 2001 From: Dengdui Huang Date: Thu, 7 Nov 2024 19:56:45 +0800 Subject: [PATCH] net/hns3: fix fully use hardware flow director table [ upstream commit b8e60c33168a2999604c17322dd0198a6746428f ] The hns3 driver checks whether the flow rule is repeatedly inserted based on rte_hash. Currently, the rte_hash extendable bucket table feature is not enabled. When there are many hash conflicts, the hash table space cannot be fully used. So the flow rule maybe cannot be inserted even if the hardware flow director table there are still free. This patch fix it by enabling the rte_hash extensible bucket table feature. Fixes: fcba820d9b9e ("net/hns3: support flow director") Signed-off-by: Dengdui Huang Signed-off-by: Jie Hai Acked-by: Stephen Hemminger --- drivers/net/hns3/hns3_fdir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/hns3/hns3_fdir.c b/drivers/net/hns3/hns3_fdir.c index a3e79619ec..73d4a25d63 100644 --- a/drivers/net/hns3/hns3_fdir.c +++ b/drivers/net/hns3/hns3_fdir.c @@ -832,6 +832,7 @@ int hns3_fdir_filter_init(struct hns3_adapter *hns) .key_len = sizeof(struct hns3_fdir_key_conf), .hash_func = rte_hash_crc, .hash_func_init_val = 0, + .extra_flag = RTE_HASH_EXTRA_FLAGS_EXT_TABLE, }; int ret; -- 2.45.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-11-12 22:06:59.789647510 +0000 +++ 0035-net-hns3-fix-fully-use-hardware-flow-director-table.patch 2024-11-12 22:06:58.687307516 +0000 @@ -1 +1 @@ -From b8e60c33168a2999604c17322dd0198a6746428f Mon Sep 17 00:00:00 2001 +From 83e31233d25065bdc9192d6d627667a371d99ef9 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit b8e60c33168a2999604c17322dd0198a6746428f ] + @@ -15 +16,0 @@ -Cc: stable@dpdk.org @@ -25 +26 @@ -index d18d083535..aacad40e61 100644 +index a3e79619ec..73d4a25d63 100644 @@ -28 +29 @@ -@@ -900,6 +900,7 @@ int hns3_fdir_filter_init(struct hns3_adapter *hns) +@@ -832,6 +832,7 @@ int hns3_fdir_filter_init(struct hns3_adapter *hns)