Message ID | cover.1579257283.git.jackmin@mellanox.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 95EB8A051A; Fri, 17 Jan 2020 12:56:16 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C60A6F3E; Fri, 17 Jan 2020 12:56:15 +0100 (CET) Received: from git-send-mailer.rdmz.labs.mlnx (unknown [37.142.13.130]) by dpdk.org (Postfix) with ESMTP id A9120F11 for <dev@dpdk.org>; Fri, 17 Jan 2020 12:56:13 +0100 (CET) From: Xiaoyu Min <jackmin@mellanox.com> To: jerinjacobk@gmail.com, orika@mellanox.com, viacheslavo@mellanox.com, matan@mellanox.com, rasland@mellanox.com Cc: dev@dpdk.org Date: Fri, 17 Jan 2020 13:55:58 +0200 Message-Id: <cover.1579257283.git.jackmin@mellanox.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <cover.1579168182.git.jackmin@mellanox.com> References: <cover.1579168182.git.jackmin@mellanox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
ethdev: add API to dump device internal flow info
|
|
Message
Xiaoyu Min
Jan. 17, 2020, 11:55 a.m. UTC
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/ v2: * Bump MLX5 PMD glue version to 20.02.0 * MLX5 PMD validate port id * Code improvement per review comments 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 | 5 +- 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 | 231 +++++++++++++++++++++++ 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, 518 insertions(+), 2 deletions(-) create mode 100644 drivers/net/mlx5/mlx5_socket.c
Comments
On 1/17/2020 11:55 AM, Xiaoyu Min wrote: > 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/ > > v2: > * Bump MLX5 PMD glue version to 20.02.0 > * MLX5 PMD validate port id > * Code improvement per review comments > > 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 Series applied to dpdk-next-net/master, thanks.
17/01/2020 20:26, Ferruh Yigit: > On 1/17/2020 11:55 AM, Xiaoyu Min wrote: > > 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 > > Series applied to dpdk-next-net/master, thanks. I think we are missing an update of the testpmd doc.
On Sun, 20-01-19, 22:08, Thomas Monjalon wrote: > 17/01/2020 20:26, Ferruh Yigit: > > On 1/17/2020 11:55 AM, Xiaoyu Min wrote: > > > 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 > > > > Series applied to dpdk-next-net/master, thanks. > > I think we are missing an update of the testpmd doc. > Yes, you are right. I'll update testpmd doc. -Jack