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 28360A0C45; Wed, 6 Oct 2021 08:15:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E9AFD40F35; Wed, 6 Oct 2021 08:15:04 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2056.outbound.protection.outlook.com [40.107.243.56]) by mails.dpdk.org (Postfix) with ESMTP id 34BAC40696 for ; Wed, 6 Oct 2021 08:15:04 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OUvJO6MqDMOIhF+KX5h8MKOx5qcqN2xppqvUgNqpGzIM6hfrvzq+TyBp+dT2m4uU9PvikajUV8S3hrgenFLFdjdA6/WbO/ZyxmOGtJltb95A8UaqrQR+24BktE6DCaAa612IOmW61ja1THRwm4YgsHxBFFsk4G24JmhTFvz7XgS2mtUWW1Fgi6BikHLRaA9tP2ckbaZymkNQpR6j7VcgU72HSrE71KGdfoslITH4VaMXh/AjMoJmSXGPtwsEWxSlBQaY3V2jyk5Zoh4GXa1nczFPyP4txdmSsVigA7hle7D0idPZwzMCSAxNb2mB7RVc3MtQAwPq1uCnxltMosuPsQ== 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=8d1pmQ6sy7WjOpCW2jTI0OtEhp/CAmmK3hu3E0LP+vc=; b=dorpb+LsCSGRq2rbCH+enecAcD7Wq3FzMzRIPmk8R1C5dzo4icr4Kwp5LzZ7Te9lYk54in1YKrZvc4GvvLCNjST0J0cVgTN81p2kaEIRS7pInVUEAGOhA54H4XqnZXm666uvl6YL78S7MAYlDmY9yORKTg5XYOcLSyYa4x8qgVebIgb45vA/AoDG801tHC5J1Ds/Mpdrt3YyW8fsne1GGEk1atUmP0R90vjSBcqM2zDQyQlVa3CCTqfI40bh9qquNhQaAAbbic4hFxP5syUxmsToBjz5NrEGSnGjsndhIx0D+U2kWum1xxYrFKwR5jrI/28phW9eX/H6IOzS88hdeQ== 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=8d1pmQ6sy7WjOpCW2jTI0OtEhp/CAmmK3hu3E0LP+vc=; b=BiiDLneKfZTIZaNsJHvdDEsL8LHEGcpn9sBfZCLDhnu6CSXFFyuTycYcCCxIg8ECKN3NmDCnknNOTany/jaW82jLxptAynprl8fDHdfPs+aM4MaO7GBXNTYwx+WQPVuebCw+I/YguyBL9pH7i4HAYvqSgG/AeuyB99MBkiFdWJgFLJt9nR97QJy06x4VyXq/IJQ4lFO00gFa8qM1QlKundSsM9DZnsIGNR9xkG83EOddOB9a751PNtZExfbgehPK0P8eEuTKyFlFcjwknJdVJFaEe8GHKTaHdJHiCEnHOSaZDgVv9V91VoAxX6hqb4cuULaB2/T2JV33qo41tL8oRA== Received: from PH0PR12MB5401.namprd12.prod.outlook.com (2603:10b6:510:d4::13) by PH0PR12MB5417.namprd12.prod.outlook.com (2603:10b6:510:e1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.15; Wed, 6 Oct 2021 06:15:02 +0000 Received: from PH0PR12MB5401.namprd12.prod.outlook.com ([fe80::8d92:e907:251f:8346]) by PH0PR12MB5401.namprd12.prod.outlook.com ([fe80::8d92:e907:251f:8346%9]) with mapi id 15.20.4587.018; Wed, 6 Oct 2021 06:15:02 +0000 From: Ori Kam To: Dmitry Kozlyuk , "dev@dpdk.org" CC: NBU-Contact-Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko Thread-Topic: [PATCH 1/5] ethdev: add capability to keep flow rules on restart Thread-Index: AQHXuYNPGwa5rNbld0aNb91SLfv/J6vFf7pw Date: Wed, 6 Oct 2021 06:15:02 +0000 Message-ID: References: <20211005005216.2427489-1-dkozlyuk@nvidia.com> <20211005005216.2427489-2-dkozlyuk@nvidia.com> In-Reply-To: <20211005005216.2427489-2-dkozlyuk@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 15ae52ee-b18a-4e79-2af7-08d98890a23e x-ms-traffictypediagnostic: PH0PR12MB5417: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 41Xw9+dhIuZvsnu7qYYI+Ufxgp1EC268sqzk8d2j5Chq4JJEjjjkDpw73hK5dEjfERhkuuUcqW/7UgDbcdhrJdqlAx5Ehm48Vg7iFXiI1d62G5KfbQgbfMCCQLD7+YCQj1Zrl41IJ6J+AzC8+a40FkDnYU71kaniTGlykeUQPjLvbUyBOvaTE6lny97wZlWhLfytYaMPB0ml+GjUTYLy6dmZFu+wr2MHO/0Rdb00srJOP+SQ+6S9Z0aWDf6IrmF3sTYuP9BGWv01l6h682vrfYLat3vKv1L6Cg3g6U+k7cTjlb7e7eyjPP+qxQPyKmNvKVMnG/IH+CfWzPNtcITnegzhoCIKADjqa+GpwuHd45/tPg3X3Fu38nLcNathI8aT/n8RujGU5crIWuVHrzQPcTqVu+ckPLhbjopRUEX5kDrZYam5Axs1Ywp+Cld52NLX6lCu5rWunlae5kqMsxQpfHGNgY1tMBxi3QcbLYWV9tJpPAjzzDOnTr1QLGR/IQhCmDbxj9+29nuDkyQkmUQxgQjB4PnmR+YS837ndd9X4WZ/V21IJ+VTkuF0sO1vCQ2SZc9brlKLKjM6lBPBF/NOw3Nz85vclD8/+ZPwtJznwVQ8aS1+fiSAfB+wxIYHJDV/ZznEvjbjpHMLfr6a89GTRIdP8zADuT1O+qK4wjqYKfCHfyalfyDLe0DppnJhQMV8mlyVa6oChml5x5qgV9viZA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR12MB5401.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(55016002)(38100700002)(508600001)(8936002)(66946007)(83380400001)(9686003)(5660300002)(122000001)(66476007)(2906002)(33656002)(66556008)(66446008)(64756008)(7696005)(38070700005)(52536014)(76116006)(186003)(86362001)(53546011)(4326008)(54906003)(316002)(6506007)(71200400001)(110136005)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?dPJEGw9aF8VlqiGjpgTxeoCmjDdrhjxHL/z95YedVURW0ULgtP9aOtex91Or?= =?us-ascii?Q?eALk3ZW+8Zawh59ejBs5DFl4IVWcZT02DK8OA0EsX+HHsDVHywfpEUUP+WUE?= =?us-ascii?Q?513IyDUSGu4PleBw53adKCG4wBYiMWnKo19i5KdG6QLz2p1FAXLkKHMV7kkJ?= =?us-ascii?Q?r97RAE/BkVXKmT/uTz5GwiyMLFnKbznM8fpdzzml43hYQYyfhJvwF3a473GP?= =?us-ascii?Q?hONBK5gnSWxeI87irw0ln3V+FTmfnnMRmf0yf5gLBtBovYCfw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spxgwbOgW0YAW+CdCgJ7UFflc1XGu+J/YZhJi6qDjzYsB8?= =?us-ascii?Q?/j8Gtxp3LTWwk5nOf05QzHSRcDrN6ty2mCVZFT4xMpZmCG1+ceZ2pSB6Lto/?= =?us-ascii?Q?/LUA+UsTU9AkgVAmUQ9bYpXhO7CmKoK41HhrvjU/Jf68Q8/0dNwxfyomNDuB?= =?us-ascii?Q?THrqUaI/otmb8cxrSelM40hDoXfzsaspCTzg2BBor9/1aLxcx+c/56Tlt8M5?= =?us-ascii?Q?2P4+Cj8/qtpsKR8KR3CobVQ1Md3m?= 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: PH0PR12MB5401.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 15ae52ee-b18a-4e79-2af7-08d98890a23e X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Oct 2021 06:15:02.6823 (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: ZsZWizUouKjOskXij7Xtq+aEBQlQx45afYox0ts5NURIYjIdaRT+OndlOlJJAE4PZlmzwHCHTQ1Y8VaXZAviag== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB5417 Subject: Re: [dpdk-dev] [PATCH 1/5] ethdev: add capability to keep flow rules on restart 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 Sender: "dev" Hi Dmitry, > -----Original Message----- > From: Dmitry Kozlyuk > Sent: Tuesday, October 5, 2021 3:52 AM > Subject: [PATCH 1/5] ethdev: add capability to keep flow rules on restart >=20 > From: Dmitry Kozlyuk >=20 > Currently, it is not specified what happens to the flow rules when the de= vice is > stopped, possibly reconfigured, then started. > If flow rules were kept, it could be convenient for application developer= s, > because they wouldn't need to save and restore them. > However, due to the number of flows and possible creation rate it is > impractical to save all flow rules in DPDK layer. This means that flow ru= les > persistence really depends on whether PMD and HW can implement it > efficiently. It is proposed for PMDs to advertise this capability if supp= orted > using a new flag. >=20 > If the device is being reconfigured in a way that is incompatible with ex= isting > flow rules, PMD is required to report an error. > This is mandatory, because flow API does not supply users with capabiliti= es, so > this is the only way for a user to learn that configuration is invalid. F= or > example, if queue count changes and the action of a flow rule specifies q= ueues > that are going away, the user must update or remove the flow rule before > removing the queues. >=20 > Signed-off-by: Dmitry Kozlyuk > --- Acked-by: Ori Kam Thanks, Ori