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 A432CA00C2; Wed, 17 Mar 2021 17:10:42 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2E8944069F; Wed, 17 Mar 2021 17:10:42 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2052.outbound.protection.outlook.com [40.107.244.52]) by mails.dpdk.org (Postfix) with ESMTP id D777D4067E for ; Wed, 17 Mar 2021 17:10:40 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j/n9Bk4rZBqRa/wclYgqfAgR5aFmR3PyIl2CsLPcTinMZJ3ns80PmJs1zLbaCw99b2XXN4sDkNt6D3p6GFkNUkfonbTMH6HXxm/0QyeiWb+5O5omnyDWvGdRNY6lRvX5SLMeFFSZpD7vfz+SEIKQU2Fq8QrUaa4dTl8xkB1oX0RGiatMKjZEaIxgcOlBVyui4BDoDurmP04egdkIYCqNyay82i64aN9pddziwGbTHaRbUY71t1NJWLt2MZqY1JFXYBxugzgMKoKxeJptn6aSBOOHbaXLCqPtagO2lS5hDRSx2PgZmM1r47G4yCT5lGo4GHlLaU3bt2eDdNPHWvQW7w== 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=529Zh/5wMDjY3t26xX9TCpMR1d8R1W4qOm3petOYDAk=; b=m4WislT5yFvL8nUZxAFnfvzgSOsLXTk0n/sb9omz3y1pg7hn9DcQShpyzut4vcSTaMdNxKm1H84nNkxUU+idmBG2lt4IvCcm9f8987AoOhmUWJelqe+FqpLY0qNSHwo4hr4BCvJdkMQLKB+E3Vn0IqsTn4Xpa7Kz9ajEjFyaC1m8SoblsUc6cBoqpRC6lNZHRuyCmnFqqfNxfXAwC/ATs1TcYG32AiwbCNXzvYqheB98NQCd/jHcRh6Xx6nWcSwocPYGczLeGgmYlak82Z0j4tBG7VhAANof4ht/nshCY9LuiTbnOfBd42dXDetnnw2PAsfqYxzdr73RBLn+gNLTyA== 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=529Zh/5wMDjY3t26xX9TCpMR1d8R1W4qOm3petOYDAk=; b=OzHBeLBGF0NnzrlKKSuPzp0SWw+WFMkCDJ0nZnWrbyvXNgMagNrVc8OgaAKz3w71zRtHpnx2V/T3pBxji4qbo3Ogr548T+sYEBw3qmCBnIZdQ+9I7vWj0HAcMpxg/D37WyCj1JhlUp66yLTvw6YxXW2olUEYH9128r/4K7e+Q0icqnXZGKdBoV03/oN2H732PEcWS+lJ6UOqxqBqjj6HbUQVAPngiHzyXnkJ6spd/t/YodJM/qdqUxm/+USOR8mhPa83nYxbpQ4mjqS1zuELk9fNvdTK+mJk0NZEodjFEQfQvPWB7KgnlYvElD7I11z/D/f7+xeiFlMEBE5X7sIKtQ== Received: from CY4PR1201MB0072.namprd12.prod.outlook.com (2603:10b6:910:1b::19) by CY4PR12MB1943.namprd12.prod.outlook.com (2603:10b6:903:11b::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.32; Wed, 17 Mar 2021 16:10:39 +0000 Received: from CY4PR1201MB0072.namprd12.prod.outlook.com ([fe80::6018:28b:59e1:befe]) by CY4PR1201MB0072.namprd12.prod.outlook.com ([fe80::6018:28b:59e1:befe%11]) with mapi id 15.20.3933.033; Wed, 17 Mar 2021 16:10:38 +0000 From: Bing Zhao To: NBU-Contact-Thomas Monjalon CC: Ori Kam , "ferruh.yigit@intel.com" , "andrew.rybchenko@oktetlabs.ru" , "dev@dpdk.org" Thread-Topic: [RFC] ethdev: introduce action context APIs Thread-Index: AQHXGweOxhV9biVSf0uN0t84s4bJAqqIWKrg Date: Wed, 17 Mar 2021 16:10:38 +0000 Message-ID: References: <1615967952-228321-1-git-send-email-bingz@nvidia.com> <4868470.BFrr8Tzbyp@thomas> In-Reply-To: <4868470.BFrr8Tzbyp@thomas> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [103.150.130.101] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2d0feec3-0691-4fae-8125-08d8e95f34c4 x-ms-traffictypediagnostic: CY4PR12MB1943: 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:6790; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: D5wD04fH7msVdb1wOJgyNVhSjCh8DkmDJvefxrjHg+ktU/cz5/A6z6EVDi0ReImVxplL6FWqpZTIrM+Ia2tz+Ub0augzLajmu5rwrSjy3K+IvQRfboHsBgSQqapl+OLvqhXf/utWk/IXNBmZSjedeoxVqr2PKpRWfd9GxNRqF2WuSRcmG7+DEOJOzd9cOtj3mThtG1EnhRPpsUxdEpFRX2Bg1GURrnv1QfEJFRtgqgeLcJL8EyiXLMncg0MMDLNgoMmJJnyvwlcYI/2sFuAZ+eCZvKOtc4c4nlIVGzC0zE064qtQO2T+NBVQo2Vy1nVmsZBjvhbpQfh0aUHRJelXyVnhGo1YaVP+QMuQb1mt2dsmXb4mm9ppTaoo/cuSO0qEQWc7Ox+GHpT3XB991RiSwQ7Bk6PQ13FCNGYJsY1lgaXILlvXmUWEYUYyZ+aK+pt7YW6uUvB1Ly33zaPsl0Q9rO6ffJXulklXGnweCMIfoz6gm/uVfEw5UZoPgi/rQqTU3RJ2FL+WjuPbHz8j5M5SSPHy5xlg2BiLo/+TIavYu4DunliTMPj8ZUWeQ+9GM0s/ x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY4PR1201MB0072.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(346002)(396003)(136003)(39860400002)(376002)(55016002)(33656002)(8676002)(86362001)(8936002)(52536014)(186003)(66556008)(66446008)(83380400001)(9686003)(26005)(2906002)(478600001)(64756008)(71200400001)(6916009)(6506007)(54906003)(316002)(66476007)(4326008)(76116006)(66946007)(53546011)(5660300002)(7696005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?OKfjCbXU6Y1f5GXlpfsumdpwQxztgFxP8e5iOxNjtPLJAytFhybiJVco//Sm?= =?us-ascii?Q?z8ZQpAomXRYlnokfserYW+EDA7Bdw5SoklKA4QEyuecYwsPkEhj+b4xjbu86?= =?us-ascii?Q?P0OenjREd4B/8WHHm23PD2BmiExtP1XlJSVM3DBGFB6uccdBqod98I15uCWc?= =?us-ascii?Q?BVeHaP3uA+VACGJcRfLFyGW6X6EetnUIpe0ORsyP6yg4nVM4v1uZiQ5oZY2P?= =?us-ascii?Q?Nj53il/6pNgo+8t/heENsHEgCO6bTT4VbK0b2gfge3rnk1O5B5wf8/wEe4tn?= =?us-ascii?Q?/DohV9Cesa+kwi/fh6a8NrRSomE8jnWnEhz8TjJWwLfDFA4BfZXNp0TFyIoh?= =?us-ascii?Q?wiZQ6wClM2+odcyahGjMkfmk8pOrsZv1sj0admZ+xJ4A2CCTtYgrqVRA2K9d?= =?us-ascii?Q?dZdvpKBJRoN3zdEphmb6+WPi6FUCrsw2/L2nbVw4E8lq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F5e5en?= 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: CY4PR1201MB0072.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2d0feec3-0691-4fae-8125-08d8e95f34c4 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Mar 2021 16:10:38.7514 (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: 3dnvPGy6KwciUN2TcF3VesGocyPe9dDqL1HBfPtW2hUJVMwESup68dAcEFyw/tKZKW906QwIhIExgsclj3I9fg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1943 Subject: Re: [dpdk-dev] [RFC] ethdev: introduce action context APIs 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 Thomas, > -----Original Message----- > From: Thomas Monjalon > Sent: Wednesday, March 17, 2021 4:29 PM > To: Bing Zhao > Cc: Ori Kam ; ferruh.yigit@intel.com; > andrew.rybchenko@oktetlabs.ru; dev@dpdk.org > Subject: Re: [RFC] ethdev: introduce action context APIs >=20 > External email: Use caution opening links or attachments >=20 >=20 > 17/03/2021 08:59, Bing Zhao: > > The new functions rte_flow_action_ctx* that were added will > replace > > the curret shared functions rte_flow_shared_action_*. > > - rte_flow_shared_action_create > > - rte_flow_shared_action_destroy > > - rte_flow_shared_action_update > > - rte_flow_shared_action_query > > + rte_flow_action_ctx_create > > + rte_flow_action_ctx_destroy > > + rte_flow_action_ctx_update > > + rte_flow_action_ctx_query > > > > When creating a action context, it could be shared among different > > flows or different ports. Or it could also be used by a single > flow. > > The name "shared" is improper in a sense. >=20 > Is it the only reason for the change? > I better understand "shared" even if it is sometimes not shared. Another reason is as written in the description of commit message, currentl= y the update interface use the rte_flow_action as the input parameter. It w= ould limit the ability of updating, since rte_flow_action only have the "co= nf" w/o any mask or flag bits. If only part of the fields need to be updated, it couldn't meet the needs. >=20 >=20 BR. Bing