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 40D20A0C45; Wed, 6 Oct 2021 08:16:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2AFE9410EA; Wed, 6 Oct 2021 08:16:05 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2054.outbound.protection.outlook.com [40.107.223.54]) by mails.dpdk.org (Postfix) with ESMTP id 018FF40F35 for ; Wed, 6 Oct 2021 08:16:03 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lcf+f77Jq/SfV3sTbhUldZM6r3k3EifpHW1dSq24hsub+IqpzI/bME0c7JHj2zWe9GI4WpyA0nl6itJyg48YpJ1iBLNjm+Ilg0w3PKLYDODZ2MgFy8Mi+L3qv1s8rm8vwYxNybI78jz/7RSisWkKw+N/NNtge6rjJ45dI2iO877lpnn/FM05bEJsKyIOYyTSTrSbFXR325cG6V/OGFqu1zQUjJbnUEN5xjVbulVlJjFYoLZXL0zTDcv4ws9qp/8PdHIYX5QzDnghbitztUS5NT7qFQ7fxdqOX0xgwNoDgfs0UrE89V4YQ6bVQTjpgF21ap/nz2ScaxMgHhhONRvI0g== 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=VS0Y9Dtjg2gxXnl+1+szJM4ifBx/fqGyX4h9Ld2sO0Y=; b=VENoSCqJvVmSRrBVGa08lW7u22E+NvUYEkSbk9VhUX7hoyaC/fF7oLQXXyD/7MsuYl9U/u45nYBfjAtu5fP3WbJUjSRd6+oQURaDDVOcIVZ+oPPwt/hrDZNGJsXffYghUbjaXYwk7xoEe9C7vBAHwRCx636woMSzxbM0FQlwEY9kZPaIqVWSn5Ec8pUt7bnzDiyDJ2Kr+jDo0J6sNlgZI7R94J8rWX+kqxbPxqi12LsghWCqSVLiLN0SZRalp9FRLGCdLqJsbBl/r0q0FuqS0IFaZyH09GzUrDk5TmcuZTlzxbJoqslS4JXYVFUl5g25L5sW25ndA+qZ91FQk7XRSQ== 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=VS0Y9Dtjg2gxXnl+1+szJM4ifBx/fqGyX4h9Ld2sO0Y=; b=uJx5dB7wMjPC0PmbxeArHnlpOnI0A6p52ZWv8Nx7o06TOa9B9ME3LTsAh3Wer7rev/bd4dfXfP3k4yab3WBm61HI45lKoxXm6v6x4KOdfMCbe5k4yJCBZwGg3x2tAhNh61TTrDYMXKyx3/64D7wnXlYo6BZuknsmqFp2PPHu7N61phwN9OrsV1/y5kLqSMxwNFWoz7Yom/q3UCi2uv0KDXT9x6k3FU7mdN29qAxaQPC2Jp2rDp5IshX+x+k3tml1tEa9Wioi3gOBXEDd3zp6HmERDSQc9J4dqn7qQA0D0omzxe86H2N+LQEP2J4dOroy+8X55qzlp+JtMEK29tF6Lw== Received: from PH0PR12MB5401.namprd12.prod.outlook.com (2603:10b6:510:d4::13) by PH0PR12MB5499.namprd12.prod.outlook.com (2603:10b6:510:d5::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.18; Wed, 6 Oct 2021 06:16: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:16:02 +0000 From: Ori Kam To: Dmitry Kozlyuk , "dev@dpdk.org" CC: NBU-Contact-Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko Thread-Topic: [PATCH 2/5] ethdev: add capability to keep shared objects on restart Thread-Index: AQHXuYNQVG/XxNmO0kW5HIXsrcs9PqvFgCPQ Date: Wed, 6 Oct 2021 06:16:02 +0000 Message-ID: References: <20211005005216.2427489-1-dkozlyuk@nvidia.com> <20211005005216.2427489-3-dkozlyuk@nvidia.com> In-Reply-To: <20211005005216.2427489-3-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: eb461f3c-647e-401a-ce55-08d98890c601 x-ms-traffictypediagnostic: PH0PR12MB5499: 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:5516; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zBFC2n5TrDJ9BnfVh2NHCGpATLWH1lVUYra7vGqQ3anlC2kgbJrF55aMD5up5ajvAVubcTDdoDy5ic3RaGY6YIuzXGrCR8M8JXIEXbw1xrc/Id+UdUuV/W6qC/pwvWP6hle6s3Z50K7uZsxMMIXzZj7Er4oNhjS1F2B5ORRtK+JXLADADMcZJ1MOsjFlAoaD/RRNHgZkBwGfQUBpvPiLuQTaIcjoQ+qucrn5gGYMuis8nb+6ZQ6qVoq5Ch9htft2GcyVaBiIZxCRVGOUW7DOtT37I9LKgvWRLqlWYze9uukTXYTL1HTSCvMMYq7lrMdNUefukPi0JtgzqSsAtrEyh2duq3uVmWYqeEi6Qadcd2hz1DGJmytwH47/ksZTCoSwUv8qXD7tkEnQV/VOkQ0s+fEuu18TS+pfdxXpgLaPGrfG3/X6YqIxx6y0DwlKX5uV5juwjNLSmbbYSbge9atZ2G29eie+HNXmJv348tHJD192E33yKKc8Rq+LfHAcccZxdJk+X70Zh0BExX3s/f2KiHz7mrOLlTmnLnfrYEQlpcPqrJfzkWHpoobpPU0l0F+D2lMibH3mFnzzoNXtbK2q1uddcOVd2X0ezf9rAhlTeVB01hZ41TGJqo6r3A4X3GneCbgUMV3eLAKHBjObofKEf25UuOpn2/asY4qFWgU1m3/kMcO8MIQVDoXy5hO+KKRfHG1w/BV5TNS1KMrMi+XC7A== 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)(66446008)(9686003)(186003)(122000001)(4326008)(6506007)(53546011)(7696005)(38100700002)(38070700005)(8676002)(86362001)(316002)(110136005)(54906003)(8936002)(2906002)(66476007)(33656002)(5660300002)(71200400001)(64756008)(76116006)(52536014)(66946007)(66556008)(83380400001)(508600001)(55016002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?EfcqRQLmJEad0/Euv7w81o1BoPJ42OJJ8yeWD6qDc9ljkRFeUzJwJEYEimBu?= =?us-ascii?Q?PJESFKCmAtavGk7xDsppsCb4/UgT8/ShlQOwzRc0f9VMeJR2m12mbRFjidmK?= =?us-ascii?Q?aUFS6FfAeoC4Pgf5KtUUYS6o3WMPOeS1Ch2TEpjGKITHmZb78T6rtRfFLp5j?= =?us-ascii?Q?FtNI4JmyWLXJCNvhCLIjhE1b9ALDzotu3DvyePCEHpIFCCN0slB3YU++xmhA?= =?us-ascii?Q?Z6skHIo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u1B+XKB2tgntiXQ5/+Bz?= =?us-ascii?Q?g2lxJNAHtHEQnzeWInRqeA2LThQNBN0Ra5KGP03E8cMdI3x7cYCjunvQQUc/?= =?us-ascii?Q?MMNaSzAuAOVCFTODvihtQlmCcGK6/FC3Neh2bVH4XWBn+KN63uPblsp/OqMi?= =?us-ascii?Q?kghYLe+AXv/hbsoNdNpP8zrrIdC3d2qbRdqonAOkDrV3SweX8COcQGCR9ZfT?= =?us-ascii?Q?GfBeVB4KYSOJa/vi52Xq2xJpet6QDv5FnkQb4fi7dWMpCX6U5Ip6nddWfaHK?= =?us-ascii?Q?uKBsedSMLOgQNqfAZRtLGDXGGve5?= 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: eb461f3c-647e-401a-ce55-08d98890c601 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Oct 2021 06:16:02.7215 (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: K1kTWZdJnC7gl6aYJOrYiHKN+CDzoup5AIh5QWYBorCv3581ZyBuZxmUeUxaIkClsHtBHpsVwWNG4i3AK1DAkQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB5499 Subject: Re: [dpdk-dev] [PATCH 2/5] ethdev: add capability to keep shared objects 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 > To: dev@dpdk.org > Cc: Dmitry Kozlyuk ; Ori Kam ; > NBU-Contact-Thomas Monjalon ; Ferruh Yigit > ; Andrew Rybchenko > > Subject: [PATCH 2/5] ethdev: add capability to keep shared objects on res= tart >=20 > From: Dmitry Kozlyuk >=20 > rte_flow_action_handle_create() did not mention what happens with an > indirect action when a device is stopped, possibly reconfigured, and star= ted > again. It is natural for some indirect actions to be persistent, like cou= nters and > meters; keeping others just saves application time and complexity. Howeve= r, > not all PMDs can support it. > It is proposed to add a device capability to indicate if indirect actions= are kept > across the above sequence or implicitly destroyed. >=20 > In the future, indirect actions may not be the only type of objects share= d > between flow rules. The capability bit intends to cover all possible type= s of such > objects, hence its name. >=20 > It may happen that in the future a PMD acquires support for a type of sha= red > objects that it cannot keep across a restart. It is undesirable to stop a= dvertising > the capability so that applications that don't use objects of the problem= atic type > can still take advantage of it. > This is why PMDs are allowed to keep only a subset of shared objects prov= ided > that the vendor mandatorily documents it. >=20 > If the device is being reconfigured in a way that is incompatible with an= existing > shared objects, 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 RSS indirect action specifies queues = that > are going away, the user must update the action before removing the queue= s > or remove the action and all flow rules that were using it. >=20 > Signed-off-by: Dmitry Kozlyuk > --- Acked-by: Ori Kam Thanks, Ori