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 D1924A04B5; Tue, 12 Jan 2021 15:58:34 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 56284140DE9; Tue, 12 Jan 2021 15:58:34 +0100 (CET) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by mails.dpdk.org (Postfix) with ESMTP id 04209140DE7 for ; Tue, 12 Jan 2021 15:58:32 +0100 (CET) Received: from HKMAIL101.nvidia.com (Not Verified[10.18.92.77]) by nat-hk.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Tue, 12 Jan 2021 22:58:31 +0800 Received: from HKMAIL103.nvidia.com (10.18.16.12) by HKMAIL101.nvidia.com (10.18.16.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 12 Jan 2021 14:58:30 +0000 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.173) by HKMAIL103.nvidia.com (10.18.16.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 12 Jan 2021 14:58:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PssJORaJvayGwEIPeae4L1nzGY3E+7/nRkycbqVuRSEO6kuu+wNeG4ELNHYsJp6wcWI1e5axQcolvNHB45Ps1AtIhrVWdHiAGL71MrnGdEXyX02uRkC/F0kCEH+F1HbJ6BBwx5iyaKArNhpOeo/EqrDALrEyyKnqllavNnc/Bu2yRnbL2D4FZx3BRZotIxOJ8Msre5+YKf3cQsLNCO5UUJPh6ST7+ly1oT2YIxpDY3+lbjED2vXRekp9CBOe2X5cAp1JkyYX6Tjmh1JKL96ztSwTdO14U8GMwtTqI8HQ49pv3Ydm4mnmx1NtnOND8V7l+XQFPeYKi7WPcCUIXTNeHg== 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=HBWZhK2bNFlvjYYsDIqe9iB/1fNgpYN588+6m5WnVhc=; b=mPT6xdRK4q9WOQbuCBW2WhQu562aUWBAlVkldHcpG2PYXIfQ3/TkUsxGzQoQwUW8WHH8PjguQbJBozcVrU3yAoHGtGtMPWPSflav4eQ1WbsFGj+E6f0z4Cj9O7+8GKcMYks38s6dQ8S1bh6zDad00lDDbD4x87e/cQ7hGg+hDiWBJyMkg+P1G5n7CpVx21ocAwwzAREX5ff2eWvXjFt+7UIP7qUkyIdGmQzuViw4dy1L16xG94Mma4U2qjBCP5D6eHJEzRSmELlsHYcTGScSrXZvfNbo65ueTcyK5l3Vt45FdiU7wzdtgNqbibN6+pz0KGwbHAL74VXMLrQO9JpdtQ== 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 Received: from DM6PR12MB4987.namprd12.prod.outlook.com (2603:10b6:5:163::31) by DM6PR12MB3579.namprd12.prod.outlook.com (2603:10b6:5:11f::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.8; Tue, 12 Jan 2021 14:58:27 +0000 Received: from DM6PR12MB4987.namprd12.prod.outlook.com ([fe80::e1e4:bf73:a753:2665]) by DM6PR12MB4987.namprd12.prod.outlook.com ([fe80::e1e4:bf73:a753:2665%4]) with mapi id 15.20.3742.012; Tue, 12 Jan 2021 14:58:27 +0000 From: Ori Kam To: Alexander Kozyrev , "dev@dpdk.org" CC: Slava Ovsiienko , NBU-Contact-Thomas Monjalon , "ferruh.yigit@intel.com" , "andrew.rybchenko@oktetlabs.ru" Thread-Topic: [dpdk-dev] [PATCH v2 2/2] app/testpmd: add support for generic copy rte flow action Thread-Index: AQHW6J/70bUNFzx3rU+4gSgyVDSM+KokFHZg Date: Tue, 12 Jan 2021 14:58:27 +0000 Message-ID: References: <20210108063234.7679-1-akozyrev@nvidia.com> <20210112050110.1987-1-akozyrev@nvidia.com> <20210112050110.1987-3-akozyrev@nvidia.com> In-Reply-To: <20210112050110.1987-3-akozyrev@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-originating-ip: [147.236.145.126] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9babb01b-303c-44c4-1364-08d8b70a84c4 x-ms-traffictypediagnostic: DM6PR12MB3579: 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:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: jwsjjLzgiVfcTOFfAwRXO+qA83Fr9K6vpR/GwpUhlq5l/5g/mD5oHiNC6GOodDcQCwK2UqrPC21d3rIdj/ntuTghqbWCwERxv1v0RnE9obzKdV9QhVxvgHElKLNIcRFtIBH+xo0TS4xGt10pfifkacC7H3LVEcLu+zaeMrv+9SzJMn7TwUptGiLg4+uMenUdMf6jQqyDogUw1AHqW2QO+Dd8UWapZXCcbq5AJCJBYiWvgCnoPBSlrvJFsUcJae3GE/hvoei/VmKo6ls/emPsvE9iUgT+pMNyA8UdvxufFZv3gnAmv5Qq7Oai4evUa/d0nsm4KDOWxEeknzuf0FjoztZVWk9IXXdYRq8fe2kbKXSIvtCL3fg51XXEDDWsm8NHmy3a4VM0GZ3le5FJzlK+ymp0u0Ffv8CzO6u5W0eaJjQ8bK73oHF5dxkTVwRR9rcA x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB4987.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(376002)(346002)(39860400002)(136003)(396003)(8936002)(55016002)(83380400001)(26005)(86362001)(54906003)(8676002)(110136005)(33656002)(478600001)(66446008)(76116006)(186003)(4326008)(2906002)(66946007)(5660300002)(64756008)(52536014)(71200400001)(6506007)(66556008)(66476007)(7696005)(9686003)(316002)(41533002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?23x1b7uLyqZdc4sYQ39geBNgWmXvI+cgdxeCVx092UyfvLwStFl9uEW74pQE?= =?us-ascii?Q?OV55O3PdkFUdJhp+45pdvoLixr2JVb8sjL4dX4i0EYVZ8d/CYaXcGCKzu6t/?= =?us-ascii?Q?vdPr7L5u7OQdvr2/b58CfwgmqpY3EH+G6pgVNNYZnJpdtcwXbHecZ3ZTjNOL?= =?us-ascii?Q?k+So0NU+O9vS3si4EjkA14D3AfSSjkWcq0pmimxsqcZ/GUUJukhvbkuDafFN?= =?us-ascii?Q?4rhpq/Ao0odHo/UXHXkrKAbPqtebXL2VAKdcKiDwNnf0Nmjv92iNrTgWCiS7?= =?us-ascii?Q?bWmzg6+9MEIb4kq1/J7dWBF14vM9vRAT8DNZXdgN0QPwY22XsD6zUXdaDeiz?= =?us-ascii?Q?NDmzeQ1H2tR9mhb1hZH+Y2hYrgockH4mNYz+9av/JAjyELVd5zdEFIprdpC0?= =?us-ascii?Q?nNsHQ2QiyU8fGU8FUdaJWnX1XPnnIdSZZshw1S8+3edRXOiqTOfK4iNaFyqK?= =?us-ascii?Q?vmpwqMxKxP+JdUvjaeGjgb8V+vKCdphH/BH0Ra7yiFCg7y/lu0q39WpkBoej?= =?us-ascii?Q?lMIV/muXSAhzFEhDXM0cGIlTHZLs78rADw9HHH51jtRzrzTE/PS/Zh6n8ODw?= =?us-ascii?Q?c3BfyQRrrN2CN8qtf0Xm6HhURMqIb66C+MWinSvh0wthYuLJlbJqiGRIEg9C?= =?us-ascii?Q?T3+noDVdtR0qmXbGPAMhg4rG3TXc3ilhSwLk6GOdPQ40HQe/+UaTTHPw2+gB?= =?us-ascii?Q?Pj1nMGbCSf61KpshQ4everBTazo48fLK84OU7mz8dgESJIg99EenU2YcBgWu?= =?us-ascii?Q?3UstLnlLvn5uepOoMeirO1pxYncjdmZdBEijU0X6lj/YRw6jxJYEJqq87yZ4?= =?us-ascii?Q?P0DsmEErPQWX6/C6k0p4rWxXOblo9JYMWSTEk9wxfXuH/ldcKNPlDOMP9wxM?= =?us-ascii?Q?xytongDWeCO4MwZlOVlhXisgcFoRTk0eClWnPEk+Hi2lCmo30+4mNDEOR5sS?= =?us-ascii?Q?KeB608gbqMwN7hPf26h2bOs3IabTvsVGDftgGDMRztI4cfjE2V8R51w+0ORL?= =?us-ascii?Q?KkoG?= 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: DM6PR12MB4987.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9babb01b-303c-44c4-1364-08d8b70a84c4 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jan 2021 14:58:27.6984 (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: Qq4asgfCL2V6w4xrRPT0kIg+pKR37EPBMkWSavC63RTuJtjO/zY7Km/Zi5Qjw+H3la3cXuhoyr3dMU7suJnxag== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3579 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1610463511; bh=HBWZhK2bNFlvjYYsDIqe9iB/1fNgpYN588+6m5WnVhc=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To: CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ld-processed: x-ms-exchange-transport-forked:x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers:x-ms-exchange-senderadcheck: x-microsoft-antispam:x-microsoft-antispam-message-info: x-forefront-antispam-report:x-ms-exchange-antispam-messagedata: Content-Type:Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=hd0LrW+vrFrEWlvXOF6Zu3J4Kl0T+cPHXxt3irbmbjqCQPWB64jXbzM1Hi8v3M81c YkTVjPKp6EpiLauhz/QWP33shRzVvoXnFps3aQaHuqizzj+hXsZmEfM7ZZ0nzNvdVE sVVoPM/M5bSR1X3bCKcTJCsztsUjvZBT4LPAadFmD90vKx+fy58AhoBtCwFBSiSg7A bOf/Jr2uNSCPKbeF+S8fHsaANCDqyCFFlkDVQ0oqbuFqJY8+BYEs3AZhsaKEHd98V2 wD/f6/YVtuBm398RZp/ivRnV4mQcWPd2EM34OCcRxoAe+sJEs4tKgYxEaiVULfHXaT 1TsKCWIlE2hqw== Subject: Re: [dpdk-dev] [PATCH v2 2/2] app/testpmd: add support for generic copy rte flow action 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 Alexander, > -----Original Message----- > From: dev On Behalf Of Alexander Kozyrev > Subject: [dpdk-dev] [PATCH v2 2/2] app/testpmd: add support for generic c= opy > rte flow action >=20 > Add support for the RTE_FLOW_ACTION_COPY_ITEM to the testpmd. > Implement CLI to create the copy_item action and supply all the > needed parameters to copy an arbitrary packet field (as well as > mark, tag or metadata) into another item. >=20 > Example of the flow is the following: > flow create 0 egress group 1 pattern eth / ipv4 / udp / end > actions copy_item dst_type tag dst_index 0 dst_offset 8 > src_type gtp_teid src_index 0 src_offset 0 width 32 / end >=20 This is a long command, and for most cases holds to many extra values. I suggest to allow default values, meaning that the application must say the src and the dest fields but all the rest of the information can be extract from those two parameters (offset =3D0, len(field_type). If the user request he can add those parameters for more control. > This flow copies 32 bits from the first Tag in the Tags array > into the outermost GTP TEID packet header field. 8 bits of the Tag > are skipped as indicated by the dst_offset action parameter. >=20 > Signed-off-by: Alexander Kozyrev > --- Best, Ori