From patchwork Thu Oct 4 10:17:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yishai Hadas X-Patchwork-Id: 10625855 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 91EF815A6 for ; Thu, 4 Oct 2018 10:20:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C31A28C5B for ; Thu, 4 Oct 2018 10:20:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6EF9C28C78; Thu, 4 Oct 2018 10:20:28 +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 A743B28C66 for ; Thu, 4 Oct 2018 10:20:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727092AbeJDRMm (ORCPT ); Thu, 4 Oct 2018 13:12:42 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:48499 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727109AbeJDRMm (ORCPT ); Thu, 4 Oct 2018 13:12:42 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from yishaih@mellanox.com) with ESMTPS (AES256-SHA encrypted); 4 Oct 2018 12:22:31 +0200 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 w94AHn8E007364; Thu, 4 Oct 2018 13:17:49 +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 w94AHnwC021104; Thu, 4 Oct 2018 13:17:49 +0300 Received: (from yishaih@localhost) by vnc17.mtl.labs.mlnx (8.13.8/8.13.8/Submit) id w94AHnrT021103; Thu, 4 Oct 2018 13:17:49 +0300 From: Yishai Hadas To: linux-rdma@vger.kernel.org Cc: yishaih@mellanox.com, markb@mellanox.com, jgg@mellanox.com, majd@mellanox.com, guyle@mellanox.com Subject: [PATCH rdma-core 0/5] mlx5: Extend flow steering support Date: Thu, 4 Oct 2018 13:17:22 +0300 Message-Id: <1538648247-21003-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 extends the existing mlx5 DV flow steering APIs to support flow actions and egress traffic. The verbs infrastructure was aligned with the kernel code to support passing an array of IDRs, this is used for passing an array of flow actions. PR was sent: https://github.com/linux-rdma/rdma-core/pull/390 Guy Levi (1): verbs: Add IDRs array attribute type to ioctl() interface Jason Gunthorpe (1): verbs: Make fill_attr* able to handle invalid input Mark Bloch (2): mlx5: Allow passing flow flags mlx5: Allow passing flow action in mlx5dv_create_flow Yishai Hadas (1): Update kernel headers kernel-headers/rdma/mlx5_user_ioctl_cmds.h | 2 + kernel-headers/rdma/rdma_user_ioctl_cmds.h | 7 +- libibverbs/cmd_counters.c | 7 +- libibverbs/cmd_ioctl.c | 11 ++- libibverbs/cmd_ioctl.h | 31 ++++++-- providers/mlx5/man/CMakeLists.txt | 2 + providers/mlx5/man/mlx5dv_create_flow.3.md | 76 ++++++++++++++++++ providers/mlx5/man/mlx5dv_create_flow_matcher.3.md | 90 ++++++++++++++++++++++ providers/mlx5/verbs.c | 61 +++++++++++---- 9 files changed, 258 insertions(+), 29 deletions(-) create mode 100644 providers/mlx5/man/mlx5dv_create_flow.3.md create mode 100644 providers/mlx5/man/mlx5dv_create_flow_matcher.3.md