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 D0DFF42649; Wed, 27 Sep 2023 03:21:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A491E402AA; Wed, 27 Sep 2023 03:21:52 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 17F7A4028C for ; Wed, 27 Sep 2023 03:21:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695777710; x=1727313710; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=wZ9B8dOAxOO9NXtcVFOlJWTjRuoFtsg8rSoeraRyyXg=; b=A88P5C41/Keuvnqk4QplxZoyiWYft6zmvQeSLFObxiwaAbG/Han8x0ZO uxu0uLiDOUQx7R04R/u1HqVsTyP3RxvwgU4qFNj7d0w2W7Hy44nSt1/EC nvaQCyh9G64qWgIwLurVivYEnooyKK8BdTf6pF1WWPnlwL3IpaI1bKP/s +aoPX/T+cprVlFS0BPPEntakLNFDaKNyslHOIh0LUwcGyOjKxW6ou0Cnm +OZYX2xtfTccHyqhT9XCpvIRFaRwmHZ1YssTjcHpM0QBrkNcjsip3VVMC QFmFmDxhh9OGJWb48hPZaMZ1qFkBoRSGfvEmvnQPMB0S33GHYAKp2yr/K A==; X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="385558488" X-IronPort-AV: E=Sophos;i="6.03,179,1694761200"; d="scan'208";a="385558488" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 18:21:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="892400944" X-IronPort-AV: E=Sophos;i="6.03,179,1694761200"; d="scan'208";a="892400944" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga001.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 26 Sep 2023 18:20:43 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Tue, 26 Sep 2023 18:21:49 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Tue, 26 Sep 2023 18:21:48 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Tue, 26 Sep 2023 18:21:48 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.174) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Tue, 26 Sep 2023 18:21:48 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZqlVuY4SYxGUOgm3atwjyGaCsN2c1sapwUCNW/DiTRfCxsWwU/EHg4FAW4iwhutlOr5VKpMTdCbfUJGFXLpnSma1eu5cZaGLkr0wL+GDCLmFE6dtOzDe9bE1J20wR0InEuy/WsbuRloRROtOQa3TnjG2yeNDheKLkFraHTQgTBSs4Rtvyh1ivYn0V/tH/W6wa30xiuDpT3OPcBiyEpO7mFYEnF8ni5y66AVRvwCfEgRyxZnb+lPpdFlyS5o7H+iNZ1OKbk/xryblgpQjCf4svRCVFVNNm1OJf1aM8uY2Biqaf2KS43ejRZzKK1hSDrMI1kqukMnCM/9rLAowctqnJQ== 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=91YYyooTVxjubHEzKXazhyR/2u5JeQ+1xpgPSkWX0pk=; b=ZsV7WuUmIIATj14pMelHyztG48bWUbT79e/Zqh7hpa573pvWXz+m2I1FzltgAOYut3bHYS6/GLRTHvlOYR5WCV6wQaZsSNczmISjjj9cDwxPfQPhew+DfqbUeY+hDoayo+RitD1w/J4X8LnE+DsQR7GIhz8A/yvY6UL6/omZHShLpFd4r9Hk5G5m41NJPDPcQFK91CgFlouuPkwfT+UY6hW8FucSL5cu0eXttgEvIdLeO1rTWit8Vl6k1+9BHPjAvvu4Xqd2N1kwolt1lATKpQMsHtvJhHJPfGeiu8P9OUPI7Bse8GNXbl4ZmKH1bhUakXbbTxXcuP09Tog8gH3xVw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM4PR11MB5994.namprd11.prod.outlook.com (2603:10b6:8:5d::20) by MN0PR11MB6254.namprd11.prod.outlook.com (2603:10b6:208:3c5::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.23; Wed, 27 Sep 2023 01:21:47 +0000 Received: from DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::27ea:67e:2966:23e3]) by DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::27ea:67e:2966:23e3%3]) with mapi id 15.20.6813.017; Wed, 27 Sep 2023 01:21:47 +0000 From: "Zhang, Qi Z" To: Stephen Hemminger , "Zhang, Yuying" CC: "dev@dpdk.org" , "Wu, Jingjing" , "Xing, Beilei" , "Qiao, Wenjing" , "Dumitrescu, Cristian" Subject: RE: [PATCH v7 1/8] net/cpfl: add json parser for rte flow pattern rules Thread-Topic: [PATCH v7 1/8] net/cpfl: add json parser for rte flow pattern rules Thread-Index: AQHZ8KW3hxZeF+IgP0qPh4hfNfuVprAtdxcAgABeN7A= Date: Wed, 27 Sep 2023 01:21:47 +0000 Message-ID: References: <20230822010226.17783-1-yuying.zhang@intel.com> <20230926181703.2268199-1-yuying.zhang@intel.com> <20230926181703.2268199-2-yuying.zhang@intel.com> <20230926120354.0f439360@hermes.local> In-Reply-To: <20230926120354.0f439360@hermes.local> 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=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR11MB5994:EE_|MN0PR11MB6254:EE_ x-ms-office365-filtering-correlation-id: 7286dead-0f64-476b-4516-08dbbef81e46 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: teNoqyGabEXx29dcjxIiLFos4r9dDbnYBpsqO7k5KvCgUTnZydLCRhmXJIE5XAXJnOG5+qCi7LHAo3U5W/Ljtusuka1pje2eYLBmZ4v1yxm1DpnDt9xqkmgZPF/ECO3mHbjaYgueg201bKy1jFRWLVQ+JFVgoIREuxVIOkzozUX9a+/hg+0oOi/nH8mb87131W2T+/HatEAhQb/Hz03QpKb3ncgYF8aS78HNwpbjXMjFFtuCLhRxKQvxlVrEf7Vm5njWugtY2j526AGcVMO5oHGN7kQf4Qb88CWE9bU6WMG+Y/Lkak7fhEn3j15lu4VygKTLRQQYPDx+RrynHgl0Pt66sj1Yg4rtPTkDF+babWPm80/R8m/w3DEQw3u5dF2jnRWl1nBhsq1wnjoYkE6Jcga8EQlGGo6d1KKoFIG4tamW2l9fn8WWliaVdpG1kBlwFok95jaxattM7BFVqLeplNiU1CQk4b6isTsoCWwcREM8vxJPte6KiMLZaqGPYVnrwHlWj/19K7RghuVnZNd9u02C+SU4V57DS5bGekGFYzYa4XstbAlUoruM5BZQHRzAobPAaVtUgAL61W9SD/c4hphnaTiM9p+CukhUOfCjVycAeNUyEi1xYjEAF6y5ge/w x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5994.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(376002)(39860400002)(346002)(366004)(396003)(230922051799003)(186009)(1800799009)(451199024)(82960400001)(122000001)(55016003)(9686003)(6506007)(53546011)(26005)(71200400001)(7696005)(107886003)(41300700001)(110136005)(66446008)(6636002)(316002)(54906003)(76116006)(64756008)(66476007)(66556008)(66946007)(2906002)(33656002)(8936002)(8676002)(86362001)(38100700002)(4326008)(5660300002)(52536014)(38070700005)(478600001)(83380400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?USvjKM30R9ZW2QBPAI0K6gRPSj1WxzUiL9VrsNSf/u9HyjHd6c3SxHtUAmiH?= =?us-ascii?Q?LUaFGsnMjFdfNVcClR6Aqkx0pxrhYCHsIeGbLCOQHGphl2kmgEVQz93HCkvK?= =?us-ascii?Q?3QACPDD9/7l7BL/swjzWioqxCPpQdWCenJp/fRIP6DqJcYS5iU1tc2DT142S?= =?us-ascii?Q?gvyQ0X6bFSZOm4GXxhGZ8k6GKwPHHG8EDuQTOljB1i3xmbPrz0fpLwnGkKL7?= =?us-ascii?Q?oDFd1oKp0wMsh6yfVlQULdt+7eXsHFoNU0U3k2nmBDVVJswVKlsVbwbHBiMS?= =?us-ascii?Q?oE66x/9lvozJa1kOvIBjSJHQ3LB9cVLGjM6nZW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OiHdcbKehZ43uvg4wXs59/s8oKySZ3drYpW6pjl0pA/v6QTM/HonwEuP?= =?us-ascii?Q?cmDjWUX7u46qHBGMNZt+XRcLY8fXUSp5xmWJjwWJLXhmlUza9rGd3dhA9UFr?= =?us-ascii?Q?0TjRbwMqkp4UKJnh4zij4LMRiybkCYjyGE9mFycuO69ujiEVoAAmfxRn7XTI?= =?us-ascii?Q?KX6nBHWexSwhw+ZMuIiEtnHQhSpeElkFKZkeDZIMGooSqoDrwJ+JbE2z8/eJ?= =?us-ascii?Q?8N61AvYYmkDXyW3OfVgJOIz3B3bIp6NQBkK7B49bY4ZbJH+p4fQdmX5ppVu/?= =?us-ascii?Q?IWzRRfVyz1wwysuqSWvH4klAllcNe4/a3t8FF54zuho+3R/40m9sM18ADvJe?= =?us-ascii?Q?RnHn4w6EsUA7IHr70hAgZb5uKXyxvOQg4VMUAvZH?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5994.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7286dead-0f64-476b-4516-08dbbef81e46 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Sep 2023 01:21:47.2104 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: u393xW4YkJBJIAoXxQOMoT5onXknBfhlZ1CTygOGWZhmJHI15Csoucz84SKdFn94lJfjL5PixmQaCuPWs0/7tA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR11MB6254 X-OriginatorOrg: intel.com 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 > -----Original Message----- > From: Stephen Hemminger > Sent: Wednesday, September 27, 2023 3:04 AM > To: Zhang, Yuying > Cc: dev@dpdk.org; Zhang, Qi Z ; Wu, Jingjing > ; Xing, Beilei ; Qiao, Wenj= ing > > Subject: Re: [PATCH v7 1/8] net/cpfl: add json parser for rte flow patter= n rules >=20 > On Tue, 26 Sep 2023 18:16:56 +0000 > yuying.zhang@intel.com wrote: >=20 > > From: Wenjing Qiao > > > > Add devargs "flow_parser" for rte flow json parser which depends on > > jansson library. > > > > Example: > > -a ca:00.0,flow_parser=3D"refpkg.json" > > > > Add json parser for rte flow pattern rules which can build rules that > > maps from a set of rte flow items to hardware representations. > > > > The cpfl PMD supports utilizing a JSON configuration file to translate > > rte flow tokens into low level hardware resources. The JSON > > configuration file is provided by the hardware vendor and is intended > > to work exclusively with a specific P4 pipeline configuration, which > > must be compiled and programmed into the hardware. > > > > The format of the JSON file strictly follows the internal > > specifications of the hardware vendor and is not meant to be modified > > directly by users. > > > > Signed-off-by: Wenjing Qiao >=20 > It is good to see the code is now using the same JSON parser as elsewhere= in > DPDK. >=20 > How does this interact with the P4 work done by Cristian, is this part of= that? > Is this treated as opaque firmware? This solution is not related with p4 support. Though the device is configured with P4, but there is no P4 aware interface= be leveraged here. The JSON file direct PMD to translate the rte_flow fixed pattern / action = into low level hardware configure directly.=20 The purpose of introducing this solution is to facilitate a smooth migratio= n for certain customers who wish to transition their existing applications = from other NICs to IPU.=20 But, of cause this approach have limitations for customers to fully leverag= e the capabilities of the P4 device, as not all offloading features can be = mapped into fixed functions. The solution based on Cristian's patch will be enabled in a later release. = Both solutions will be available exclusively at runtime, depending on the u= ser's intention. > Why is it driver specific? DPDK P4 support needs to be vendor neutral to > acceptable. Even with the P4 solution, the PMD must determine how to map P4 tables and = actions into low-level hardware representations. This knowledge is generate= d by the compiler, and there are a couple of options to enable the PMD to a= ccess this knowledge: 1. Embedding this knowledge into a storage space on the hardware, allowing = the PMD to learn from the hardware through internal firmware APIs. 2. Storing the knowledge in the file system and having the PMD load this fi= le using devargs. But, these options are vendor-specific in nature. Regards Qi=20