From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0068.outbound.protection.outlook.com [104.47.2.68]) by dpdk.org (Postfix) with ESMTP id 75AC47D52 for ; Fri, 19 Oct 2018 17:21:33 +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=42k6qchtA1WlmNphgs3egrtNOk56fbzXsg4tudF2WHo=; b=QL9WADwCbLbAg2FVxq0vbaBs6SuaKz88E0BdTtofMFD0MRhNGMXS+ebBsK2fGbndc7C+VtfDKw9USgKAyMoxOib+t+LZbPKhAy9lmxwWofl8VXaCArvNuHYbqFPau31/ryPE6+3BL3W4PS79JvdL4Ohw3r/Fivhp1M/UeNt0Z/Y= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=viacheslavo@mellanox.com; Received: from mellanox.com (37.142.13.130) by AM4PR05MB3268.eurprd05.prod.outlook.com (2603:10a6:205:4::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.31; Fri, 19 Oct 2018 15:21:31 +0000 From: Viacheslav Ovsiienko To: shahafs@mellanox.com, yskoh@mellanox.com Cc: dev@dpdk.org, Viacheslav Ovsiienko Date: Fri, 19 Oct 2018 15:21:04 +0000 Message-Id: <1539962470-10950-1-git-send-email-viacheslavo@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1539784438-29242-1-git-send-email-viacheslavo@mellanox.com> References: <1539784438-29242-1-git-send-email-viacheslavo@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: CWXP265CA0079.GBRP265.PROD.OUTLOOK.COM (2603:10a6:401:39::19) To AM4PR05MB3268.eurprd05.prod.outlook.com (2603:10a6:205:4::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bb73c3ab-f4d9-468f-2496-08d635d68ca1 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:AM4PR05MB3268; X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB3268; 3:CoFzc78woA+S9la9WC/vFvr0cTYjT4KG1TaxAecHPEebvsGthzGQbWGgEE2j/w0lcawQS6YDVgasW0SHFd1wRfytwxvVc9hVE9SCA4u+4xyFf+R7imBYLI+ONqhSEANiIQMzHjc7pX/E8LN0D1tCPKSvl8Q5DN4nWgSoyEmf6dvK1A6cVWLfYx13VcwA0elkgH2vAl1zrY/iIOQDZWyuiwihDXzlHHvqocpQJ4fkm0bRHqxSbTdJzeH7QbKvOfiY; 25:0OMuJzktjqmvbZ2OpKSLAcPp1Qi54VxmR2KJlmwElmhOjdohe+/KwZV//J6R97TYwoqT21wOUX5UIt0qLHgTFtM27OpFED7wxXJhgZoFix2tro2N2nwZ/BCOJR5NcyUNrO3n94l/8XYgeo2LXsTNDhayKQIbmGygHGF41krd0NjMyj3aOQUg6PitBmKVG3YhEb4sj/YvcEBb4XktL1TRxN48ZAXQHuQFtYHxMA/eGobD3gr3dQAt1XUkdpWVDU9181qojMnKiUua9iMYHatcTfgfNCixHfvLby5omxdLIFDe157OvF4bh5sgA7j+ik8+zD8CZeEOi62VCSrGVUmdOA==; 31:rQP5VVBJFyuwCWxcB22SzCKS2hf2QNTOXGDUYYNkyMHjst+d2ZWCg4ZEOmCiaH+BsZimXAyafGfZ1ldb1XdsqJGcU3I8DrY2I5+Ntk3iOza6SbY2x7EsEUdJ+XdbyjL/YIdUE+l5oGhr+RgCwkn8hMaVnp1jb5Jyg0KQYmBR5PZzLoAuVgexqo4TYbCtutSsBcMpwdWWBHBoJxSBKAY/CV0/njOafWW5/ofReM7Zkls= X-MS-TrafficTypeDiagnostic: AM4PR05MB3268: X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB3268; 20:JvCPtc4cl+Ys1yNF/7wh4TbeJVc1RRKmFrJCFp7FlH6Oq6wno654FSTltZJK7m9x43On7bJ58ULTz5qBNfT8DEo8rmqkpMH8BDpm0gUM/oPJcshpuZx/EmYSxo4HoKYTqePzTOJOM9ZfUfaP8DPVy39Nap0pSK4cFkKIi2nR6jAum1f0OQZLHuXvqEp87VTWN52jx9hBUdCkel3XFTnGXag1/PBkIhMxNzziT5G+UgBYQLSn5cX3sT4+rstuESFKAofH7Wl19cgAMPnX/QC57/azaur1JiDbXTo5V3NSQG0nbPnKlKTkBzrwFXdiBGMY4hTQoeYJGn9FuWKDdoSGJzzHqhiFP9HIByMKMBqdrNp7CkaqeeuDpn05fnkF8eqHaFtI+zvv6mKS5mCsydH959pcx01naU0JRwQmVwO3mLwhcAwhdxxBxX7/UlpUsSCdxIeewKj0ch8Mgv7GIPrcTHFGO2LuKVM9RrnPgvh//fwCgy9doChD6LzvmTQdXC/j; 4:bnynrxOX+dXP8guGIK64yTF7snxGvpifz0iHxwx5CbhSMVyvwhdXJy/NciqjjPVAcM19Q+dniE071ghA3OU3wCozwyIpc/0a5+qVgGbP6PyiuUYHqvPiFUQtFFuWnU/r9Of6tJFs6UhiQo22n/dQ16RnrclwYGK7UcdyXuPavFH0kBmiq2HqJGTyncAh8M9ix25Ol+v3h2GNZ7EBuBzRtPcjsrLiA3D4EIMiotTDhAZUXW9i0oMnaZv1YTVGzdDukFEovh2Tmh235pNzHwz6ug== 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)(10201501046)(93006095)(93001095)(3002001)(3231355)(944501410)(4982022)(52105095)(6055026)(148016)(149066)(150057)(6041310)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:AM4PR05MB3268; BCL:0; PCL:0; RULEID:; SRVR:AM4PR05MB3268; X-Forefront-PRVS: 0830866D19 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39850400004)(376002)(366004)(136003)(396003)(199004)(189003)(2906002)(8676002)(966005)(50226002)(69596002)(33026002)(6116002)(3846002)(476003)(446003)(4326008)(11346002)(76176011)(7696005)(486006)(51416003)(386003)(186003)(956004)(81156014)(81166006)(8936002)(25786009)(2616005)(36756003)(14444005)(105586002)(86362001)(66066001)(47776003)(97736004)(16526019)(26005)(316002)(16586007)(52116002)(68736007)(50466002)(5660300001)(6306002)(478600001)(48376002)(8886007)(55016002)(21086003)(4720700003)(6636002)(6666004)(106356001)(107886003)(53936002)(7736002)(85306007)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3268; H:mellanox.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-Exchange-Diagnostics: =?us-ascii?Q?1; AM4PR05MB3268; 23:MmZ4JTH3lBUJzwuWbcum3GrqFelt8ocQRhrqAeXLE?= =?us-ascii?Q?Pm2LlNzm0G6y6WvxfH6Kx/sXqoq3ZyL98f6/IlegVhEcmTUT/W53RRoxg/Sz?= =?us-ascii?Q?qErjF7wby3WJOfiBVzRNloSlKyOYqpBHlnl6ZlXN7cOCD8/StGooXlUpe3hy?= =?us-ascii?Q?S90j7JD7bOBkHU4tx8WOj+T60NtsY11kOP4tAtew01EBcU1TjIigpRkdQIiY?= =?us-ascii?Q?l8II3cLke+QmjtOsdvcnnxv7U2C/Tm0ATJ2bPapOFIcewaP5zHyYep9NczhA?= =?us-ascii?Q?hUrPMOFQUFjtrORBm8Q6QGyg2UzQQfT1c6LobSW2FOiNDf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fb+DsM1yMDyPJ7DEHk170zn+kmHQtHUPQ==; 5:LwTosAd2Ttc/6mmIzlE/zByE6LZbOVxpr2b7Zu6I8iVFQMBIFAHi+EOERhOV27fvkL2lcBxr0OQbOFqAPepSRLXX033k0406kUMuA0peKoz37QxHzPJzC0fQRh7Qd5xzjUHei0CIk/DrT/mVod498h4N9VgRY3SfeMFGXdigJNk=; 7:5XbUn9Wk54Urd0s0wPSpLzNpGMt6SBjKPo5voGohR6pUGVmNReFLETeO0b6aHnbKWI+qDfnz8T8HumhCB2DT1WJvQTsxqpwV93fDGvswXnqXG6wT2p9238Z9sWrRdDzBbyxtYA8MBMJ0jZ8Ib/Y7QC72DX4iNpJNXcX4JzyhtnZgR9NGp83vB04I8PFNCQRIlvRUuCNE8+QTHlkRk7da8ajUWyvpifLN4Dn90jSfN7t9bB6sCx2sHhslt9zhpJ+r SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2018 15:21:31.2523 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bb73c3ab-f4d9-468f-2496-08d635d68ca1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3268 Subject: [dpdk-dev] [PATCH v3 0/6] net/mlx5: flow counters support for Linux-rdma v19 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: Fri, 19 Oct 2018 15:21:33 -0000 Mellanox mlx5 PMD supports Flow counters via Verbs library. The current implementation is based on the Mellanox proprietary Verbs library included in MLNX OFED packages. The Flow counter support is recently added into linux-rdma release (v19), so the mlx5 PMD update is needed to provide Counter feature on the base of linux-rdma. mlx5 PMD can be compiled with MLNX OFED or linux-rdma v19+ and provide flow counters for both. Signed-off-by: Viacheslav Ovsiienko --- v3: - mlx5 glue issue resolved correctly - patch is reorganized info small isolated parts v2: - http://patches.dpdk.org/patch/46989/ - rebased on top of master-net-mlx branch - new compilation flags are introduced: - HAVE_IBV_DEVICE_COUNTERS_SET_SUPPORT_V42, kernel/verbs library provides the flow counter support in style of MLNX_OFED_4.2 to MLNX_OFED_4.4 - HAVE_IBV_DEVICE_COUNTERS_SET_SUPPORT_V45, kernel/verbs library provides the flow counter support in style of MLNX_OFED_4.5 or higher v1: - http://patches.dpdk.org/patch/45972/ *** BLURB HERE *** Viacheslav Ovsiienko (6): net/mlx5: flow counters object create function bugfix net/mlx5: flow counters new configuration flags net/mlx5: flow counters simplifying runtime support check net/mlx5: flow counters mlx5 glue library update net/mlx5: flow counters query function move and rename net/mlx5: flow counters Verbs interface functions update drivers/net/mlx5/Makefile | 9 +- drivers/net/mlx5/meson.build | 6 +- drivers/net/mlx5/mlx5.c | 17 ++- drivers/net/mlx5/mlx5.h | 1 - drivers/net/mlx5/mlx5_flow.c | 16 +-- drivers/net/mlx5/mlx5_flow.h | 6 + drivers/net/mlx5/mlx5_flow_verbs.c | 230 ++++++++++++++++++++++++------------- drivers/net/mlx5/mlx5_glue.c | 68 ++++++++++- drivers/net/mlx5/mlx5_glue.h | 19 ++- 9 files changed, 269 insertions(+), 103 deletions(-) -- 1.8.3.1