From patchwork Wed Sep 12 16:04:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yishai Hadas X-Patchwork-Id: 10597953 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 E75F7921 for ; Wed, 12 Sep 2018 16:04:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D79F02A5D2 for ; Wed, 12 Sep 2018 16:04:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB7FC2A674; Wed, 12 Sep 2018 16:04:41 +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 AE0CC2A668 for ; Wed, 12 Sep 2018 16:04:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726821AbeILVJt (ORCPT ); Wed, 12 Sep 2018 17:09:49 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:41763 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726854AbeILVJt (ORCPT ); Wed, 12 Sep 2018 17:09:49 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from yishaih@mellanox.com) with ESMTPS (AES256-SHA encrypted); 12 Sep 2018 19:08:48 +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 w8CG4X3n020171; Wed, 12 Sep 2018 19:04:33 +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 w8CG4XgN029554; Wed, 12 Sep 2018 19:04:33 +0300 Received: (from yishaih@localhost) by vnc17.mtl.labs.mlnx (8.13.8/8.13.8/Submit) id w8CG4USB029540; Wed, 12 Sep 2018 19:04:30 +0300 From: Yishai Hadas To: linux-rdma@vger.kernel.org Cc: yishaih@mellanox.com, jgg@mellanox.com, markb@mellanox.com, majd@mellanox.com Subject: [PATCH rdma-core 0/4] mlx5: Flow actions to mutate packets Date: Wed, 12 Sep 2018 19:04:05 +0300 Message-Id: <1536768249-29432-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 from Mark exposes the ability to create flow actions which can mutate packet headers via the mlx5 DV API. Once created the flow action must be attached to a steering rule for it to take effect. The kernel part was already accepted to 'for-next'. PR was sent: https://github.com/linux-rdma/rdma-core/pull/376 Mark Bloch (3): verbs: Expose a new accessor to be used with enum values mlx5: Add modify header flow action mlx5: Add packet reformat flow action Yishai Hadas (1): Update kernel headers debian/ibverbs-providers.symbols | 3 + kernel-headers/rdma/mlx5_user_ioctl_cmds.h | 18 +++++ kernel-headers/rdma/mlx5_user_ioctl_verbs.h | 12 +++ libibverbs/cmd_ioctl.h | 3 + providers/mlx5/CMakeLists.txt | 2 +- providers/mlx5/libmlx5.map | 6 ++ providers/mlx5/man/CMakeLists.txt | 1 + .../man/mlx5dv_flow_action_packet_reformat.3.md | 63 ++++++++++++++++ providers/mlx5/mlx5_api.h | 8 ++ providers/mlx5/mlx5dv.h | 30 ++++++++ providers/mlx5/verbs.c | 88 ++++++++++++++++++++++ 11 files changed, 233 insertions(+), 1 deletion(-) create mode 100644 providers/mlx5/man/mlx5dv_flow_action_packet_reformat.3.md