From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4AC31A04FD; Tue, 14 Jan 2020 04:45:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A5A441C215; Tue, 14 Jan 2020 04:45:31 +0100 (CET) Received: from git-send-mailer.rdmz.labs.mlnx (unknown [37.142.13.130]) by dpdk.org (Postfix) with ESMTP id 456741C1ED for ; Tue, 14 Jan 2020 04:45:30 +0100 (CET) From: Xiaoyu Min To: viacheslavo@mellanox.com, matan@mellanox.com, rasland@mellanox.com Cc: dev@dpdk.org Date: Tue, 14 Jan 2020 05:45:11 +0200 Message-Id: X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [RFC 0/4] net/mlx5: dump software steering flows in HW 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" This RFC intends to provide a way to dump all the offloaded rte flows in HW. This is very helpful for user and developer to debug flow offloading stuff, i.e, to check whether PMD offloads the rte flow in a correct way from HW perspective. A private PMD API is provided as well as a socket server for external tool to trigger dump. The output file is in raw format and Mellanox specific. An external vendor (Mellanox) provided tool is needed in order to get human readable format. Please be aware the underlying rdma-core lib also needs to support this. Xueming Li (4): net/mlx5: support flow dump Api app/testpmd: new flow dump CLI net/mlx5: add socket server for external tools doc: update mlx5 document for flow dump feature app/test-pmd/Makefile | 4 + app/test-pmd/cmdline_flow.c | 91 +++++++++ app/test-pmd/config.c | 33 ++++ app/test-pmd/meson.build | 3 + app/test-pmd/testpmd.h | 1 + doc/guides/nics/mlx5.rst | 28 +++ drivers/net/mlx5/Makefile | 12 +- drivers/net/mlx5/meson.build | 5 + drivers/net/mlx5/mlx5.c | 2 + drivers/net/mlx5/mlx5.h | 7 + drivers/net/mlx5/mlx5_devx_cmds.c | 35 ++++ drivers/net/mlx5/mlx5_glue.c | 13 ++ drivers/net/mlx5/mlx5_glue.h | 1 + drivers/net/mlx5/mlx5_socket.c | 226 ++++++++++++++++++++++ drivers/net/mlx5/rte_pmd_mlx5.c | 22 +++ drivers/net/mlx5/rte_pmd_mlx5.h | 39 ++++ drivers/net/mlx5/rte_pmd_mlx5_version.map | 7 + 17 files changed, 528 insertions(+), 1 deletion(-) create mode 100644 drivers/net/mlx5/mlx5_socket.c create mode 100644 drivers/net/mlx5/rte_pmd_mlx5.c create mode 100644 drivers/net/mlx5/rte_pmd_mlx5.h -- 2.24.1