From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DBA06A00C5; Thu, 4 Jun 2020 13:21:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4B1781D5DA; Thu, 4 Jun 2020 13:21:56 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 0C9AA2862 for ; Thu, 4 Jun 2020 13:21:53 +0200 (CEST) IronPort-SDR: AoG9D0fEJiQlwQ5R0GM67BL9q6b40KuXypc8TwAGUOlU+nZTAaT89HBg631t+Ohq/tPInMYaB/ g69681YKdnqQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2020 04:21:53 -0700 IronPort-SDR: kFTZZoI8RyHV0N4dKI7v8UQk3TBfGc6BFjX4Pb5ZekXOvh7lHqjkQNsIqQP9IwiTGmastdqa9I Q7vsyQoiQv7w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,472,1583222400"; d="scan'208";a="294298323" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga004.fm.intel.com with ESMTP; 04 Jun 2020 04:21:53 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 4 Jun 2020 04:21:52 -0700 Received: from FMSEDG001.ED.cps.intel.com (10.1.192.133) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 4 Jun 2020 04:21:52 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.105) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 4 Jun 2020 04:21:51 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZnJohezNvLcpPZRenhsUNFOPSQNyCiocGeGMJ8f/p5gxwxs9dIvium/31pLJTCNxxlzQtPIG6bEHgN6QmlktK/eIewj2KxlKpnv/k1kKudNP739RRrUeQCinv4ru2x2DFM2VjKUopdM+e4+A1B4OsLjfogYQ1ZKv6HqKY2r+z0cqoDQOyrsqAHhs+fo++HQibT1DSMUY/QxUAIKqgZl6SCHg3QqePH6HRSV191UW+nEZNIY5CPeJD2pkSh0uAyYjWD/x+ls3UfHOQYyrWoxgIbcEe0j8BD8w3oe3tyQ28wdK5RYLAkNmGJGKyyARxqUx+mooQj32km7Q/yQ0A/I9TQ== 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=f7Y7TAZcHh9VwCURwNQk0ILi3EEWmvzjEXRyQz6B9lg=; b=je2ywFk7uRRIYMh5Z3gz5MJD4sVr/VawPzTqvNgfNZqIZT6mYHTEfM0aihQlkB9m60h+KOwFvN+YGuTfklfoPbU3ruNeWk7UMflHWf6wJ24LMC2SAhRbjxSxa5K4qi47DxNvcgPJ83ejlBPZrF01dubPTn7lsAIu3+q9xf/W8RAbJhZd2quoREmC/1EHbfGExcSPIBJtdywlPQo/L9QWwMR7KqY2QHEc4ovRhnzQa8UyrB9ghjqRG0SUyz8VXhp/YWOZSlwSpvLK8PsTF/WlFTvbNfT5CLapkGvCDYkOgQ3bolnjoduurNsQfx8bb0jJj+PMWDaR7/wX+9z17UCrAw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=f7Y7TAZcHh9VwCURwNQk0ILi3EEWmvzjEXRyQz6B9lg=; b=PShdQARv3vmMo2Re3mWYaaaFfXYB/hoC+nBPC1ew5gmRYyBzxS3A4ja18V9nSajw+qDWrKuNZyy0LYlK5at0ZwHm/U0fFNR22usKonfjHx6tIN/m9JisBIdiygg3fnBMuan6CIyGzQCJdiI/hBEobtj1dpupyZ/ih+kYNPTg41g= Received: from DM6PR11MB2537.namprd11.prod.outlook.com (2603:10b6:5:cd::16) by DM6PR11MB3964.namprd11.prod.outlook.com (2603:10b6:5:19c::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Thu, 4 Jun 2020 11:21:38 +0000 Received: from DM6PR11MB2537.namprd11.prod.outlook.com ([fe80::594c:1a2c:c256:4130]) by DM6PR11MB2537.namprd11.prod.outlook.com ([fe80::594c:1a2c:c256:4130%7]) with mapi id 15.20.3066.018; Thu, 4 Jun 2020 11:21:37 +0000 From: "Iremonger, Bernard" To: Ori Kam , "dev@dpdk.org" , "Xing, Beilei" , "Zhang, Qi Z" , "Doherty, Declan" Thread-Topic: [PATCH 0/8] add flow action map Thread-Index: AQHWObIyrjTzbIRW7k6IvfVBn2VtY6jH+OgAgABIcNA= Date: Thu, 4 Jun 2020 11:21:37 +0000 Message-ID: References: <1591194009-4086-1-git-send-email-bernard.iremonger@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 authentication-results: mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.151.183] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d037657a-93a6-48a9-1c93-08d808797291 x-ms-traffictypediagnostic: DM6PR11MB3964: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 04244E0DC5 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Vwsr43rC/mQMpoZQIv0fBcYVTlNw60PQ73YocnMbcvtWDNLvHTsEvxAqC3sCyMwNAQK5MgEWZYpOavawhIlSBDw1PMhRv/JKGguvFysskMOdNVzkXKSu68V+7gsG7hKd8wUB34tH4gmB0T6hANCdlx0D23mHClYZpLRUcoUHdTkm7KdDu56jri8uRYiErokB6C1QFR5ZlyJXJQXZX6sXvmXT63qPdg4SFXBzjx8UfIzfrEYajiS/w0EqCfDd4APo22OKcchHucAQHKimB8RCLCLgsKVOLHxLVA7CRqYJbxZKLwuIiZlMJoD5ZoKo3boYOAQ8WkcpGqFAV+UxeisZDmKPQxgMHXIizs0ITZbiaPgJTvcV4Cud+6IOMl527/Z+96EDhPQgTJhsoeL/2c/bPQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB2537.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(376002)(396003)(136003)(39860400002)(346002)(366004)(66476007)(66946007)(76116006)(64756008)(66446008)(110136005)(186003)(52536014)(71200400001)(66556008)(9686003)(6636002)(478600001)(7696005)(2906002)(966005)(26005)(316002)(5660300002)(8936002)(33656002)(8676002)(53546011)(86362001)(55016002)(83380400001)(6506007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: 3H+z2AJuP39rDe/rUaLWkWACylslzAUUGicrwjuI67QphrN/9oZZNjnQX99Fm+y3TBUkGyJ5MmzpKHrMcI1jbaR5ue35IqzUfA5FNihk6zhzv3WxE4gARcR+N78O+Wzif1on8sYIJBKkMLS78Irnou2MeNnG3QgmtMcnW2X2D1v9GHjdIQKcfjgi/qqp3dgtVx54dUTFICOaA71ivZvQtfLU2mQ58sxstxkPMiyeTwutGzXKEYYJwlzQEI10REqbBWikpIqxY+b69UZC52WsL3ck8yXnvcoN3NkTVkfHDBXugHiO1FvyD1EIb+HKu/qNLvFQK7wC4SqnqczvVS0Y71x+CBUu1qOPb0FCojFHd/zOs8zX0KbIw8pStVaqTxKzxWKWAJKGsHZclEVsHoTkM82DN1RSYJRbjRfDuk6CBfqzSuizL+ANtQumIfcZNcsSz7NSiLKi+nDb9tQ7mDXQf4alWMGAj1pr4gfb5iMm2r407wpC4L5gRiz3zlvibx6S Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: d037657a-93a6-48a9-1c93-08d808797291 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jun 2020 11:21:37.8023 (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: 3MG/hDJwT0F+MUqU4iMU79mZcqhGAfMkTX5jeubw+EM5Nk0K9uk369rM1zL8bcmM4dmSffX9NZd+o1paxFiuMDgMzZV5mi0fWq4yGbi/Lcs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3964 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 0/8] add flow action map X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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 Ori, This patchset is intended to add support in the rte_flow API for the Dynami= c Device Personalization (DDP) feature on the Intel i40e PMD by adding a ma= p action. https://software.intel.com/content/www/us/en/develop/articles/dynamic-devic= e-personalization-for-intel-ethernet-700-series.html pctype means Packet Classification type. flowtype is the index into the pctype table on the i40e. The map action is intended to insert the specified pctype into the pctype t= able at index specified by the flowtype.=20 =20 At present the DDP feature uses the following commands in testpmd: /* map pctype 15 to flowtype 27 */ # testpmd> port config 0 pctype mapping update 15 27 # testpmd> show port 0 pctype mapping pctype: 15 -> flowtype: 27=20 In future the application will create the following rule: # testpmd> flow create 0 ingress pattern end actions map pctype 15 flowtype= 27 / end # testpmd> show port 0 pctype mapping pctype: 15 -> flowtype: 27 Regards, Bernard. > -----Original Message----- > From: Ori Kam > Sent: Thursday, June 4, 2020 7:06 AM > To: Iremonger, Bernard ; dev@dpdk.org; > Xing, Beilei ; Zhang, Qi Z ; > Doherty, Declan > Subject: RE: [PATCH 0/8] add flow action map >=20 > Hi Bernard, >=20 > Can you please explain more what is the pctype, the flow type, What is th= e > general idea beyond this patch set? > How will the application uses it? > is it only for i40? >=20 > Thanks, > Ori >=20 > > -----Original Message----- > > From: Bernard Iremonger > > Sent: Wednesday, June 3, 2020 5:20 PM > > To: dev@dpdk.org; beilei.xing@intel.com; qi.z.zhang@intel.com; > > declan.doherty@intel.com; Ori Kam > > Cc: Bernard Iremonger > > Subject: [PATCH 0/8] add flow action map > > > > Add map action to rte_flow API to map a Packet Classification type > > (pctype) to a flowtype for the i40e PMD. > > > > This feature requires changes to be made to the rte_flow code in > > librte_ethdev, testpmd and the i40e PMD. > > > > > > Bernard Iremonger (8): > > librte_ethdev: add new flow types and action > > librte_ethdev: add map filter type > > librte_ethdev: add map action > > app/testpmd: parse map actions > > net/i40e: add map filter > > net/i40e: add map functions > > net/i40e: parse map pattern and action > > doc: release note > > > > app/test-pmd/cmdline_flow.c | 85 ++++++++++++ > > doc/guides/prog_guide/rte_flow.rst | 55 ++++++++ > > doc/guides/rel_notes/release_20_08.rst | 18 +++ > > doc/guides/testpmd_app_ug/testpmd_funcs.rst | 27 ++++ > > drivers/net/i40e/i40e_ethdev.c | 56 ++++++++ > > drivers/net/i40e/i40e_ethdev.h | 24 ++++ > > drivers/net/i40e/i40e_flow.c | 196 > ++++++++++++++++++++++++++++ > > lib/librte_ethdev/rte_eth_ctrl.h | 1 + > > lib/librte_ethdev/rte_flow.c | 14 ++ > > lib/librte_ethdev/rte_flow.h | 78 +++++++++++ > > 10 files changed, 554 insertions(+) > > > > -- > > 2.7.4