From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40072.outbound.protection.outlook.com [40.107.4.72]) by dpdk.org (Postfix) with ESMTP id C8FA31B1F8 for ; Wed, 2 Jan 2019 10:43:19 +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=glnTgPkQdXbq5Mn6QGIydW+dPcMjDKpjk81VJrvZqWc=; b=ToqKpVVFq0BA9LamNem3gYoOgN921hjJbHy3hhNBP/z/iPYZ0Xbwn0VIPWJcXzw15OnB6YQEqO7NvCw1iVK5eW00divdpNEk9TQiyFmkWoK2hJd0bnEJZJnqqAuZEzo2ZwxJoq4jzfkzzstD3W7fpBnpkVfdcRP+nb3r9cekLc4= Received: from DB7PR05MB4444.eurprd05.prod.outlook.com (52.134.109.21) by DB7PR05MB5415.eurprd05.prod.outlook.com (20.177.123.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1495.6; Wed, 2 Jan 2019 09:43:18 +0000 Received: from DB7PR05MB4444.eurprd05.prod.outlook.com ([fe80::6d18:42b9:26fe:ea2f]) by DB7PR05MB4444.eurprd05.prod.outlook.com ([fe80::6d18:42b9:26fe:ea2f%2]) with mapi id 15.20.1495.005; Wed, 2 Jan 2019 09:43:18 +0000 From: Mordechay Haimovsky To: "dev@dpdk.org" CC: Mordechay Haimovsky Thread-Topic: [PATCH v3 0/3] support flow counters using devx Thread-Index: AQHUon+Xw9SrbBh/PEitWoDCGVn/Fg== Date: Wed, 2 Jan 2019 09:43:18 +0000 Message-ID: <1546422185-30813-1-git-send-email-motih@mellanox.com> References: <1545949196-3355-4-git-send-email-motih@mellanox.com> In-Reply-To: <1545949196-3355-4-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: LO2P265CA0218.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:b::14) To DB7PR05MB4444.eurprd05.prod.outlook.com (2603:10a6:5:1b::21) 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; DB7PR05MB5415; 6:RZxr4mcNlAY3gRQRQM+xxuUWQEOmxexAUKZXLXtdsjaYF9+UeP5Lag406Wx02IEoh6tykUP+WbMUWdCoYCl9hTQ/4Tw92Y1ip9sJdNLHucqPJDAtX1F+F2te8BeK+mILvRyD/KGcd3N0syBBvfdgSeDH3n7qy+rsB6m5X9gno3/7KIBeDofXOeV0ETZJLiabXvs9ANZRwNTM/Om9a4sy+bR9KgtSBS6N7dzDNysRng120jOsPaKIr7VOk6bfKUrJZVT27WYzEAFBN76gT4C+4+MX2BZzCU8Q4bgwSZEcKrzEjfsZiIRAP/guXz53DcgPD/NxhBdU0+N0ertY58fQz2KMHQ75/WEmk/ophiOQ5K6CTybtRB9nv5cFR4nDDRIt7X3RORUcblhfpPooxYyhEl45r6tUwuSRZMBCIypL7Pz/TG9BrCrky6MCLQ+G5BSizwHQzjoGRiDR5ft3VqO2TA==; 5:r0BNUUC772ekDWU5f1OF2aWzowMk0BlRrYXTn/o0+aIYrEQtFlKeG5G+U7VYBJMSkMwnrjrBZzPlPr8aJ4FeezNVYEksLFLLuMb/5XZ/9QsY5uw6IkP6qQZB15Mi50D45uCJyvHpS3D81T1i7vUSWy5Utsm4FpiyXk0tUFjv9mOaiT3icCwlJgv9Eh9L0BRG4cRkaoGeb7SuPaaRywlejQ==; 7:gP0uYUdeHxkuLhmge5CEN7yr08Vcpucev8MUenRhJXcG/HRsnFxuS0t5gQHWkUyVq5baCU4XAIkkff/6EqYOBXBfwgp9cGouY2LdUgvP7I6DR9K8UN7pePx/4aSqhNg5HOJTTomj0ffoYUA3vFWtmw== x-ms-office365-filtering-correlation-id: 121b1aef-05e2-4c58-3274-08d67096b947 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB7PR05MB5415; x-ms-traffictypediagnostic: DB7PR05MB5415: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(8220060)(2401047)(8121501046)(93006095)(93001095)(3231475)(944501520)(52105112)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:DB7PR05MB5415; BCL:0; PCL:0; RULEID:; SRVR:DB7PR05MB5415; x-forefront-prvs: 0905A6B2C7 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(39860400002)(376002)(136003)(366004)(346002)(199004)(189003)(476003)(8676002)(6436002)(81156014)(8936002)(6116002)(3846002)(14454004)(2351001)(68736007)(6486002)(2906002)(5640700003)(81166006)(107886003)(4326008)(7736002)(305945005)(25786009)(1730700003)(6512007)(5660300001)(53936002)(6916009)(66066001)(99286004)(2501003)(36756003)(478600001)(86362001)(316002)(256004)(386003)(6506007)(105586002)(26005)(102836004)(71200400001)(97736004)(106356001)(76176011)(52116002)(446003)(2616005)(11346002)(186003)(71190400001)(486006); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR05MB5415; H:DB7PR05MB4444.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-message-info: 7XIUHTt4P38xikvZPz/qd/6uDPoBii2WUDx3fdOosK018vn2n/Wr3ItQnKbUaWfFp+lJxruzSI9PzoYHFFPztwXLMVqUtDWZoXP8RrHkLa0NqChmo04aTCArA0H6Bf5iKcGvzkyJ7zCeMh3VN42L/pcO8oAtg8E+IyNFKVjoi+Wv055rYNvr0x+8TgI4MgNAfGcnmnyssx7pgCFl/zQSQ+d6e8v7FFHRPzozf72YctKokUbs6oYrhFzXavXTRS83oa+hPXvaLIdut8usgbmW3NJDQ78B0eilFWM3kV4CBI6K6xeY8TYOzXakOb9tyDVE 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: 121b1aef-05e2-4c58-3274-08d67096b947 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jan 2019 09:43:18.1922 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB5415 Subject: [dpdk-dev] [PATCH v3 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: Wed, 02 Jan 2019 09:43:20 -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: fix 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 | 5 + drivers/net/mlx5/mlx5.c | 16 ++- drivers/net/mlx5/mlx5.h | 15 +++ drivers/net/mlx5/mlx5_devx_cmds.c | 107 +++++++++++++++++ drivers/net/mlx5/mlx5_flow.h | 10 +- drivers/net/mlx5/mlx5_flow_dv.c | 232 +++++++++++++++++++++++++++++++++= ++-- drivers/net/mlx5/mlx5_flow_verbs.c | 14 +-- drivers/net/mlx5/mlx5_glue.c | 98 ++++++++++++++++ drivers/net/mlx5/mlx5_glue.h | 19 +++ drivers/net/mlx5/mlx5_prm.h | 71 ++++++++++++ 11 files changed, 576 insertions(+), 22 deletions(-) create mode 100644 drivers/net/mlx5/mlx5_devx_cmds.c --=20 1.8.3.1