From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5194C33CBA for ; Thu, 16 Jan 2020 10:15:44 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 7DC6C206B7 for ; Thu, 16 Jan 2020 10:15:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7DC6C206B7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mellanox.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C558A1C1C0; Thu, 16 Jan 2020 11:15:43 +0100 (CET) Received: from git-send-mailer.rdmz.labs.mlnx (unknown [37.142.13.130]) by dpdk.org (Postfix) with ESMTP id 739221C1AF for ; Thu, 16 Jan 2020 11:15:42 +0100 (CET) From: Xiaoyu Min To: jerinjacobk@gmail.com, orika@mellanox.com, viacheslavo@mellanox.com, matan@mellanox.com, rasland@mellanox.com Cc: dev@dpdk.org Date: Thu, 16 Jan 2020 12:14:12 +0200 Message-Id: X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 0/5] ethdev: add API to dump device internal flow info 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 serial patchs is based on RFC [1] and the comments on it. A new rte flow API is added to dump device internal representation information for the offloaded rte flows. 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. The output file is in vendor specific format. An external vendor provided tool may be needed in order to get human readable info. [1]: https://patches.dpdk.org/cover/64597/ Xiaoyu Min (2): ethdev: add API to dump device internal flow info net/mlx5: support flow dump API Xueming Li (3): 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/cmdline_flow.c | 91 +++++++++ app/test-pmd/config.c | 27 +++ app/test-pmd/testpmd.h | 1 + doc/guides/nics/mlx5.rst | 28 +++ drivers/net/mlx5/Makefile | 8 +- drivers/net/mlx5/meson.build | 3 + drivers/net/mlx5/mlx5.c | 2 + drivers/net/mlx5/mlx5.h | 9 + drivers/net/mlx5/mlx5_devx_cmds.c | 35 ++++ drivers/net/mlx5/mlx5_flow.c | 24 +++ drivers/net/mlx5/mlx5_glue.c | 13 ++ drivers/net/mlx5/mlx5_glue.h | 1 + drivers/net/mlx5/mlx5_socket.c | 227 +++++++++++++++++++++++ lib/librte_ethdev/rte_ethdev_version.map | 3 + lib/librte_ethdev/rte_flow.c | 16 ++ lib/librte_ethdev/rte_flow.h | 21 +++ lib/librte_ethdev/rte_flow_driver.h | 5 + 17 files changed, 513 insertions(+), 1 deletion(-) create mode 100644 drivers/net/mlx5/mlx5_socket.c -- 2.24.1