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 BD65FA00C3; Tue, 13 Sep 2022 09:21:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B152340156; Tue, 13 Sep 2022 09:21:16 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2082.outbound.protection.outlook.com [40.107.94.82]) by mails.dpdk.org (Postfix) with ESMTP id E0CE940151 for ; Tue, 13 Sep 2022 09:21:14 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TdDSIlEGw2g8Wg4vywtWUqTrJ+7CVDp5XJuJgH+GU9vWC/1qmTqVllnPEEmlFK9WX9bYipugXQ4abX1Hbwv6vZC5j/k3d7DsKqkbIVtd834wiC6iSbaStE5DbkbzwOJjxAYdra52/VrIk/bEp3NBqH0FViLu7JnVuBKWDa7Bt4t0LtFfHw4xa2MgbOf5dFHcMHhdAQYzRgWi8tjANQpeNiO9SCld8FvTQ8FvHQ625moOLyWjvZePUR7l9mT6ZvofARipQdeiO4Auc8wc19Nlr7BmYDmqx1aAsvor2f1VZ61O0W9oVnRD5fnE3hC3Re6gNn+HGA+ny1BwjOYhQFJYiA== 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=F7O+gcHYMoIwZiXrEW7ra+c/hO2HhC5N5pOCVmRlzDs=; b=TyrcwfTONxd0VeAsGk2njIPWKkcfU5dQQkMQwu7TTFMjytPX7vOg8urT9k9zm9V0rZsn7jd4fkfQhmkbPxpVDsGhOK3j5LiJMtVSuX3yaN+VATDXcMHzgbdzDIsbwpu7K7SSiCVewptHY+xpQBDNBf8KMqCF8zmTfBQetX7D0MxnAg6/bWQBrdgmDgvBs+S0jC2gu/9Qx0N00ZM1B3iNrqo1s04psv9Ve1F08SNFmZ7uHix4lncHjU5FT9cjmZ9I3g8N9XUyXHWlCFyuQmf+Sa8aoS5G+eEV5T4/CRjq/ca2A0hUQoynKwbPOGOEhooThFLdcmNtTVv8fEUA5Rm13Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; 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=F7O+gcHYMoIwZiXrEW7ra+c/hO2HhC5N5pOCVmRlzDs=; b=hReWkVoCVvvlJpzEzaiBsvEKQeic1xKzl9t/zp75ndfnpl1hIHYSPTOi1xGNNc1rUjBn3Eacz87GcJAPRlZpSWUe6B2LGg8DU3QtrzJu+8OlLnF69cy/dMu7uURYVrNNqQ9BOxbtEnDi0j9JKFxSYDyPsm6PW/nqUxEIgW5mT0g8zZsI2bJxpYFf73kFVVK9qi1nwhDgluuIgrveey/quHn3vFd38IswIFI6TkVtgxVzzdAmjBCX86O7YWHVmOMrr8dQAsWj7ap08qM34ZXO0w4OUpSH288O/sXeyjewrbzCFDDUP64BWaNZ5H98UCvalT696slr+GmR6N6yAbo42A== Received: from CO6PR12MB5396.namprd12.prod.outlook.com (2603:10b6:303:139::8) by SA0PR12MB4496.namprd12.prod.outlook.com (2603:10b6:806:9b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.16; Tue, 13 Sep 2022 07:21:12 +0000 Received: from CO6PR12MB5396.namprd12.prod.outlook.com ([fe80::fd64:7bf5:2d01:5baf]) by CO6PR12MB5396.namprd12.prod.outlook.com ([fe80::fd64:7bf5:2d01:5baf%8]) with mapi id 15.20.5612.022; Tue, 13 Sep 2022 07:21:12 +0000 From: Suanming Mou To: Xiaoyun Li , Aman Singh , Yuying Zhang , "NBU-Contact-Thomas Monjalon (EXTERNAL)" , Ferruh Yigit , Andrew Rybchenko CC: "dev@dpdk.org" , Ori Kam Subject: RE: [RFC] ethdev: add async flow connection tracking configuration Thread-Topic: [RFC] ethdev: add async flow connection tracking configuration Thread-Index: AQHYq/OVzh8U9e7uZECGS4fP6/R0qK3dKpaw Date: Tue, 13 Sep 2022 07:21:12 +0000 Message-ID: References: <20220809132534.24441-1-suanmingm@nvidia.com> In-Reply-To: <20220809132534.24441-1-suanmingm@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR12MB5396:EE_|SA0PR12MB4496:EE_ x-ms-office365-filtering-correlation-id: bbcb193b-621d-4599-0c87-08da955889b4 x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Epa2wF0R7/M67f8Ooct2KMn1GtD9/iu92gTLJtMqBS+ULdJQIpcSUMcpc0tEpCv58ctg6I7y9k9bzf4SG2hGr2twjX6yDelZhdQhscWWuFWD1y1Ijn4hxjRtApjUzQ0gmiQ0CgugW97Yni4ngPyipRoSFcQZDAPg7071ibrhzJ0fVG6ssfbDnUs3zCHBvky2j0y4ljyoBGRtS6k9uwn4tMlDEqDnsZImbjoAox0RjXocVhmXeUmyILxnUtl9ybd73CE7boKFUAVCvX1ZV251qQtCt3wO/IMaGfiNHHbptHTWlbKiNsDjMEtQ5X7lT8yvflxDPd5JD3D5vdg+5+Ssz9WdmawJe5cC7Fi9Awc6fzC8zJDsqo/1t3egwyfrtBuYLPLDDSoK5anFAtCqGoB0uDniqPWmW3v3fE5cTUnA1DlLAyW8ZjTcdiFvXJzXQqNGoJpuvCLTnrDPsuGdqmpmefhvvJfGonW1BanlwS/+QlsbG5HMPpRiGnn3TGFLaR94ylCsQ3rRUti5hm9X1+9ODCxLTvwZSLk8Ft/w37e6yIptBwaJOVILGBLuvewrdIay6q7m3WnD7KSzZ/0pu6p6G34TvgiVDDfpKBnKKz9C6poujv21DJZDI4IDXEDM6k3GXbqYlUw80gcUXisylfCa/iws5almhdmmcQc+o/+Be3rcs5LVOb5ccgui7NffPMJd/MKjnyhLoI6BWaH/TBd5+Wgobyrglsfz96qMy+a8Bbbnz+H96RNH2xSzXoYJ9eUwXS1DF4IQIGMg83bQbPLMyA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR12MB5396.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(346002)(136003)(396003)(39860400002)(366004)(376002)(451199015)(478600001)(66946007)(107886003)(41300700001)(71200400001)(4326008)(52536014)(9686003)(26005)(53546011)(33656002)(55016003)(2906002)(86362001)(76116006)(186003)(38070700005)(66476007)(6506007)(8676002)(316002)(66446008)(54906003)(64756008)(66556008)(122000001)(83380400001)(8936002)(110136005)(38100700002)(7696005)(5660300002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?yizl3k1exwvtkPFtr+P58CzeNLsEzqTAZjgcFErpaUfEO/TeG3Hr78lW9UA9?= =?us-ascii?Q?M7XpIPYKsm+1QU5W8LNPbfrP2P8VOM1aOmMRZfn7xdb5XWweZ9+2nLczyud0?= =?us-ascii?Q?r6pJdffZi9GlFC0tgAiWft8dE6tIQF3UB5TupQuTjvEMbw3fcmCRHu78ezT2?= =?us-ascii?Q?+83FgmTy/zOW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?Q?B2BPNoHsnI5y2/LzFtVQihAh1BMA++bSuaE/yU7XfSdzQbo5ogVrdRV3u+N1?= =?us-ascii?Q?v9zKOd9XVWPPI1t9BklUSXd7k7LMGSgyE10LcoegB1A71pGSBDePjjiFQ706?= =?us-ascii?Q?kOGtuvMoAoGZ1JdOwwwO8AfNa/1zWptUSgWFkxp4Zo+9cpwRwDOpbtfQ0SCC?= =?us-ascii?Q?r0ectHNTkHrBW1JGUzCHVjH2Nhd2AhahB6m9JDzHaDt9mAFXsfXrMWTCtMOD?= =?us-ascii?Q?7g1RfBeiTZVJqC3F21bKAIaFvPIjIEEp3BmvAUS5r0OtNODfGi83rZs9lGSA?= =?us-ascii?Q?CxYGXeCba5QgIs3KlKxDwvv2wmGHGpxvNRRxwjvh8IfuL3icaVam0O0W38lo?= =?us-ascii?Q?IzHKsrcv3LQ0nWsa8u/3OSYh05cXZ+K9BRmPInVw61tFRMJ1x6dGgARGlQfM?= =?us-ascii?Q?4kkzC9TRKnLprywPCuoPDM+lIjiA6t1bNeNRiBG1Yfutjq2EQFVlFtccyEQH?= =?us-ascii?Q?74LxWQIFFCmG/SB06N5s1nkHqQ4ueKlDTnOPV5gp?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR12MB5396.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bbcb193b-621d-4599-0c87-08da955889b4 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Sep 2022 07:21:12.5816 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 3EYIS+C0266Ac/8Nqab5KczR8RFIQxZdOSWyXTp0fEkqJR8Z5bYMygSEeckQNwQXPS9yS+9zGKcpJ2rbcxJZpQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4496 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 Ping... > -----Original Message----- > From: Suanming Mou > Sent: Tuesday, August 9, 2022 9:26 PM > To: dev@dpdk.org > Cc: Ori Kam ; Xiaoyun Li ; Aman > Singh ; Yuying Zhang ; > NBU-Contact-Thomas Monjalon (EXTERNAL) ; Ferruh > Yigit ; Andrew Rybchenko > > Subject: [RFC] ethdev: add async flow connection tracking configuration >=20 > In queue based async flow engine, in order to optimize the flow insertion= rate, > PMD can use the hints from application to have resources pre-allocate dur= ing > initialization phase for actions such as count/meter/aging. >=20 > This commit adds the connection tracking action hints. >=20 > Signed-off-by: Suanming Mou > --- > app/test-pmd/cmdline_flow.c | 10 ++++++++++ > doc/guides/rel_notes/release_22_11.rst | 6 ++++++ > lib/ethdev/rte_flow.h | 10 ++++++++++ > 3 files changed, 26 insertions(+) >=20 > diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c in= dex > 7f50028eb7..c9cbf381c4 100644 > --- a/app/test-pmd/cmdline_flow.c > +++ b/app/test-pmd/cmdline_flow.c > @@ -219,6 +219,7 @@ enum index { > CONFIG_COUNTERS_NUMBER, > CONFIG_AGING_OBJECTS_NUMBER, > CONFIG_METERS_NUMBER, > + CONFIG_CONN_TRACK_NUMBER, >=20 > /* Indirect action arguments */ > INDIRECT_ACTION_CREATE, > @@ -1081,6 +1082,7 @@ static const enum index next_config_attr[] =3D { > CONFIG_COUNTERS_NUMBER, > CONFIG_AGING_OBJECTS_NUMBER, > CONFIG_METERS_NUMBER, > + CONFIG_CONN_TRACK_NUMBER, > END, > ZERO, > }; > @@ -2667,6 +2669,14 @@ static const struct token token_list[] =3D { > .args =3D ARGS(ARGS_ENTRY(struct buffer, > args.configure.port_attr.nb_meters)), > }, > + [CONFIG_CONN_TRACK_NUMBER] =3D { > + .name =3D "conn_tracks_number", > + .help =3D "number of connection trackings", > + .next =3D NEXT(next_config_attr, > + NEXT_ENTRY(COMMON_UNSIGNED)), > + .args =3D ARGS(ARGS_ENTRY(struct buffer, > + > args.configure.port_attr.nb_conn_tracks)), > + }, > /* Top-level command. */ > [PATTERN_TEMPLATE] =3D { > .name =3D "pattern_template", > diff --git a/doc/guides/rel_notes/release_22_11.rst > b/doc/guides/rel_notes/release_22_11.rst > index 8c021cf050..c396bfca5f 100644 > --- a/doc/guides/rel_notes/release_22_11.rst > +++ b/doc/guides/rel_notes/release_22_11.rst > @@ -55,6 +55,12 @@ New Features > Also, make sure to start the actual text at the margin. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D >=20 > +* **Added configuration for asynchronous flow connection tracking.** > + > + Added connection tracking action number hint to > + ``rte_flow_configure`` and ``rte_flow_info_get``. > + PMD can prepare the connection tracking resources accroding to the hin= t. > + >=20 > Removed Items > ------------- > diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index > a79f1e7ef0..c2747abc55 100644 > --- a/lib/ethdev/rte_flow.h > +++ b/lib/ethdev/rte_flow.h > @@ -4902,6 +4902,11 @@ struct rte_flow_port_info { > * @see RTE_FLOW_ACTION_TYPE_METER > */ > uint32_t max_nb_meters; > + /** > + * Maximum number connection trackings. > + * @see RTE_FLOW_ACTION_TYPE_CONNTRACK > + */ > + uint32_t max_nb_conn_tracks; > }; >=20 > /** > @@ -4971,6 +4976,11 @@ struct rte_flow_port_attr { > * @see RTE_FLOW_ACTION_TYPE_METER > */ > uint32_t nb_meters; > + /** > + * Number of connection trackings to configure. > + * @see RTE_FLOW_ACTION_TYPE_CONNTRACK > + */ > + uint32_t nb_conn_tracks; > }; >=20 > /** > -- > 2.25.1