From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A96A2A0567; Wed, 10 Mar 2021 00:52:29 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2959E22A2B5; Wed, 10 Mar 2021 00:52:29 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by mails.dpdk.org (Postfix) with ESMTP id 34ED74068A for ; Tue, 9 Mar 2021 09:15:24 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from haifeil@nvidia.com) with SMTP; 9 Mar 2021 10:15:22 +0200 Received: from nvidia.com (gen-l-vrt-173.mtl.labs.mlnx [10.234.173.1]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 1298FMsE007468; Tue, 9 Mar 2021 10:15:22 +0200 From: Haifei Luo To: ferruh.yigit@intel.com, viacheslavo@nvidia.com, matan@nvidia.com, xiaoyun.li@intel.com, thomas@monjalon.net, orika@nvidia.com Cc: dev@dpdk.org, rasland@nvidia.com, xuemingl@nvidia.com Date: Tue, 9 Mar 2021 10:15:12 +0200 Message-Id: <1615277716-64404-1-git-send-email-haifeil@nvidia.com> X-Mailer: git-send-email 1.8.3.1 X-Mailman-Approved-At: Wed, 10 Mar 2021 00:52:28 +0100 Subject: [dpdk-dev] [PATCH 0/4] *** Support for one flow dump *** X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" Dump all the flows is supported.Some customers require to dump info for one flow. To implement this requirement, add the CLI to dump one rule: flow dump PORT rule ID the CLI to dump all: flow dump PORT all Examples: testpmd> flow dump 0 all testpmd> flow dump 0 rule 0 Also new APIs(rte_flow_dump,mlx5_flow_dump_rule, and etc) are added in rte and drivers to support it. Haifei Luo (4): ethdev: add rte API for single flow dump app/testpmd: add CLIs for single flow dump feature common/mlx5: add mlx5 APIs for single flow dump feature net/mlx5: add mlx5 APIs for single flow dump feature app/test-pmd/cmdline_flow.c | 55 +++++++++++++++++++++++++---- app/test-pmd/config.c | 38 ++++++++++++++++++-- app/test-pmd/testpmd.h | 3 +- doc/guides/nics/mlx5.rst | 10 ++++-- doc/guides/prog_guide/rte_flow.rst | 44 +++++++++++++++++++++++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 6 +++- drivers/common/mlx5/linux/meson.build | 4 +++ drivers/common/mlx5/linux/mlx5_glue.c | 13 +++++++ drivers/common/mlx5/linux/mlx5_glue.h | 1 + drivers/common/mlx5/mlx5_devx_cmds.c | 10 ++++++ drivers/common/mlx5/mlx5_devx_cmds.h | 2 ++ drivers/common/mlx5/version.map | 1 + drivers/net/mlx5/linux/mlx5_socket.c | 27 ++++++++++---- drivers/net/mlx5/mlx5.h | 3 ++ drivers/net/mlx5/mlx5_flow.c | 38 ++++++++++++++++++++ lib/librte_ethdev/rte_flow.c | 21 +++++++++++ lib/librte_ethdev/rte_flow.h | 24 +++++++++++++ lib/librte_ethdev/rte_flow_driver.h | 6 ++++ lib/librte_ethdev/version.map | 1 + 19 files changed, 286 insertions(+), 21 deletions(-) -- 1.8.3.1