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 50FF3A04AD; Tue, 8 Feb 2022 08:42:00 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E5D2F4014E; Tue, 8 Feb 2022 08:41:59 +0100 (CET) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2072.outbound.protection.outlook.com [40.107.20.72]) by mails.dpdk.org (Postfix) with ESMTP id 986EC40141 for ; Tue, 8 Feb 2022 08:41:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9mSeDoTzDJjlwWaQjQFFUWYx0Xr2lPY6qIqFOA/P3fY=; b=V3YEm1oiy6sEO9aRx6J5vdfDAvA/TrSQDBd3lRIaEVasYxOFKBs3cilLryF8iNbEwxloEM5/VLV2u1pzwOiCAGyPnV7RALblf1xPMHqLod7Q+AdFGEeOTE3J/anik/L+enCS7SsLhxKqNS4YZfBI9KeDr2u2G4l+qrptk+ICE5Y= Received: from AS9PR06CA0297.eurprd06.prod.outlook.com (2603:10a6:20b:45a::35) by AM5PR0801MB1666.eurprd08.prod.outlook.com (2603:10a6:203:3a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Tue, 8 Feb 2022 07:41:56 +0000 Received: from AM5EUR03FT048.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:45a:cafe::48) by AS9PR06CA0297.outlook.office365.com (2603:10a6:20b:45a::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12 via Frontend Transport; Tue, 8 Feb 2022 07:41:56 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT048.mail.protection.outlook.com (10.152.17.177) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12 via Frontend Transport; Tue, 8 Feb 2022 07:41:56 +0000 Received: ("Tessian outbound 2877e54fe176:v113"); Tue, 08 Feb 2022 07:41:56 +0000 X-CR-MTA-TID: 64aa7808 Received: from f93bf52d98ac.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id C4BDC965-A288-4288-B80A-B813A7AE801B.1; Tue, 08 Feb 2022 07:41:45 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id f93bf52d98ac.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 08 Feb 2022 07:41:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NRDpnK91RavSr+Ww+9kRHWXP7e+r0ChMqv847Fw3xEXSvvy5xmdN0bE+WJvExSU6oPTSWpvBBVOTbdbspExMBnK+YvFinhj4FPbY2/OkdJ1gQ9y1NHP6i4C9BO8bQMFXW5ZZBgj3R4X2FndvwDhMnrBAdvSBUgTVQUc+IVA7cWPVhItdruHQlenaqSZZqzUG/vdEKzUIabxAbLLo9coPh4wj21DBmwDmCM3ZRA4a3mUOEPBw6Zkr/6R5bNI3vPAoiBEnb5rOQaykFxnEBcrEQHSiyZKP2OHWIjyoNABKQ1AWEvgEiynjD5klrLalXnQdNasDoL7dO4jAFBYUa+fqCw== 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=9mSeDoTzDJjlwWaQjQFFUWYx0Xr2lPY6qIqFOA/P3fY=; b=BNGVigZ3KxOVGt3OWYXxdzDxoXnduVKgoozJW/vxKtseVSDm0JGUzmDvbvj96goPSITsQzc5gF/AINCtb4msFtHd8NXyx3X4SlweQgdHZJ9r9PwZuBWJCm0axgG3KhsAllS/SWd6wX9jcO+u1r4N4mY+jHhqhb+lzTNq0Eta6lDUsoIiPVFjFkYEwDTe2msQdkaMsVuKf3/S5r7giyyzdnb66FPZGO1k+d4d1mJZay4P/6DBw8vydjfjxqB7qayjzWKe7UKJKusKKLctWS9OZaRIbu3Ny4PJrWgIy+gmDEXpi8SxSI7LM09Iyng3l6MENOIkoHQnpCpOVLuQxMXSEA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9mSeDoTzDJjlwWaQjQFFUWYx0Xr2lPY6qIqFOA/P3fY=; b=V3YEm1oiy6sEO9aRx6J5vdfDAvA/TrSQDBd3lRIaEVasYxOFKBs3cilLryF8iNbEwxloEM5/VLV2u1pzwOiCAGyPnV7RALblf1xPMHqLod7Q+AdFGEeOTE3J/anik/L+enCS7SsLhxKqNS4YZfBI9KeDr2u2G4l+qrptk+ICE5Y= Received: from AS8PR08MB7080.eurprd08.prod.outlook.com (2603:10a6:20b:401::19) by VI1PR08MB4015.eurprd08.prod.outlook.com (2603:10a6:803:e1::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Tue, 8 Feb 2022 07:41:42 +0000 Received: from AS8PR08MB7080.eurprd08.prod.outlook.com ([fe80::f926:e9c:f705:5d4]) by AS8PR08MB7080.eurprd08.prod.outlook.com ([fe80::f926:e9c:f705:5d4%3]) with mapi id 15.20.4951.019; Tue, 8 Feb 2022 07:41:42 +0000 From: Ruifeng Wang To: Honnappa Nagarahalli , "dev@dpdk.org" , Honnappa Nagarahalli , "lijuan.tu@intel.com" , "juraj.linkes@pantheon.tech" , "ohilyard@iol.unh.edu" , "david.marchand@redhat.com" , "thomas@monjalon.net" , "jerinj@marvell.com" CC: Kathleen Capella , nd , nd Subject: RE: [PATCH 2/2] examples/l3fwd: make RX and TX queue size configurable Thread-Topic: [PATCH 2/2] examples/l3fwd: make RX and TX queue size configurable Thread-Index: AQHYF/rFzWgE+h2whU+RPW/9p7/JD6yJTKvQ Date: Tue, 8 Feb 2022 07:41:42 +0000 Message-ID: References: <20220202060403.118301-1-honnappa.nagarahalli@arm.com> <20220202060403.118301-2-honnappa.nagarahalli@arm.com> In-Reply-To: <20220202060403.118301-2-honnappa.nagarahalli@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 84F61F3A8972AA4FA1440F20359A81D3.0 x-checkrecipientchecked: true Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-MS-Office365-Filtering-Correlation-Id: 6dff0518-0dac-4328-e871-08d9ead67b5b x-ms-traffictypediagnostic: VI1PR08MB4015:EE_|AM5EUR03FT048:EE_|AM5PR0801MB1666:EE_ x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:1148;OLM:1148; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: FWu70QoC83wOfb+unYR93JAQdwr3rNKJQi4ypxiZqGjBktij0JCWfoJkTi4iQWvNzNpIPON66/9qaI+CqTWcE3BLWehZQXYtlTZNnP3S17hjmSZwPKywyFKr3iKRrs+cSlt1CZylxsEM8zsO/fyRMcXHKAGqyobzFPB8FyFM9aGwilD/H1TwORangA+SNHP7s/WTLPPMhiuPSwkNvgCnOs+b/kjB0r+LyDDlj3MQpkad9brpNbS9hzJ0Skavlq8QAbDgmcvyvJO0lLtaOmTIyA7cCUSXsq3DqNm3NtIB7HgF2ivZwQrFYLQ83nYP8ULm4vQFkWpUXJ3tSJTwMxtQ89o5h7UC+JfHubTEmK9x/3A1A2qrKVqhPtGAAbfzN8EEDvIRwtVSdKKscMb60GLUuHSq0TYDqvUU6EaC/7hO/PfCLW38b+YMniws9GhyLhIriejJL3xTLpg8d4oVyokRZUhEnyh96h4H9YYizeN/jL25gqXS0lK6euqYV0Q2RRSNOJAQOKFvpkVll3IhKI2HOoF2okxRWEcAkH3zJCFZ4w5qN8BzaiLrSDWi1xW7rCDAdn5l1fjQEWOQoMblxmYRuoDFi3mFD/KpzGf8RmWlRMYq1XTGx6fbUzATFTgZnSQLlFM1dWOYoYKwsZJxBUgXV7pYMlNqc4fTCButLckwVebwDJZlCn6loG0feIVLHtU/CTkwY4q8z/jGzzs6WhFNdg== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB7080.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(5660300002)(52536014)(83380400001)(122000001)(26005)(186003)(2906002)(38100700002)(110136005)(86362001)(53546011)(7696005)(6506007)(316002)(508600001)(76116006)(55016003)(66946007)(54906003)(9686003)(8936002)(66556008)(66446008)(64756008)(66476007)(71200400001)(38070700005)(33656002)(8676002)(4326008); DIR:OUT; SFP:1101; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB4015 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT048.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: a9942a60-b028-441c-0cda-08d9ead6731e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1e4f0L8BnOZRfADLG5N3rcAFyQTmbhQgwQb8gIWKkERDa2uh8z7IpQwcYGPehJzA8AsE2teR+q9zL/TL0312Ms5OijIgo64DWkJLwLovfP7BWfHOuzddXLYLRpzNQv8mpy6i19UhD0uJKfEAo/G5RVOzJ8h7xK5y67WgPJaG0/ANHiqCLWvIpYrrwdEK2pWe13q5sOBuyQeDC2er+juLkzAUJ19l5cK5s+kkjNfXJxOTdUIi7cRis4kgV1fji18yUTdpajho9g8e6bFB7NkFKoXDDnrVnfm7SfFIRT6ydBr6b9B/sJ+30ajsmN4+M1PspSKd3jZHfKp3pqkMhPwBn6m7mvGB7iz2h5dIYVROYUjl92uOgEk8yNQ88Tz1uMi0//RIoVVZ/zTds4P6PrHJW5a+eBoD9Mmw7YWMAlYMPKYFC5nXabx+dWoGVxlMeuxx+gyL/1Op2JA2ojVwtlz5KVmqpuztwp1vcbtsCUx9Y/BYgxoJKxaPa+giklgl0lrCcSqIizO+e9M++s9Ctj42NvJTbT+PBfdCbXK5rio6KwdpPyvWW6xzM5aF1gTgN+D4Urr69a/yBBh2XcEclbpmjcUsMV7uuU2QeTNuiXNn5cV6psU0f10KoKCV5ExIl61VgDXmWj6ikRDkcgXcg4cw0UIz/1cVSc4Uj8VoYO5Me/c1AL7c6teZLJCZX+lA+Uim X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(36840700001)(46966006)(40460700003)(36860700001)(86362001)(336012)(9686003)(6506007)(7696005)(8676002)(55016003)(52536014)(70586007)(70206006)(4326008)(508600001)(47076005)(8936002)(83380400001)(53546011)(54906003)(110136005)(186003)(5660300002)(33656002)(316002)(356005)(81166007)(2906002)(26005)(82310400004); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2022 07:41:56.2532 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6dff0518-0dac-4328-e871-08d9ead67b5b X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT048.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1666 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 > -----Original Message----- > From: Honnappa Nagarahalli > Sent: Wednesday, February 2, 2022 2:04 PM > To: dev@dpdk.org; Honnappa Nagarahalli > ; lijuan.tu@intel.com; > juraj.linkes@pantheon.tech; ohilyard@iol.unh.edu; > david.marchand@redhat.com; thomas@monjalon.net; jerinj@marvell.com > Cc: Kathleen Capella ; nd > Subject: [PATCH 2/2] examples/l3fwd: make RX and TX queue size > configurable >=20 > Make RX and TX queue sizes configurable from the command line. > This helps DTS write better test cases. >=20 > Signed-off-by: Honnappa Nagarahalli > --- > examples/l3fwd/main.c | 56 > ++++++++++++++++++++++++++++++++++++++++++- > 1 file changed, 55 insertions(+), 1 deletion(-) >=20 >=20 > +static void > +parse_rx_queue_size(const char *rx_queue_size_arg) { > + char *end =3D NULL; > + uint32_t rx_queue_size; > + > + /* parse decimal string */ > + rx_queue_size =3D strtoul(rx_queue_size_arg, &end, 10); > + if ((rx_queue_size_arg[0] =3D=3D '\0') || (end =3D=3D NULL) || (*end != =3D '\0')) > + return; > + > + if (rx_queue_size =3D=3D 0) > + return; > + > + nb_rxd =3D rx_queue_size; > +} > + > +static void > +parse_tx_queue_size(const char *tx_queue_size_arg) { > + char *end =3D NULL; > + uint32_t tx_queue_size; > + > + /* parse decimal string */ > + tx_queue_size =3D strtoul(tx_queue_size_arg, &end, 10); > + if ((tx_queue_size_arg[0] =3D=3D '\0') || (end =3D=3D NULL) || (*end != =3D '\0')) > + return; > + > + if (tx_queue_size =3D=3D 0) > + return; > + > + nb_rxd =3D tx_queue_size; Typo. I assume here is 'nb_txd'. > +} > + > static void > parse_eventq_sched(const char *optarg) > { > @@ -581,6 +621,8 @@ static const char short_options[] =3D > ; >=20