From patchwork Wed Dec 5 23:08:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 10715025 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1F9DF15A6 for ; Wed, 5 Dec 2018 23:08:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0503C287B4 for ; Wed, 5 Dec 2018 23:08:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E20AE285E2; Wed, 5 Dec 2018 23:08:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8BCE2284FC for ; Wed, 5 Dec 2018 23:08:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728721AbeLEXId (ORCPT ); Wed, 5 Dec 2018 18:08:33 -0500 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:34772 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727780AbeLEXId (ORCPT ); Wed, 5 Dec 2018 18:08:33 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from saeedm@mellanox.com) with ESMTPS (AES256-SHA encrypted); 6 Dec 2018 01:14:28 +0200 Received: from sx1.mtl.com ([172.16.5.89]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id wB5N8NOe010906; Thu, 6 Dec 2018 01:08:24 +0200 From: Saeed Mahameed To: Leon Romanovsky , saeedm@mellanox.com Cc: netdev@vger.kernel.org, linux-rdma@vger.kernel.org, Jason Gunthorpe Subject: [PATCH V2 mlx5-next 0/4] mlx5 core CQE API and misc updates Date: Wed, 5 Dec 2018 15:08:06 -0800 Message-Id: <20181205230810.1886-1-saeedm@mellanox.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi This patchset is for mlx5-next shared branch, and will be applied there once the review is done. Patches 1,2,3 are trivial improvements to CQE API 1. return CQE pointer instead of void pointer in get_cqe function 2. helper function for retrieving the CQE opcode, used in rdma and netdev Patch 4, Move flow counters data structures definition to c file. V1->v2: - move #include in patch 4 Thanks, Saeed. --- Daniel Jurgens (1): net/mlx5: When fetching CQEs return CQE instead of void pointer Saeed Mahameed (1): net/mlx5: Move flow counters data structures from flow steering header Tariq Toukan (2): net/mlx5: Use helper to get CQE opcode IB/mlx5: Use helper to get CQE opcode drivers/infiniband/hw/mlx5/cq.c | 8 +++---- .../net/ethernet/mellanox/mlx5/core/en_rx.c | 10 ++++---- .../net/ethernet/mellanox/mlx5/core/en_tx.c | 2 +- .../ethernet/mellanox/mlx5/core/fpga/conn.c | 2 +- .../net/ethernet/mellanox/mlx5/core/fs_core.h | 24 ------------------- .../ethernet/mellanox/mlx5/core/fs_counters.c | 24 +++++++++++++++++++ drivers/net/ethernet/mellanox/mlx5/core/wq.h | 2 +- include/linux/mlx5/device.h | 5 ++++ 8 files changed, 41 insertions(+), 36 deletions(-)