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 AF29FA034C for ; Mon, 14 Mar 2022 09:48:10 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 964C14114F; Mon, 14 Mar 2022 09:48:10 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2058.outbound.protection.outlook.com [40.107.223.58]) by mails.dpdk.org (Postfix) with ESMTP id 1F90D40DDD; Mon, 14 Mar 2022 09:48:08 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PfY1NiVvBAeLDS3VUQmpsaWDuHQ/qoSxhRSG08SF24CHC/JV7b0qKLowdt6F+TWjfNWs5VL8AW+FbuZynpRP0Ozbud0cBztjZDT4oPHc3eCDGj+HE9CGjthSIWPtihyHagFIbP7fSIun77cCCjKycwUakS7o5pIXKVYsOIl6FVG6Zqi6DdoN/OEQ+LJ2FHnD5IoiUkTiMm9onQSVWRvhXOujOvHjYIp4lpvEBo7OSmNjhVBhHN6cGjKX+/xSiXKtTUHEBovTxRG7WJl+aGsfkvfbDO/wssq1ziJf/633hIVzp2IKYcxyOqka0jWXVh8g/SfB+JRnOyRTvePPfmKGAA== 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=m4vluOt4TM0CWfMa9hwL82sl8D9lpek9xeBMIVdcuQ4=; b=CaMfcTBlY03kja4oWMqA9UaflYcpJAmEiUbgugr2Z5f+0Xls9xby8Cp1XiqZa11lIboM00nBbuRO4VAqUVpcZ4BvXXW72J9xt8N0O7M8TyrbjuAi0ZwaJ3jBFAyGF9lMof/O0OLJo2JXlC+Vm+cpctX3Ugjknh+KEi8s1lmvwFTTrmi3nlOzeiNe53CE6161rGfm8yvMetKky0YCQ9oPmgCKOIoZHfdPqk/pxE/WnFQYOZH1EVS2/hx36G/K+OTwZZ1OmIdGYxoK+ixed2VJVn2CbOZNkW7Xd+AcvvJ3RHTCkomZ2TSgou6U+XjztQvDr9XUvuTAlA7trXJJS+lFHQ== 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=m4vluOt4TM0CWfMa9hwL82sl8D9lpek9xeBMIVdcuQ4=; b=HpsOh7VEVSUd+vDXOScqB23E8A9I6x9tBBPkYP2Nh0OV0lWkfnDdK5IPARX0vVKbTvMmolVExqIBZOGO9Kah7jIrcu+XMisF7Zg53ZksFOwzaeD1JKH0t0s9bfelqAyq5qnmxSlU49hf3o9xjoUhOGW5f2By7WIPwh27oXIWKRRqrToY3okHkJO2mZ1IbOInbpiD5lpbm7eo1yvzNGNOrFMpG389l4HsJSsTbeKgrn4CIeZjmdveml4+8ijhDx3UF9KoCV0Yr9hLctb4MyIVheqEvfMRZYXaNCzeZdAMPqZxHc1Shl1Err9BVddf8C0abDJOCLM90x8Adc/YynnSsw== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by BYAPR12MB4984.namprd12.prod.outlook.com (2603:10b6:a03:105::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.26; Mon, 14 Mar 2022 08:48:05 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::30be:23f7:868b:5cd0]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::30be:23f7:868b:5cd0%7]) with mapi id 15.20.5061.028; Mon, 14 Mar 2022 08:48:05 +0000 From: Slava Ovsiienko To: Gregory Etelson , "dev@dpdk.org" CC: Matan Azrad , Raslan Darawsheh , "stable@dpdk.org" , Xiaoyun Li , Aman Singh , Yuying Zhang Subject: RE: [PATCH] app/testpmd: fix flex item input link parsing Thread-Topic: [PATCH] app/testpmd: fix flex item input link parsing Thread-Index: AQHYNEQfKh3Wh2vhvUSi0LQu9ncDcqy+l9Ew Date: Mon, 14 Mar 2022 08:48:05 +0000 Message-ID: References: <20220310055953.32380-1-getelson@nvidia.com> In-Reply-To: <20220310055953.32380-1-getelson@nvidia.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=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2599e181-8d87-4b00-6412-08da05975b62 x-ms-traffictypediagnostic: BYAPR12MB4984:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: MzI1uoNoSVPLZkwK8Aex3ViHhRsTTVjpxziUyWhele+Wt/pAGdw3IiklXjv4cgSdHenymW+mZI5llFiGp9vdAW4UndCzBDFIdc8QmS4JhTlrSsQvB7jDgLJvaErL2ovjHFFRRI4kjrmow1gIZpa8LLaKief2rk9Au7npfggksrmB6BU1mCrhK8JS1kveDPzcFntoOBefqHyfkRHrXWgEbPhHpffkT++q2y931t3k/sSeniJ80h9Tx6UoEK2U7Zw2MH/FV1bw4tsBGrbp4vXbgETQVWrIlW2dCtPIyP9AUaG10prP2B+Q1DLSgtY4xqZaZS37kjSNmoY8ppm3oJOrYHQXhO3FC7nKlHf6+28Jl+9Xl/6YQUe3YQpCKpEbtv9TgWgwHImndgwtSZxzuen4/SVOYrKLrV88sKAckOjLAQcUS8mn4D83J5hA/oHmDF7qP93i1lDcrWB6yGP9rIOROUNBXAitVyAJe6fzINJxjUWbb8XO3jIxS4qQcP1l06AevBCrhAIbtfVGOiQPIqzAXsbAQ0tlhSeD17LpayVt9XIh95GdJ9Lb74dxf6yr9+S9j6EaDsZ4V4z7Q+vyZznDIOmpnbcGdQ+0BBZQykCYgpUMaKjBN9czNfw6Madp7jyiCfxh3hh6YtNFjoD5KzKKkUJn6f22+aDokIjhvJ7ASZNfPW21LPkqqyHZ3eN6mkRQmu2uz3IETXOKy2yrX0GQbQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3753.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(54906003)(53546011)(2906002)(110136005)(76116006)(316002)(5660300002)(83380400001)(26005)(71200400001)(55016003)(186003)(9686003)(7696005)(6506007)(38070700005)(86362001)(64756008)(52536014)(508600001)(33656002)(8676002)(66556008)(66476007)(66446008)(122000001)(66946007)(8936002)(4326008)(38100700002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?uq8m536PWw9I3jLot6/VkL+aRooM6auvN1pD31pf61F6qdSp0c7/at0dj0B7?= =?us-ascii?Q?5s4SgTdY0p9ytRhNiMCPI8UEWfUP4wEfGgsYtOmMApLtlJuAFmTKjpinWuFN?= =?us-ascii?Q?2fQiiqzFET/Ltn6Us6YeKMKcBVuq0LZbqksSgusGRgpS8nphJPdcOyNNqzhC?= =?us-ascii?Q?p4jaZo9M8OEKKc2ed7oxTjxurrwyfPx2WiSJ638I+bE+HWSKaDiJNuAyZTLg?= =?us-ascii?Q?SzRhw/QWiGeQ8NQrc3yEZ/LOWxJf5MrhsT4tz5NFHQUjbV2zUxZImgcMuQwi?= =?us-ascii?Q?nlw7eyXor/s7RyIEHPSCas1N4qNgecpS7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5py29JP7/weLKU9qOX/r7daU/eCA7idbgohMDvXSnN+pdmG?= =?us-ascii?Q?hK4plsgVQgBw9Zwpxz57pgw/PDNdX6FQ9GrC55b/mja3swJuz1C/na8WLsol?= =?us-ascii?Q?MAfEYquTYREAY1VGuIoyUu8pIZfPiRO31GI+tVXZsRtc+VbSr6RjATMVGgeZ?= =?us-ascii?Q?BoYin1dQMYRJbkA60kE4tmIsPB2hHr9r/rCpX1DVseY3ZKbLrNxTki3QajkV?= =?us-ascii?Q?6/0RXqNUS1qFtGH5SjoQ/TR/RMrdIzBe?= 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: DM6PR12MB3753.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2599e181-8d87-4b00-6412-08da05975b62 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Mar 2022 08:48:05.6628 (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: 2zxH5cE5s5rKfw8XHr4U6GC3Ua92t5hSbZSLgMkOrAt+KfMYA36SvJ6vmYhXomI6WuhxuhS+RmFO9JndvNh5Uw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB4984 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Acked-by: Viacheslav Ovsiienko > -----Original Message----- > From: Gregory Etelson > Sent: Thursday, March 10, 2022 8:00 > To: dev@dpdk.org > Cc: Gregory Etelson ; Matan Azrad > ; Raslan Darawsheh ; > stable@dpdk.org; Xiaoyun Li ; Aman Singh > ; Yuying Zhang ; > Slava Ovsiienko > Subject: [PATCH] app/testpmd: fix flex item input link parsing >=20 > Testpmd reads flex item configuration from a JSON file. > Flex item input link description is stored in testpmd flow item format. F= or > example, `eth type is 0x0800`. > The item description is placed into a general testpmd CLI flow rule comma= nd > template and parsed to convert string into flow item object. >=20 > The patch adds the `actions` section to the flow rule template. >=20 > Cc: stable@dpdk.org >=20 > Fixes: 59f3a8acbcdb ("app/testpmd: add flex item commands") > Signed-off-by: Gregory Etelson > --- > app/test-pmd/cmd_flex_item.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/app/test-pmd/cmd_flex_item.c b/app/test-pmd/cmd_flex_item.c > index 9050825a81..78a89c0f8a 100644 > --- a/app/test-pmd/cmd_flex_item.c > +++ b/app/test-pmd/cmd_flex_item.c > @@ -133,7 +133,8 @@ flex_link_item_parse(const char *src, struct > rte_flow_item *item) > struct rte_flow_item *pattern; > struct rte_flow_action *actions; >=20 > - sprintf(flow_rule, "flow create 0 pattern %s / end", src); > + sprintf(flow_rule, > + "flow create 0 pattern %s / end actions drop / end", src); > src =3D flow_rule; > ret =3D flow_parse(src, (void *)data, sizeof(data), > &attr, &pattern, &actions); > -- > 2.35.1