From patchwork Tue Aug 14 15:09:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yishai Hadas X-Patchwork-Id: 10565841 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 20D011057 for ; Tue, 14 Aug 2018 15:26:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D2182A12B for ; Tue, 14 Aug 2018 15:26:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B6372A297; Tue, 14 Aug 2018 15:26:57 +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 A520E2A229 for ; Tue, 14 Aug 2018 15:26:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732063AbeHNSOc (ORCPT ); Tue, 14 Aug 2018 14:14:32 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:47893 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730759AbeHNSOc (ORCPT ); Tue, 14 Aug 2018 14:14:32 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from yishaih@mellanox.com) with ESMTPS (AES256-SHA encrypted); 14 Aug 2018 18:13:24 +0300 Received: from vnc17.mtl.labs.mlnx (vnc17.mtl.labs.mlnx [10.7.2.17]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id w7EF9jve022863; Tue, 14 Aug 2018 18:09:45 +0300 Received: from vnc17.mtl.labs.mlnx (vnc17.mtl.labs.mlnx [127.0.0.1]) by vnc17.mtl.labs.mlnx (8.13.8/8.13.8) with ESMTP id w7EF9i0l029928; Tue, 14 Aug 2018 18:09:44 +0300 Received: (from yishaih@localhost) by vnc17.mtl.labs.mlnx (8.13.8/8.13.8/Submit) id w7EF9h4X029927; Tue, 14 Aug 2018 18:09:43 +0300 From: Yishai Hadas To: linux-rdma@vger.kernel.org Cc: yishaih@mellanox.com, jgg@mellanox.com, artemyko@mellanox.com, majd@mellanox.com Subject: [PATCH rdma-core 0/2] CQ ignore overrun Date: Tue, 14 Aug 2018 18:09:18 +0300 Message-Id: <1534259360-29819-1-git-send-email-yishaih@mellanox.com> X-Mailer: git-send-email 1.8.2.3 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 This series enables creating a CQ which doesn't pass to error state if overrun, CQE always will be written to the next entry by the device. This allows low-latency applications to achieve better performance by shortening the data path around polling CQ. The kernel part was accepted long time ago, this is the supplementary user space part. PR was sent: https://github.com/linux-rdma/rdma-core/pull/369 Artemy Kovalyov (2): verbs: Add IBV_CREATE_CQ_ATTR_IGNORE_OVERRUN support mlx5: Add IBV_UVERBS_CQ_FLAGS_IGNORE_OVERRUN support libibverbs/cmd_cq.c | 3 ++ libibverbs/man/ibv_create_cq_ex.3 | 1 + libibverbs/verbs.h | 1 + providers/mlx5/mlx5-abi.h | 2 ++ providers/mlx5/verbs.c | 60 +++++++++++++++++++++++++++------------ 5 files changed, 49 insertions(+), 18 deletions(-)