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 E7A2F428F8 for ; Sun, 9 Apr 2023 17:36:12 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD52D427EE; Sun, 9 Apr 2023 17:36:12 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2075.outbound.protection.outlook.com [40.107.237.75]) by mails.dpdk.org (Postfix) with ESMTP id 1F8D14067E for ; Sun, 9 Apr 2023 17:36:11 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kpz9NWUy2FaOsma+b8fqZgEMksZwHKbflWRmqUyQnwMGBb6Zm4aZJPmjsBv/LwIYqoMZ5p4Juh63K0j8jyAOJrelaqjSqYUpXAqIJGJ6NPxk5i3/TbwcRXlGZTxz9cIzBizTxVGstz0i4wmWwm4JFV3DSyuZ3/jtgucufIGYJTVGoM9xZPIj3gs8o0MUQNmGIuzUogyn4eDOWbXzk4M84j6c1ZuIDCEBEpyE3cZrBlkHJvtreO2e4FwTRhcpLDxBHUDFXLkiQLF5zvYBrgkWShmmxZSqq9FM/uEXRpebxG4ldmrvqMZ9nQ4uUr2kfh6M/wOwIklAyrlf1AECflBrAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=08CWbqw1d5pmBCEnnjgHE55zVnmSxEd5Scc1uUr3BLc=; b=GdLRGV0lU24hCV/t5YltcOEk0BGc8WY/apZo4J745tMRc4ydIb4dxDW9ZsXBo440T+qdDEpSGGSh4yyxtfqnLJeh1aEyhKH78K98HB3OokEXG8mtq9VR2/labJ2Pfv2w/YkGV0orU1wzb9MBNn1kQ50EYeTAViy2772r9Xbpjs5UN3WVfUyUH9WX5dLTqjv3RpkqPwy1H1DRIDiGwwf2JXFqf0IQdAlH+wi+AeqLolC5T/go/Y01rMGM1iS7kVPXEzgGJlkFDJWN8DGG27/6Uy2xAT4NCuwah1GCEohP1XuYYwU5zYlW7yNGQw4X+wOGK2GFZP6VtDTWz6o9OUBi1Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=arm.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=08CWbqw1d5pmBCEnnjgHE55zVnmSxEd5Scc1uUr3BLc=; b=a1kEFV0lLPUCTTV+TVaWb39QDzDkZ8gQwpfFuUcyd9LxhSBMS25JPhWrdIC3SCFQjx7zI9m6IeEhqAvvVK3ODGAImi1qE5LRtPAYTeeIAHtpR+DLQlWIYAVAF/r49jtwoM3ZKJP9Ms+5QBrU/Dv7l1sYcbYLgBmttA1T2/Tjoy73UsfEoPnqfMGcmGrxQMkNDkrVrECVBMYgIKmPBm1qh5XwXBNtmDhHIApS4a18uIbkQJguo0C1R1zATmWpkCoaY5JITC51EGno8jxqaGixtCDrmFaKNf3+Gxzaxi6abSmFEDy5cNZxbFSahlyz3qpG3341zrtzDhSJbNTnn9wnTg== Received: from MW4P223CA0027.NAMP223.PROD.OUTLOOK.COM (2603:10b6:303:80::32) by CY5PR12MB6382.namprd12.prod.outlook.com (2603:10b6:930:3e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.35; Sun, 9 Apr 2023 15:36:07 +0000 Received: from CO1NAM11FT038.eop-nam11.prod.protection.outlook.com (2603:10b6:303:80:cafe::55) by MW4P223CA0027.outlook.office365.com (2603:10b6:303:80::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38 via Frontend Transport; Sun, 9 Apr 2023 15:36:07 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by CO1NAM11FT038.mail.protection.outlook.com (10.13.174.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.25 via Frontend Transport; Sun, 9 Apr 2023 15:36:06 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Sun, 9 Apr 2023 08:36:01 -0700 Received: from nvidia.com (10.126.230.37) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Sun, 9 Apr 2023 08:35:59 -0700 From: Xueming Li To: Kamalakshitha Aligeri CC: Honnappa Nagarahalli , Ruifeng Wang , Konstantin Ananyev , dpdk stable Subject: patch 'examples/l3fwd: remove hash entry number' has been queued to stable release 22.11.2 Date: Sun, 9 Apr 2023 23:25:08 +0800 Message-ID: <20230409152529.5308-121-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230409152529.5308-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230409152529.5308-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT038:EE_|CY5PR12MB6382:EE_ X-MS-Office365-Filtering-Correlation-Id: 30a890e8-3f49-4233-057c-08db391022e1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: g9WgVvWc/jMT8UpJCMHQRPYXdFFoAE1ggGkhr2KLrWk/xhcpVc+z6deiIF6lx9SABcxinFRzDgQMh+9G9PgcPKBAenXv+2ycsh2MXz7rJQEOtP9z6VMykQFQn3FchBK/ZYVejAPFdzxK31V9EmyUPZbjLQKd2AFzKf8EM5G8z5Sqm58bo93fKCqvTUIDLotYAMRdWjOPmtOWYcjLBTlWgcsFdor5rMlzlg+B0BTy/m05Hve35ANOaJ7yCgC8bF3rToCuRIjy/mZUq1bodxdLXO56tjWVsUgQw6+Rl8+ip9a88lXrTLse5P7iBZT0if0kJSYorXJdapA0h95ErymUaP+29oQQh/XiXiRcllh9UdozOa+Rl8k3RMKTBWGiW6QLGQY38cItiYcE2ARsVIB9p/ye3u2fmKUP43FhHFTYi/CuU0btCj9CNny2pEsHmVUHDRrMRDyh85NT8YXGN9B3chqjUUBhPXUihb2nlSOzfPyrBpK+aEnoz9TfvTl3wJcVPwUn8iGPu6kEGrkw0qJOs0TE0HvpFCbEilWw5PSDaDi7v4YLOdIdZxGGOD5nQgzmqgCvnqHHix0iq75ScwoMp2IWQtXzXymnGbBCyCfqjUp5/n2CpRCxe3buiN+zm3uNOvHsVW4dckboU1fShhWk51Vb1cOiLvIbGKhXCPP0PPrRxy+ADePhMkgU6YSvLOZFXCXvl2kIKaHZU3dyRpiagl8fGh/u4JSC48g2hnjGybrJZ6ifzrvs/zEuoQY97eOH6eIrFAMMo61+b5rk286z791UF7Ge1R5NOOJYztX2czkeeo10AVGjlzV/PDAmf5oz5KGtQAR+W2U8ZIiNgRfSiA== X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230028)(4636009)(396003)(39860400002)(136003)(376002)(346002)(451199021)(46966006)(40470700004)(36840700001)(7696005)(966005)(26005)(356005)(7636003)(53546011)(2906002)(70586007)(36860700001)(316002)(41300700001)(40460700003)(70206006)(8676002)(186003)(4326008)(6916009)(86362001)(8936002)(5660300002)(82740400003)(16526019)(6286002)(82310400005)(336012)(426003)(6666004)(40480700001)(2616005)(55016003)(54906003)(36756003)(478600001)(1076003)(47076005)(83380400001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2023 15:36:06.9552 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 30a890e8-3f49-4233-057c-08db391022e1 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT038.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6382 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.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 04/11/23. 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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging/commit/003a860c86a4cb826f380ba7910e38865d786763 Thanks. Xueming Li --- >From 003a860c86a4cb826f380ba7910e38865d786763 Mon Sep 17 00:00:00 2001 From: Kamalakshitha Aligeri Date: Mon, 6 Mar 2023 16:25:06 +0000 Subject: [PATCH] examples/l3fwd: remove hash entry number Cc: Xueming Li [ upstream commit f5251734c5e16db9c9881883f7933bd51a9be861 ] hash_entry_number in l3fwd is not being used by both lpm and em lookup method. Removed the global variable hash_entry_number and the function that parses the hash-entry-number flag. Fixes: e7e6dd643092 ("examples/l3fwd: support config file for EM") Signed-off-by: Kamalakshitha Aligeri Reviewed-by: Honnappa Nagarahalli Reviewed-by: Ruifeng Wang Acked-by: Konstantin Ananyev --- examples/l3fwd/l3fwd.h | 1 - examples/l3fwd/main.c | 38 +------------------------------------- 2 files changed, 1 insertion(+), 38 deletions(-) diff --git a/examples/l3fwd/l3fwd.h b/examples/l3fwd/l3fwd.h index ca1426a687..b55855c932 100644 --- a/examples/l3fwd/l3fwd.h +++ b/examples/l3fwd/l3fwd.h @@ -55,7 +55,6 @@ /* 32-bit has less address-space for hugepage memory, limit to 1M entries */ #define L3FWD_HASH_ENTRIES (1024*1024*1) #endif -#define HASH_ENTRY_NUMBER_DEFAULT 16 struct parm_cfg { const char *rule_ipv4_name; diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c index 5198ff30dd..a4f061537e 100644 --- a/examples/l3fwd/main.c +++ b/examples/l3fwd/main.c @@ -89,7 +89,6 @@ uint32_t enabled_port_mask; /* Used only in exact match mode. */ int ipv6; /**< ipv6 is false by default. */ -uint32_t hash_entry_number = HASH_ENTRY_NUMBER_DEFAULT; struct lcore_conf lcore_conf[RTE_MAX_LCORE]; @@ -395,7 +394,6 @@ print_usage(const char *prgname) " [--eth-dest=X,MM:MM:MM:MM:MM:MM]" " [--max-pkt-len PKTLEN]" " [--no-numa]" - " [--hash-entry-num]" " [--ipv6]" " [--parse-ptype]" " [--per-port-pool]" @@ -419,7 +417,6 @@ print_usage(const char *prgname) " --eth-dest=X,MM:MM:MM:MM:MM:MM: Ethernet destination for port X\n" " --max-pkt-len PKTLEN: maximum packet length in decimal (64-9600)\n" " --no-numa: Disable numa awareness\n" - " --hash-entry-num: Specify the hash entry number in hexadecimal to be setup\n" " --ipv6: Set if running ipv6 packets\n" " --parse-ptype: Set to use software to analyze packet type\n" " --per-port-pool: Use separate buffer pool per port\n" @@ -479,22 +476,6 @@ parse_portmask(const char *portmask) return pm; } -static int -parse_hash_entry_number(const char *hash_entry_num) -{ - char *end = NULL; - unsigned long hash_en; - /* parse hexadecimal string */ - hash_en = strtoul(hash_entry_num, &end, 16); - if ((hash_entry_num[0] == '\0') || (end == NULL) || (*end != '\0')) - return -1; - - if (hash_en == 0) - return -1; - - return hash_en; -} - static int parse_config(const char *q_arg) { @@ -852,14 +833,7 @@ parse_args(int argc, char **argv) break; case CMD_LINE_OPT_HASH_ENTRY_NUM_NUM: - ret = parse_hash_entry_number(optarg); - if ((ret > 0) && (ret <= L3FWD_HASH_ENTRIES)) { - hash_entry_number = ret; - } else { - fprintf(stderr, "invalid hash entry number\n"); - print_usage(prgname); - return -1; - } + fprintf(stderr, "Hash entry number will be ignored\n"); break; case CMD_LINE_OPT_PARSE_PTYPE_NUM: @@ -963,16 +937,6 @@ parse_args(int argc, char **argv) lookup_mode = L3FWD_LOOKUP_LPM; } - /* - * ipv6 and hash flags are valid only for - * exact match, reset them to default for - * longest-prefix match. - */ - if (lookup_mode == L3FWD_LOOKUP_LPM) { - ipv6 = 0; - hash_entry_number = HASH_ENTRY_NUMBER_DEFAULT; - } - /* For ACL, update port config rss hash filter */ if (lookup_mode == L3FWD_LOOKUP_ACL) { port_conf.rx_adv_conf.rss_conf.rss_hf |= -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-04-09 21:45:41.845674700 +0800 +++ 0120-examples-l3fwd-remove-hash-entry-number.patch 2023-04-09 21:45:38.779042200 +0800 @@ -1 +1 @@ -From f5251734c5e16db9c9881883f7933bd51a9be861 Mon Sep 17 00:00:00 2001 +From 003a860c86a4cb826f380ba7910e38865d786763 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit f5251734c5e16db9c9881883f7933bd51a9be861 ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org @@ -19,2 +21,2 @@ - examples/l3fwd/main.c | 37 +------------------------------------ - 2 files changed, 1 insertion(+), 37 deletions(-) + examples/l3fwd/main.c | 38 +------------------------------------- + 2 files changed, 1 insertion(+), 38 deletions(-) @@ -35 +37 @@ -index 71a3018036..a4f061537e 100644 +index 5198ff30dd..a4f061537e 100644 @@ -101 +103 @@ -@@ -963,15 +937,6 @@ parse_args(int argc, char **argv) +@@ -963,16 +937,6 @@ parse_args(int argc, char **argv) @@ -106,2 +108,2 @@ -- * hash flag is valid only for -- * exact match, reset it to default for +- * ipv6 and hash flags are valid only for +- * exact match, reset them to default for @@ -110,0 +113 @@ +- ipv6 = 0;