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 93D3942545; Mon, 11 Sep 2023 02:48:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1F16440291; Mon, 11 Sep 2023 02:48:58 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 82BE64021D for ; Mon, 11 Sep 2023 02:48:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694393336; x=1725929336; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=a6KCLs9g6fPYCMTyAitXUIvJvzc8radi0CRi6/Yh050=; b=m7vqLQ6ret5O9HENqeC62IPinYiEzTidCpi+i9lRVUHgPFhSAuudIfAN VYemGitWf+WtgsHowPz1Wk3mR4rQcuGW+fDTbUfTgRV2rVqYG/PIIVPXQ r0dwJG1se2gjqGA2XGq2zdkEzbjO39F4Ww5FDmzpdffgO6wXjxcaYunLP 3UxUNkNRZFeviDBO3hhPD7QxsIe7+jEefPexwngi6/O/sct8UUMCG2Nrk KvOXCO57cxOgRcnpZcBMaN+jEo4t4LhtvbJWqNoBA3vOvF4gYrCFS1RgV sX7D4HMHUIk4Ds0/3pfOBj+IMHjrfnV3rf1J8/tpcIcffoWitFDCk4NS+ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10829"; a="444379670" X-IronPort-AV: E=Sophos;i="6.02,243,1688454000"; d="scan'208";a="444379670" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2023 17:48:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10829"; a="808631440" X-IronPort-AV: E=Sophos;i="6.02,243,1688454000"; d="scan'208";a="808631440" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga008.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 10 Sep 2023 17:48:55 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) 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; Sun, 10 Sep 2023 17:48:54 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Sun, 10 Sep 2023 17:48:54 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) 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 via Frontend Transport; Sun, 10 Sep 2023 17:48:54 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.105) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Sun, 10 Sep 2023 17:48:53 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MRi4a7Q+ZVHakMDjQQtI7GNXmhkSsZviki6ge1Gck8/deBKWhsRqCuGZmmSdfiWKQ+CPayQEDfvDEyGk67OTA4+Wc+owSWZ9z3UK3NZv0ZjsvlFYykf7Y6wpXTVlaJdoi3l4dW8uS/0QLpLvM1DmyFbdqLn09WQBgEoaE1mQybeCUJrJX8bk78sOC2K/RSeQ9Ivws7S8GAPprF22gx9z37mgUhVW9aT5Jnff390yENPrDANnkgeY8JN7sTobG0sFNOIMNc8GHvG02rYg4EnPKUvWmk9hCnDnxBu7H3zMEfj/LdSx3OznzW0ttOKoijksUc59LA+PY65O63gxmw/qQA== 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=3Ds2A2X03Ia9rXu9PMA4HHFpdJfTQ8kN4yZOzTh8Th4=; b=A1IfsXRyGvX3Bfy9ksb87y2VgvjKUp+JrrnpCa1xwmSioMNI64bSmiwTDVbI9CX/t+H+0DdYA2p6bGzu765xxscex/VxViRZyvUpiDDjFLMNIzbPfQUHnzewHSqwRXOg/PjNCvUuhbBm+9AAcMpXJ1OefRiu0nYJ5KfwMChzG3JZjXEP/UbJLecnRyecduO+al6NiCZH3UiS2wdHRrk8aLhHbdDh+FDhXDrLvyJ63fENvV5wY6U0pFNdLb1GLpsBswCrm9+Ed0r4RPx9htOmg+Zocl8dBR4y7h5fFa+11HPkoTgQdnAr+6tbld1ixnLMdCQpdDGWEXsW32gPJ+c9sg== 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 MW3PR11MB4587.namprd11.prod.outlook.com (2603:10b6:303:58::7) by DM8PR11MB5654.namprd11.prod.outlook.com (2603:10b6:8:33::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.34; Mon, 11 Sep 2023 00:48:52 +0000 Received: from MW3PR11MB4587.namprd11.prod.outlook.com ([fe80::2ca6:1915:b67c:139]) by MW3PR11MB4587.namprd11.prod.outlook.com ([fe80::2ca6:1915:b67c:139%6]) with mapi id 15.20.6768.029; Mon, 11 Sep 2023 00:48:52 +0000 From: "Wu, Jingjing" To: "Qiao, Wenjing" , "Zhang, Yuying" , "dev@dpdk.org" , "Zhang, Qi Z" , "Xing, Beilei" CC: "Liu, Mingxia" Subject: RE: [PATCH v3 1/9] net/cpfl: parse flow parser file in devargs Thread-Topic: [PATCH v3 1/9] net/cpfl: parse flow parser file in devargs Thread-Index: AQHZ4KVZ2zXLXx85ZE+Jh2a3J6ElGrAU0TjQ Date: Mon, 11 Sep 2023 00:48:51 +0000 Message-ID: References: <20230901113158.1654044-1-yuying.zhang@intel.com> <20230906093407.3635038-1-wenjing.qiao@intel.com> <20230906093407.3635038-2-wenjing.qiao@intel.com> In-Reply-To: <20230906093407.3635038-2-wenjing.qiao@intel.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=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW3PR11MB4587:EE_|DM8PR11MB5654:EE_ x-ms-office365-filtering-correlation-id: 5e1cdda3-d26e-4ffc-2155-08dbb260de49 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: lfoKS4EA0ykwW+/XM8ixc3FQroYKQXCocuPa42+p0Q9YMuOMKRMaWMqGt69JDnaffBjBU88nOMlBt/qrXddPkjsF7L1bENB++fVyVsw4yE9/ELCLqiFRjJ1gWdg2kQg50ivBIEE+smgGvjAH0WB7RJ/UYdetJJEKrNoB+/6sJWnHGYY+cP54CEG7jHSVnfrTKUyYHi+Ff1E6j2V8RyUm/mYqi2QIsd633s1V3tdCsoBcSBktSF8CXIJLP1yPBznd9GELqSNoPu0jrBr4kqcn+02fcEYg+t8Dj2Q56ivPwZFEVxL3qlcblVK5Wc2Ol5CVLLiVi7Mo8+AadzXUjBklS89AauY1Q+v9JZdOzVLZugMlYtXCWcv1dSTULvBBMwdn3cQTCU+U0sueaeijIk+ejE6Cp/+OdTYV8eLciZAG4/BY4m6brzIQnta4t59Xc2lCxG3Yozfn6zEyw/CeDYBEEAmLzgiKERpZnX54r/tOSpebtwsL+FR6NMWIMUPHMtea9TZ5+ivkqcyfgyUxY+jIwESbOS7jxY9tuvibHyK9xgYRd5PmWiQoGtsBycBXlIxf+4V+fc6EvlW6ii2o+tXFW1FBltcPUnAOtP7HO1xxPMg= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW3PR11MB4587.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366004)(39860400002)(376002)(136003)(396003)(346002)(451199024)(186009)(1800799009)(122000001)(71200400001)(53546011)(7696005)(6506007)(86362001)(38100700002)(38070700005)(33656002)(55016003)(82960400001)(107886003)(2906002)(966005)(9686003)(83380400001)(478600001)(41300700001)(110136005)(52536014)(6636002)(316002)(76116006)(8676002)(8936002)(4326008)(5660300002)(26005)(66946007)(66556008)(66476007)(66446008)(64756008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?T053dfIgzRuR5JuurHLDdnUA0fvpkE8k8G9M8uvKN02WLD/ShN9uSrfEXeMq?= =?us-ascii?Q?BXVKdmjYGqCGiCTCGkMVqoib5fyJdFPBbBng0GoYTxCseUnuqURKmzIzT9/u?= =?us-ascii?Q?Cr48YLBb4G4/lpb1Sa9/pF1eMBVoUVNVULnwpWHqNvrmjGHBr+//8gga61l8?= =?us-ascii?Q?5dBamGUhSTpKsyNr/JWBwPpLfxQJT06e1kUjDFqumdfQm5yb+vWIUKvuqTh6?= =?us-ascii?Q?YKQVnTxIH+7W9PFUX6OZbX+v+oaG6TtqSdmMSVjPlX4N/zOB+q6NZhqVZAQ9?= =?us-ascii?Q?+RkAtxz2t9xv6rU5azAiMgvfBamkDkYbtuU7bvTN7fsY3NtzHS0guk6YCLsD?= =?us-ascii?Q?b9OWpuR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tAFyOhmSFnU?= =?us-ascii?Q?PooFImrcbDGj1QM2KFq2HTx1Oy/XHdsVKrswYser9diEzMXPp5SRIbGYD4ZW?= =?us-ascii?Q?MJKvpW/A/fr4IREGNL4CJoURjzJLsZnxMsS0+fRtYu+IQmEtfLkO8KlaDHTb?= =?us-ascii?Q?izyQbC2FU2SX9iJL3UJJlKgJZ8K/Haf6zJH3ITD3gG4I3cJOtKbyYjLlstmh?= =?us-ascii?Q?rAjOsVxjH3Oeswbla6MKUjNose1irZvyXOI7egTM290+/YUYJaWQDYAFN0K9?= =?us-ascii?Q?w+b5YUSQBJW1WLieV1yzAH81XcLO5zSrERA+JrarqavQ7cNvIcs0j23M7ri2?= =?us-ascii?Q?mTuUb/iIUwS37xvwMvzriwuiPdHez/Jp4kdyWk1l?= 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: MW3PR11MB4587.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5e1cdda3-d26e-4ffc-2155-08dbb260de49 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Sep 2023 00:48:51.8791 (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: L3h2BCH/OWPRkpUFQ4pAf4h0U6CWy4NLJZg5o9Vzt+tXXaR4ks559WK0vgsLlcV93OekhmAnJn6CAfQOK04BxQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR11MB5654 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: Qiao, Wenjing > Sent: Wednesday, September 6, 2023 5:34 PM > To: Zhang, Yuying ; dev@dpdk.org; Zhang, Qi Z > ; Wu, Jingjing ; Xing, Beile= i > > Cc: Liu, Mingxia ; Qiao, Wenjing > > Subject: [PATCH v3 1/9] net/cpfl: parse flow parser file in devargs >=20 > Add devargs "flow_parser" for rte_flow json parser. >=20 > Signed-off-by: Wenjing Qiao > --- > doc/guides/nics/cpfl.rst | 32 ++++++++++++++++++++++++++++ > drivers/net/cpfl/cpfl_ethdev.c | 38 > +++++++++++++++++++++++++++++++++- > drivers/net/cpfl/cpfl_ethdev.h | 3 +++ > drivers/net/cpfl/meson.build | 6 ++++++ > 4 files changed, 78 insertions(+), 1 deletion(-) >=20 > diff --git a/doc/guides/nics/cpfl.rst b/doc/guides/nics/cpfl.rst > index c20334230b..7032dd1a1a 100644 > --- a/doc/guides/nics/cpfl.rst > +++ b/doc/guides/nics/cpfl.rst > @@ -128,12 +128,24 @@ Runtime Configuration >=20 > -a BDF,representor=3Dvf[0-3],representor=3Dc1pf1 >=20 > +- ``flow_parser`` (default ``not enabled``) > + > + The PMD supports using a JSON file to parse rte_flow tokens into low l= evel > hardware > + resources defined in a DDP package file. > + > + The user can specify the path of json file, for example:: > + > + -a ca:00.0,flow_parser=3D"refpkg.json" > + > + Then the PMD will load json file for device ``ca:00.0``. > + The parameter is optional. >=20 > Driver compilation and testing > ------------------------------ >=20 > Refer to the document :doc:`build_and_test` for details. >=20 > +Rte flow need to install json-c library. >=20 > Features > -------- > @@ -164,3 +176,23 @@ Hairpin queue > E2100 Series can loopback packets from RX port to TX port. > This feature is called port-to-port or hairpin. > Currently, the PMD only supports single port hairpin. > + > +Rte_flow > +~~~~~~~~~~~~~ > + > +Rte_flow uses a json file to direct CPF PMD to parse rte_flow tokens int= o > +low level hardware resources defined in a DDP package file. > + > +#. install json-c library:: > + > + .. code-block:: console > + > + git clone https://github.com/json-c/json-c.git > + cd json-c > + git checkout 777dd06be83ef7fac71c2218b565557cd068a714 > + Json-c is the dependency, we can install by package management tool, such a= s apt, can you add that refer? If we need to install from source code, version number might be better that= commit id.