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 BDCBDA0555; Thu, 20 Feb 2020 08:40:39 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8C72E1BF9E; Thu, 20 Feb 2020 08:40:39 +0100 (CET) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50052.outbound.protection.outlook.com [40.107.5.52]) by dpdk.org (Postfix) with ESMTP id 104FC1B951; Thu, 20 Feb 2020 08:40:38 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LJ+meX7m2pu6nt6ndzY3IKVicF0899R94UQOjsS++ebWQ21GZwJUleJfBRcksHjQdQd+Xq9JSGpwO1IgGI1nYaxA74fPo+qmFENmggkz+H4NYZZNkIf4AIAI/1SQBptvkqzvlaC2EdPZ5TyWXnlOFnk3fh8fyoPa/KAm0CjSGRFzAn8nubVgm4IhVCB/Cx702CwPuYgXeyV8z94ZVllq+lplOqb+6pfSqStUTMAttZBXdSllZXRVc89gC6rqLEHuTM5UaIUcheK5Ji2Fi0U9HvbrQBq42v21dJ4KSL8mGCx3CeL/OtC2tRHz/hun8HayZZEz4RoL68tbkfCDbH979A== 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=CDJ4qDzURjZzmiw6UMeXKQ8LzQUnbS/FjAXwk+iTKsc=; b=PNEZvRqJTI31qw+D868YQLf9j/w49FbLU5fU6eBIfnj14CnVDMqqXyS3ZDvh5V12SmXvixJrh0bQsKBdRGojy7Ue1NPMksFg0J+YMHrss+8e6TjwPXT/Y9VEssaVMA1ZnD6L8gHDuCo98rTDwxmM8ND+zgqKXoawqCVGdnw7YnrG02Rn5f2MniE+bmzN4RyUNR81umwJFYRuKeJ/ahygmZpWBFYvL6gaLZ8lNqPBm1l2OjeoFLfOmq9YPIdBV+NIzHfPpI0GX+r8sYwK40jOQI9kV5hdepHi19Syt2bhc7Ya1XVk594Vs/TSqlYsu3TkJW2N7S2RqPzTOHR33AGNRA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CDJ4qDzURjZzmiw6UMeXKQ8LzQUnbS/FjAXwk+iTKsc=; b=ryUqNsyGkwyWuZHRB2WcR0in30r++kHxcI82OTf7R02NvAoJVtMTX4C4xmM6fe5yNgdRdX/C1kemhOFD6oNgMI4LKaMFtQ+QoqQtmdjDzovMpZE6VtkSh6h78H5v/wngS5DlMU2WO0UcCi9SRXqFVhIWBW6SPtjK4OJdOipz0KE= Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com (52.133.39.139) by AM0PR0502MB3763.eurprd05.prod.outlook.com (52.133.50.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.22; Thu, 20 Feb 2020 07:40:37 +0000 Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::e495:9258:db09:1de8]) by AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::e495:9258:db09:1de8%7]) with mapi id 15.20.2729.032; Thu, 20 Feb 2020 07:40:37 +0000 From: Matan Azrad To: Suanming Mou , Slava Ovsiienko CC: "dev@dpdk.org" , Raslan Darawsheh , "stable@dpdk.org" Thread-Topic: [PATCH v2 2/2] net/mlx5: fix lack of match information in meter Thread-Index: AQHV56JbaN5RheIGsEeLGOG+2d+Xxagjsrmw Date: Thu, 20 Feb 2020 07:40:36 +0000 Message-ID: References: <1582122664-54731-1-git-send-email-suanmingm@mellanox.com> <1582171244-84418-1-git-send-email-suanmingm@mellanox.com> <1582171244-84418-3-git-send-email-suanmingm@mellanox.com> In-Reply-To: <1582171244-84418-3-git-send-email-suanmingm@mellanox.com> Accept-Language: en-US, he-IL Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 806b319e-7e38-41a2-c0c9-08d7b5d82d37 x-ms-traffictypediagnostic: AM0PR0502MB3763:|AM0PR0502MB3763: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtFwd x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 031996B7EF x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(396003)(136003)(366004)(346002)(376002)(199004)(189003)(6506007)(186003)(450100002)(478600001)(54906003)(4326008)(110136005)(26005)(71200400001)(316002)(86362001)(7696005)(55016002)(66946007)(2906002)(81166006)(9686003)(66476007)(66556008)(64756008)(66446008)(76116006)(52536014)(5660300002)(33656002)(8936002)(8676002)(6636002)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3763; H:AM0PR0502MB4019.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hDCVEh89db1CaXwh3SMHO4XJTvINsh2QrZk2wc+CudwY4YhzpH/w9gOagD7dGQJkoV2E1oOjD4/nXI1hA9SkZrPhm/wtfq5mNWA0qOMxWVl3agPwhOz6ncrSvv8ciOZvFhegnyVw4t3+FmEFuDhuS7N2MJ1l5qkTPtv/t9nrS56TZh2wR88wty27ZWIVQkFPi3tE1fqv4/gv7r3ik5iK1rDkXR2Fld/yYupftS3NCjg1c0H2t3hUTMG24pNpbj5LdjNUO81XUd+ZoKCEWfzASe8dcT+H+utN4s4zIZeuRg6vw3z9cPRCbjJy2T10MrHcpSa8oqvkxwJu7vwP8ogQTP7THdYwwKfiTitGU7NLIayHHWxvhILx9RmrH1JWdoMg1ApcBpSviQgfACdT5ceRurQYKYgHeXGVB+BqK3i0tWIrcMxUCxBXYf4xPJUXanYH x-ms-exchange-antispam-messagedata: oDLz3G2eiSPXYf1LIZ+2kCZ6LUKed7vc5TS1GmDdShHVrrhlkhc0f3ceF/MQIMDbtKSJ/TDUzvltF0XsnqnDRBIk5y69pPTVUVUbNe3wwEbKxTzFalG29FciNh6g2sxjD4M5Mf/u+GZ9KefsQBqVNA== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 806b319e-7e38-41a2-c0c9-08d7b5d82d37 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Feb 2020 07:40:37.0887 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: XQ396tGBN9qjLj4iuQOFNJGpDtOr5zEKk7uYFAnPcRdhIgfFjQCbMVuvou3LuiK+uOc9OgbifWnVjIdj4znb1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3763 Subject: Re: [dpdk-dev] [PATCH v2 2/2] net/mlx5: fix lack of match information in meter 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" From: Suanming Mou > As meter flows are split into three subflows each, the prefix subflow wit= h > meter action color the packet, the meter subflow filters out the colored > packets, the suffix subflow applies all the remaining actions to the pass= ed > packets. >=20 > Currently, all the user defined items are matched in the prefix flow. > Flow id tag match item is the only item added to the meter suffix subflow= . > Some of the remaining actions to be applied in the suffix subflow require > more information in the match item, or the suffix subflow will not be cre= ated > successfully. >=20 > Actions require the L3/L4 type in the match items as below: > RTE_FLOW_ACTION_TYPE_SET_TP_SRC > RTE_FLOW_ACTION_TYPE_SET_TP_DST > RTE_FLOW_ACTION_TYPE_DEC_TTL > RTE_FLOW_ACTION_TYPE_SET_TTL > RTE_FLOW_ACTION_TYPE_RSS > RTE_FLOW_ACTION_TYPE_QUEUE >=20 > Inherit the match item flags from meter prefix subflow to make actions in > suffix subflow get sufficient information. >=20 > Fixes: 9ea9b049a960 ("net/mlx5: split meter flow") > Cc: stable@dpdk.org >=20 > Signed-off-by: Suanming Mou Acked-by: Matan Azrad