From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0060.outbound.protection.outlook.com [104.47.0.60]) by dpdk.org (Postfix) with ESMTP id ED1F21B49D for ; Tue, 23 Oct 2018 14:27:38 +0200 (CEST) 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=ZmNPa4byL2efOfNrrkHp8a8wuVP5Ht5rL6Zdm1bdwwU=; b=cMiE4bwC7fIenKOz2WPxrpFmJtYAl/D0r8D8dO5H4WtmlONB+y/yZr5AfEmt9c8DCiEi5utQYtOCPTnULiiH6cwhDJrbcXkRyPjAghT5AX9oOIXI2JxMcmtUok+pAHI4Epe25YlRy9t9YgpNvs3m/rwt7mm5qi7pj+a+t8NPej0= Received: from DB7PR05MB4426.eurprd05.prod.outlook.com (52.134.109.15) by DB7PR05MB4153.eurprd05.prod.outlook.com (52.134.107.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1250.30; Tue, 23 Oct 2018 12:27:37 +0000 Received: from DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::80e:e6b:baf2:d973]) by DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::80e:e6b:baf2:d973%3]) with mapi id 15.20.1250.028; Tue, 23 Oct 2018 12:27:37 +0000 From: Shahaf Shuler To: Dekel Peled , Yongseok Koh CC: "dev@dpdk.org" , Ori Kam Thread-Topic: [PATCH v6] net/mlx5: support metadata as flow rule criteria Thread-Index: AQHUar/eVmb7VHz6SUCAm5AbEsCfc6UsweKQ Date: Tue, 23 Oct 2018 12:27:37 +0000 Message-ID: References: <1540130641-32320-1-git-send-email-dekelp@mellanox.com> <1540291695-46146-1-git-send-email-dekelp@mellanox.com> In-Reply-To: <1540291695-46146-1-git-send-email-dekelp@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; x-originating-ip: [31.154.10.105] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB7PR05MB4153; 6:dayUJ7xrwal3nWMloFiqQFyFFV3koabuncpPR71oMsZMQtlWjNvorVAkix4at9roWtH7bTs+38uBHGLyd331Vsq/cut4yXErh+jVf5wuTP2dHYPJBnPG6U2G7Rp9clKN6y0vPJiPAf1PQYkVvAqQxNin0rwOy3G+zGauoI5LwJJgQWNxfUp7vJ3H5e5dN6yGdLnnPbZbYDuUSmjuip+AuH6iojg5oVVDSFCqDg+Z3FWwYAq1T2ER4+vMStRSaHu265h4o/FJjPmouht4VwcLMUucO2r7INB5EDaX3ulOZ3sJ9NPuiuE6HbQk0GfY86abbepT8XIUp139JxnTgAtt20OOXfBaA6NltK4El9aHIZZA9FlALaAewu8ljc/FziYicOmY5J9rPaRjN6wgcrzxVCOZprcJ9MrG8D9D7wIdUp8AwHYaCjlz6Wj7fUgamfZgw1AYolJtgJq+yU/+ZSkTEw==; 5:ys/gTXLyGmTKDVe/rGpKUpm3weslz6jQpkdbTuutpI4MtBuY3Vi+Fep1y15GEtgTxrjzEmEx5OKlIdcN3CAhxzbEuoRsMbP1qNiFjXX+jjgJTNy9hcAOhqCmT54Ax+TzV8L7kr0vNq/hWGQ7agcKHaqdLRJyYfHh9/DJGp/+n3A=; 7:P11zC7pCxVa5gle1Ov05jNhpWare7zQt0zAze5dt3j81jXVbcvFyXZl+7mJqEIhmtR8Sdg0tFCLJYb+jqraExs7BWaGTeyjUrov/FfIWkOKwvsA5kn/fjs19lSjGVwpz2xpPWkFLO3PZJzjBWwhG5io0vaulK/t85yS7T5M3EB86o2HU5crLXwMkVjdSp3ugYH4R3cM5Fg0v7WKWUd7/A/dTsgPyEN8pMY00QFalHNSzsw4n/aRlnnBEARBx30h1 x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: bdf0077b-34b1-4d45-3a7e-08d638e2eb05 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB7PR05MB4153; x-ms-traffictypediagnostic: DB7PR05MB4153: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231355)(944501410)(4982022)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123558120)(20161123564045)(201708071742011)(7699051)(76991095); SRVR:DB7PR05MB4153; BCL:0; PCL:0; RULEID:; SRVR:DB7PR05MB4153; x-forefront-prvs: 0834BAF534 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(396003)(39860400002)(136003)(376002)(346002)(199004)(189003)(74316002)(2906002)(71190400001)(106356001)(102836004)(26005)(33656002)(316002)(186003)(105586002)(71200400001)(11346002)(5660300001)(3846002)(66066001)(256004)(478600001)(110136005)(54906003)(14454004)(76176011)(6116002)(14444005)(99286004)(486006)(86362001)(476003)(5250100002)(2900100001)(305945005)(53936002)(25786009)(55016002)(6636002)(6436002)(8676002)(966005)(9686003)(8936002)(7736002)(6306002)(6506007)(107886003)(97736004)(7696005)(81156014)(4326008)(68736007)(6246003)(229853002)(81166006)(446003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR05MB4153; H:DB7PR05MB4426.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-microsoft-antispam-message-info: t/50QEZnjoZykoEOEcagAjtkB6GkAMmfnxdTrKbl70ZS6DfxVBqTczDI4+xmDfTPi0wraKEfHMwZ6EgpA2JxQbJfoVsaBcNtBqpG7624rO2Q4O9ve/TU3MvIgxJtPaylfGtNEmD4R2PqqmqOcn8RUrAjl9nkbK5/Bp0dcC4HQzSxeURRhbwMsYZOPIyG0M+kTMB4vaEnvNbOarO8VARrM4+IuoC0MZ4iDKnFMoOxQzUaezXuo/hR1pgRa1zwAZimWVJ6iib+Kx2UxSCQ5rBUFjMgb+Fa5+Z9o2INywZ+K4ZO+fJMzvNmzN3Bi2nziOZg7UBqmU2ajkB+VhGk3uCrC2IVscWXAJFoeofy0vj+kK0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM 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: bdf0077b-34b1-4d45-3a7e-08d638e2eb05 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Oct 2018 12:27:37.4755 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB4153 Subject: Re: [dpdk-dev] [PATCH v6] net/mlx5: support metadata as flow rule criteria 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: , X-List-Received-Date: Tue, 23 Oct 2018 12:27:39 -0000 Tuesday, October 23, 2018 1:48 PM, Dekel Peled: > Subject: [PATCH v6] net/mlx5: support metadata as flow rule criteria >=20 > As described in series starting at [1], it adds option to set metadata va= lue as > match pattern when creating a new flow rule. >=20 > This patch adds metadata support in mlx5 driver, in two parts: > - Add the validation and setting of metadata value in matcher, > when creating a new flow rule. > - Add the passing of metadata value from mbuf to wqe when > indicated by ol_flag, in different burst functions. >=20 > [1] "ethdev: support metadata as flow rule criteria" > http://mails.dpdk.org/archives/dev/2018-September/113269.html >=20 > --- > v6: > - Correct indentation. > - Fix setting data in matcher to include mask. > v5: > Apply code review comments: > Coding style (indentation, redundant blank lines, clear comments). > txq_calc_offload() logic updated. > rte_be32_t type used instead of uint32_t. > v4: > - Rebase. > - Apply code review comments. > v3: > - Update meta item validation. > v2: > - Split the support of egress rules to a different patch. > --- >=20 > Signed-off-by: Dekel Peled > --- Applied to next-net-mlx, thanks.