From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B9652A00C4; Thu, 4 Jun 2020 15:35:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DD5AD1D5D7; Thu, 4 Jun 2020 15:35:24 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2058.outbound.protection.outlook.com [40.107.20.58]) by dpdk.org (Postfix) with ESMTP id EA5971D5D5 for ; Thu, 4 Jun 2020 15:35:22 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nnPd3NP/GhxdjsGAaFTSuTa8qMw2SW2oAmPZxrPgnqzvE//VM/yqTgXMBW/GIxX4Tj+149HChykXRgYLhWC0sKFH0lJJ3X65ipI1EeFG9CLt9KDhTa9Y+Nw9YxhR5oSjy76RXDAGLucyET0qoPyFccKbefi0q25Jyie/tOjkp+aA6wJxw4aS76KPsQSpwuEO1ZS56xNCBpeQoyE4KKedIVnpZhMF25Lw+IZJQAWIurweMeN5AsC50CB6HAkZ4CkIK0hYJIvJdwvvdofc9/gULGpy1O7/3WrclLWjQABLTm1mNJD08tmKPapnvU0Jw+uHuKoRxW6QellQiG2GepMwEA== 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-SenderADCheck; bh=ciG+9DTPrjpnNyu+ogBV+pz6bT0906qj0BSF8CuOTUg=; b=Rt/UwK/MzxtHzdpDGGG3M2Wt4zwrKXKbn3/RffBx4llpZUsjsl10X2neiOr3IrPC/HG/cE+fndOzRUBYdsUZmflzdgMEOaZ0a68ZVUgqmgUhadbo8xRRLv5ucyifyillvDahHM7mZkMGoO/k2TnZUNqBNLZC79zZTUDMZ2jTxe/lJFz4OuNItFVbQX2Ps5HWldQedqmDjpjfirkzuOy1oYR39glnXmRZXcveDAwDyS9+V6WmIPnJ2+kJASrExi8TpIiKK4kZNCqWq9xpxoOn8/caqCqWATODE/AaZwf4laa+JNhHbYJARWnmHnqE0MLjn4oNkwD/w1IYl9EvgGDm+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ciG+9DTPrjpnNyu+ogBV+pz6bT0906qj0BSF8CuOTUg=; b=mre+f1/duIdFMmW4DxoAgGtwj+lJO4c8K7rUJVcFyBswoh/PcZM9XHrh6AOG2osrsm4mEBDs7uF45Yr11UsYQt/U8YxDvOQJf9H7w77lAE0vXkyoeYaPqu3bD495tbBub/U2AD6YoooZqku6QcXhxN0a3IF7xc8wGecIprSO0+s= Authentication-Results: solarflare.com; dkim=none (message not signed) header.d=none;solarflare.com; dmarc=none action=none header.from=mellanox.com; Received: from AM0PR05MB6610.eurprd05.prod.outlook.com (2603:10a6:208:12f::18) by AM0PR05MB4577.eurprd05.prod.outlook.com (2603:10a6:208:b7::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3045.25; Thu, 4 Jun 2020 13:35:21 +0000 Received: from AM0PR05MB6610.eurprd05.prod.outlook.com ([fe80::900:c0ac:78bd:18fc]) by AM0PR05MB6610.eurprd05.prod.outlook.com ([fe80::900:c0ac:78bd:18fc%6]) with mapi id 15.20.3045.024; Thu, 4 Jun 2020 13:35:21 +0000 From: Wisam Jaddo To: arybchenko@solarflare.com, jackmin@mellanox.com, thomas@monjalon.net, jerinjacobk@gmail.com, ajit.khaparde@broadcom.com Cc: dev@dpdk.org Date: Thu, 4 Jun 2020 13:34:57 +0000 Message-Id: <20200604133502.28491-1-wisamm@mellanox.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200511110811.11474-2-wisamm@mellanox.com> References: <20200511110811.11474-2-wisamm@mellanox.com> Content-Type: text/plain X-ClientProxiedBy: AM0PR01CA0117.eurprd01.prod.exchangelabs.com (2603:10a6:208:168::22) To AM0PR05MB6610.eurprd05.prod.outlook.com (2603:10a6:208:12f::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mellanox.com (37.142.13.130) by AM0PR01CA0117.eurprd01.prod.exchangelabs.com (2603:10a6:208:168::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18 via Frontend Transport; Thu, 4 Jun 2020 13:35:20 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [37.142.13.130] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5c7cede6-99f8-45a2-f65a-08d8088c20c7 X-MS-TrafficTypeDiagnostic: AM0PR05MB4577: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2512; X-Forefront-PRVS: 04244E0DC5 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 34+koIaOLvrDkx5eC+EDg1kk65GgYt22bQ/AX8fL06F81o9pokbchE9KBq34DicpPu7bgDWD50/xAukqSp790neQly5f8R3YpkpTiRsLnrEif2tLpyWD+IZYv4+oRHtiDsc3Ea5EX4wQiMNTfSLgSCwazn1BPSVPaqp12vXswLVn1tcz/J4/SE8r1jSL/frbMrx/kNK7q4OU3Xlxo3eDhdvykW8eNMCa7wY4gTqgq6YVnK9HJKe5bEGuyz59qAfyKXnImWhBdwyoWTqQt30p43tEnIM3UjbLwliGh5W0pkmcOHNB5t6WBeGm9aU7QDXoaE5BEzDwiowaJpxda+bP4w== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB6610.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(136003)(396003)(376002)(346002)(366004)(39860400002)(1076003)(316002)(4326008)(2906002)(26005)(956004)(52116002)(2616005)(66556008)(55016002)(66946007)(86362001)(36756003)(8936002)(7696005)(83380400001)(6666004)(8886007)(186003)(5660300002)(8676002)(478600001)(16526019)(66476007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: KADIg9U7jzQvcyq7SnVgqWpOo9yUQDDNV9ShACtyZMxlF1QzvRje2Iwj7rgqzy0FxE3J/N7xNZr5BFiO0087BWecfslgIG0GjHATtcXY0I3m4QAz6H/2OOzN0075B1DVJE1Ev8G54i5TDQ6fQH1I/dosm8AewBXLd2ItQ48o7R5KRmoyjRC5u0SpnlOYUCHvXGzrGCACaxzU5FOXWdV9HJaW5v6EHT84HROgI7MowYiPvgwLMmMHR5ip0ZSlNoPK8PrG1RiiFYUxMUG8LWIrfiC0pl5NwDGaIjJf/AU7Dd9vybb3i+uxcYA+u4Q8Qp/vyatlhvJQ9sC4aldQu7tUrDGR29sOeTGxgWq2tjU/tutmhFXA8R8Uz7Uw/qyaV/VR1R3JxrhkpV5NBGzGxcd428KDEY9Tj4TTLt233Kuqxwg+PWQB/KW5Ul4oAJY+OHBx1rqQLKQXFV2JLdB6w4OERT4dHFhYz1Jq5Pv2F4V1rGs= X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c7cede6-99f8-45a2-f65a-08d8088c20c7 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2020 13:35:21.3473 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MGquG7wYCOH3az1wBWjHU2vFWSoIvbNqDsHV2xxCNwcBBbw5pOBnkxtgtO4u/140IiIWcZjEg2uTspENTPZs5g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4577 Subject: [dpdk-dev] [PATCH v7 0/5] Introduce flow perf application X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Add new application to test rte flow performance from: - Insertion rate. - Deletion rate. - Memory consumption. - PPS forward measurement. Unchanged comments: - Prevent actions such as Queue from adding twice: * Current design don't support add actions twice. * This is performace app that not should force coditions like PMD. * If app allows adding dup actions and user added Queue the PMD should report the error. * No memory leak found. --- v7: * Move add_items/add_actions in items/actions instead of flow. * Have array of structures with loops instead of branching. * Add limitation part in doc. * Align items/actions generator methods with same signature. * Convert item/action & attrs selector to be 64bit instead of 32bit. v6: * Move compare vs 0 logic instead of logical not. * Logged errors into stderr. * Remove offload parse on queue level. * Fix documentation and limitations. * Added macro for rss hash value, used in port and rss action configuration. * Remove all design global variable, only control left. * Remove items/action defines for bit map and use rte_types instead. * Addressing comments regard args_parse() v5: * Add app to 20.05 release notes. * Addressing comments. * Fix compilation issue for gcc >= 10. * Fix documentation. * Remove unneeded CFLAGS. * Remove unused includes. * Addressing format comments. * Move hairpin to be option use only. * Use RSS hash IP + TCP in ports and rss action. * Introduce and use new macro for bit flags. v4: * Fix compilation error due to variable set but not used. v3: * Fix passing hairpin queues to hairpin rss action. v2: * reset cpu_time_used every port. * generate different RSS action every flow with different RETA. * Fix in commit log message Wisam Jaddo (5): app/flow-perf: add flow performance skeleton app/flow-perf: add insertion rate calculation app/flow-perf: add deletion rate calculation app/flow-perf: add memory dump to app app/flow-perf: add packet forwarding support MAINTAINERS | 5 + app/Makefile | 1 + app/meson.build | 1 + app/test-flow-perf/Makefile | 26 + app/test-flow-perf/actions_gen.c | 276 ++++++ app/test-flow-perf/actions_gen.h | 18 + app/test-flow-perf/config.h | 31 + app/test-flow-perf/flow_gen.c | 61 ++ app/test-flow-perf/flow_gen.h | 37 + app/test-flow-perf/items_gen.c | 397 +++++++++ app/test-flow-perf/items_gen.h | 18 + app/test-flow-perf/main.c | 1109 ++++++++++++++++++++++++ app/test-flow-perf/meson.build | 11 + config/common_base | 5 + doc/guides/rel_notes/release_20_08.rst | 10 + doc/guides/tools/flow-perf.rst | 248 ++++++ doc/guides/tools/index.rst | 1 + 17 files changed, 2255 insertions(+) create mode 100644 app/test-flow-perf/Makefile create mode 100644 app/test-flow-perf/actions_gen.c create mode 100644 app/test-flow-perf/actions_gen.h create mode 100644 app/test-flow-perf/config.h create mode 100644 app/test-flow-perf/flow_gen.c create mode 100644 app/test-flow-perf/flow_gen.h create mode 100644 app/test-flow-perf/items_gen.c create mode 100644 app/test-flow-perf/items_gen.h create mode 100644 app/test-flow-perf/main.c create mode 100644 app/test-flow-perf/meson.build create mode 100644 doc/guides/tools/flow-perf.rst -- 2.17.1