From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20050.outbound.protection.outlook.com [40.107.2.50]) by dpdk.org (Postfix) with ESMTP id 8E5451B200 for ; Tue, 25 Dec 2018 15:38:43 +0100 (CET) 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=db4bO9Uf+GX5DcGSxbkegWUKfDbKI75wKOkSSxQ2n8Y=; b=TRk4kuaHcIt2J074w3/KhMSV5cOVG2EdmHrY0IHV94qPMYLzfwGqTDEJ6siPk0Luwjqkt2Vzbbu+dr2yq8p7HEmXJcpG9+bGjYI+VTPbaJTimaUCE7GEOu05YldN8v9LLRaakVmT6Ygsv3AUh5rKwMwmpXk8x7yGzMTheqj9H1c= Received: from AM0PR05MB4435.eurprd05.prod.outlook.com (52.134.92.20) by AM0PR05MB5169.eurprd05.prod.outlook.com (20.178.18.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1471.20; Tue, 25 Dec 2018 14:38:42 +0000 Received: from AM0PR05MB4435.eurprd05.prod.outlook.com ([fe80::c860:9e3d:3158:8ea]) by AM0PR05MB4435.eurprd05.prod.outlook.com ([fe80::c860:9e3d:3158:8ea%4]) with mapi id 15.20.1446.027; Tue, 25 Dec 2018 14:38:42 +0000 From: Mordechay Haimovsky To: "dev@dpdk.org" CC: Mordechay Haimovsky Thread-Topic: [PATCH v1 0/3] support flow counters using devx Thread-Index: AQHUnF+ILgduBWYObkewbdLkqj5C+Q== Date: Tue, 25 Dec 2018 14:38:41 +0000 Message-ID: <1545748697-3385-1-git-send-email-motih@mellanox.com> Accept-Language: he-IL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: CWLP265CA0157.GBRP265.PROD.OUTLOOK.COM (2603:10a6:401:52::25) To AM0PR05MB4435.eurprd05.prod.outlook.com (2603:10a6:208:5a::20) authentication-results: spf=none (sender IP is ) smtp.mailfrom=motih@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [37.142.13.130] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM0PR05MB5169; 6:DvwJxzBz8GGrocph2Xx8Rs09IlJqxh78mEOfalaF1o0SxeInIs2iwDHA2sp3zazQAQO1Kx2ezHSZmKY9APzj7YYVwy40Q4GO/69LJCeymEdSqwgrms+Ba6F9O6pw/ZZtn97V8ES2VH948wJ7cLj0pq5pT23Y0AM9I6/oNIV6Vc3CGyp7OdG0xcLfg6JMZP0E8WpYDAV5xwCd+RA7Fk/Lct+Flgi45O5/Fpjv+KpkJh07WEZlDJAnP/goSnl6zQ3oYwEGSJxOWxuuA8DYkyEXLs6Up43CpybfBISAFbIJ14uyKsc+q3nZ9w1LhXQhfORXVhBpurZ2YJZtnoW/UTbSqY1Z6+9IFN5f/3YvrP34gDmETJPObyvoOBVqKMsrbENEryIBLAJ9OtB8x+6UJWHT2JWk6TCAVzGpUfl/UWgMJ0WQZUmzJGvuRXjuW+PTzz3L5hdRjTuelSyBtlrVplWIBQ==; 5:ncTuPBK6swLxk6MtHVa8QXCWA/PPyYdxGXD4DU+W3OOwGt5aiiMgYtbRKgiDl7aqJ8d8sQqYa4oYreXpiQa51xkVgk7IsSmsnERZnq1+pbBBuaumTHS+W/3pXBpqAYGQ0hsZafHIZI87FD+XGo8O0IyFly0izUOalogOhe8ziII=; 7:8v1jbB/yJhS9Fh/YdEJV5kcH60RM1JiMx7MDNT7PT7mwWe7C5bnuTiwwo0tTstofwD4Jn1IKpOtr1mZh5lRGvMM1lhSFKmJZ4lRYMkf9BxcgeU3Ca8L+YX7ZUjw603vweY+fzXMhNE2jeTQAZf1RUw== x-ms-office365-filtering-correlation-id: 64e4e039-871a-4e6d-b51c-08d66a76aa2f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR05MB5169; x-ms-traffictypediagnostic: AM0PR05MB5169: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(2401047)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231475)(944501520)(52105112)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201708071742011)(7699051)(76991095); SRVR:AM0PR05MB5169; BCL:0; PCL:0; RULEID:; SRVR:AM0PR05MB5169; x-forefront-prvs: 08978A8F5C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(346002)(366004)(376002)(39860400002)(396003)(189003)(199004)(6916009)(2906002)(102836004)(8936002)(8676002)(81166006)(1730700003)(81156014)(386003)(36756003)(71200400001)(6506007)(6436002)(2616005)(476003)(66066001)(106356001)(105586002)(316002)(71190400001)(3846002)(486006)(2351001)(6116002)(6486002)(186003)(2501003)(5660300001)(26005)(99286004)(256004)(14454004)(6512007)(5640700003)(107886003)(25786009)(86362001)(4326008)(52116002)(53936002)(305945005)(97736004)(478600001)(68736007)(7736002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR05MB5169; H:AM0PR05MB4435.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: XamlhkR7sVwewaPZEAt4GOyYgVQZcZywjDMejY/0WviuVgpCkGzJdtjJEuf+sT7c+hv0np2wpI1vY0CD9pB1QwZm8oJVxTcNu/t6AYYpchuxCtNKvSzAJoFqYouEXn4Fk3QeJbYo+cSYSGFjaRJbZ+wvrYnCSnkbTHbUVVPPaQXXO9VEz0CUZZl/tSz13USB3f5XWtpwXCwZJW5+ZQOq3bsCMX6Xw7Ye2Oks5El2wcKCD45u1mZ7u1Iws9Fr3h7pUak3S6QlD97w3KoYGAtzkVWImbVdDIzCIe8CjvVVt5iezXtz31O1HhpMMEu8kN0R spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 64e4e039-871a-4e6d-b51c-08d66a76aa2f X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Dec 2018 14:38:42.1723 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5169 Subject: [dpdk-dev] [PATCH v1 0/3] support flow counters using devx 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, 25 Dec 2018 14:38:43 -0000 This series of commits add support for creating, allocating, querying and destroying flow counters in mlx5 PMD using the devx interface. Moti Haimovsky (3): net/mlx5: modify shared counter allocation logic net/mlx5: add devx functions to glue net/mlx5: support flow counters using devx drivers/net/mlx5/Makefile | 11 ++ drivers/net/mlx5/meson.build | 7 ++ drivers/net/mlx5/mlx5.c | 17 ++- drivers/net/mlx5/mlx5.h | 1 + drivers/net/mlx5/mlx5_devx_cmds.c | 117 +++++++++++++++++++ drivers/net/mlx5/mlx5_flow.h | 12 +- drivers/net/mlx5/mlx5_flow_dv.c | 232 +++++++++++++++++++++++++++++++++= ++-- drivers/net/mlx5/mlx5_flow_verbs.c | 14 +-- drivers/net/mlx5/mlx5_glue.c | 100 ++++++++++++++++ drivers/net/mlx5/mlx5_glue.h | 19 +++ drivers/net/mlx5/mlx5_prm.h | 86 ++++++++++++++ 11 files changed, 593 insertions(+), 23 deletions(-) create mode 100644 drivers/net/mlx5/mlx5_devx_cmds.c --=20 1.8.3.1