From patchwork Thu Apr 18 11:28:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ori Kam X-Patchwork-Id: 52910 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 626F11B994; Thu, 18 Apr 2019 13:29:10 +0200 (CEST) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 852351B94E for ; Thu, 18 Apr 2019 13:29:00 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE1 (envelope-from orika@mellanox.com) with ESMTPS (AES256-SHA encrypted); 18 Apr 2019 14:28:58 +0300 Received: from pegasus03.mtr.labs.mlnx (pegasus03.mtr.labs.mlnx [10.210.16.124]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x3IBSwjs024378; Thu, 18 Apr 2019 14:28:58 +0300 From: Ori Kam To: yskoh@mellanox.com, shahafs@mellanox.com, matan@mellanox.com, viacheslavo@mellanox.com, motih@mellanox.com Cc: dev@dpdk.org, orika@mellanox.com Date: Thu, 18 Apr 2019 11:28:41 +0000 Message-Id: <1555586930-109097-1-git-send-email-orika@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1555276357-4892-1-git-send-email-orika@mellanox.com> References: <1555276357-4892-1-git-send-email-orika@mellanox.com> Subject: [dpdk-dev] [PATCH v2 0/9] net/mlx5: add Direct Verbs E-Switch support 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Currently MLX5 PMD supports 3 flow engines: Verbs, Direct Verbs and TCF. The first two engines are for Nic steering while the TCF is for E-Switch steering. This series add E-Switch steering support also for the DV engine. In order to support the new capability there should be support from both the RDMA and from the NIC. V2: * Address ML comments Ori Kam (9): net/mlx5: fix translate vport function name net/mlx5: fix meson build for Direct Rules net/mlx5: add Direct Rules E-Switch support net/mlx5: add validation for Direct Rule E-Switch net/mlx5: add port ID item to Direct Verbs net/mlx5: add transfer attribute to matcher net/mlx5: add E-Switch port ID action to Direct Verbs net/mlx5: add Forward Database table type net/mlx5: add drop action to Direct Verbs E-Switch drivers/net/mlx5/Makefile | 5 + drivers/net/mlx5/meson.build | 4 + drivers/net/mlx5/mlx5.c | 62 +++- drivers/net/mlx5/mlx5.h | 17 ++ drivers/net/mlx5/mlx5_devx_cmds.c | 44 +++ drivers/net/mlx5/mlx5_ethdev.c | 41 +++ drivers/net/mlx5/mlx5_flow.c | 3 +- drivers/net/mlx5/mlx5_flow.h | 19 ++ drivers/net/mlx5/mlx5_flow_dv.c | 585 +++++++++++++++++++++++++++++++++----- drivers/net/mlx5/mlx5_glue.c | 26 ++ drivers/net/mlx5/mlx5_glue.h | 2 + drivers/net/mlx5/mlx5_prm.h | 328 +++++++++++++++++++++ 12 files changed, 1065 insertions(+), 71 deletions(-)