From patchwork Tue Sep 15 08:38:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Moessbauer, Felix" X-Patchwork-Id: 77700 Return-Path: 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 29980A04C7; Tue, 15 Sep 2020 10:39:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0B6F61BFC4; Tue, 15 Sep 2020 10:39:04 +0200 (CEST) Received: from lizzard.sbs.de (lizzard.sbs.de [194.138.37.39]) by dpdk.org (Postfix) with ESMTP id B14B5DE0 for ; Tue, 15 Sep 2020 10:39:02 +0200 (CEST) Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id 08F8cvk2001701 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 Sep 2020 10:38:57 +0200 Received: from derbion.ppmd.siemens.net (derbion.ppmd.siemens.net [139.25.68.102]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id 08F8cuB7007442; Tue, 15 Sep 2020 10:38:56 +0200 From: Felix Moessbauer To: thomas@monjalon.net Cc: dev@dpdk.org, ktraynor@redhat.com, ali.rizvi@emumba.com, muhammad.ahamd@emumba.com, david.hunt@intel.com, reshma.pattan@intel.com, konstantin.ananyev@intel.com, bruce.richardson@intel.com, ferruh.yigit@intel.com, jerinj@marvell.com, honnappa.nagarahalli@arm.com, olivier.matz@6wind.com, lijuan.tu@intel.com, ohilyard@iol.unh.edu, mb@smartsharesystems.com, viacheslavo@nvidia.com, stephen@networkplumber.org, anatoly.burakov@intel.com, Felix Moessbauer Date: Tue, 15 Sep 2020 10:38:34 +0200 Message-Id: <20200915083836.18805-1-felix.moessbauer@siemens.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200715155409.9835-3-felix.moessbauer@siemens.com> References: <20200715155409.9835-3-felix.moessbauer@siemens.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v5 0/2] Add l2reflect measurement application 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" Changes since v4: All mentioned points from Thomas Monjalon's review are adressed. This includes: - remove obsolete makefile - remove authors from headers - include sbdirs in alphabetical order - use rte functions to compare mac addrs - use rte functions to format mac addrs - use jansson instead of cjson for json creation - print histogram to stderr to decouple from TUI - add option to disable color (autodisable if redirected) - improve documentation on how to use the tool - improve inline documentation (mainly l2reflect_rx_filter) This patch is still targeted towards dpdk/main until the final decision is made to put it in DTS. Further, currently only linux is supported due to the RT tuning stuff and a missing windows testing environment on our side. We would be happy about contributions to port that to other platforms as well. Changes since v3: - check for sys/io.h header - fix linking issues on gcc 10 Changes since v2: - add missing internal dependency - improve wording of commit message Changes since v1: - move to app folder, as suggested by maintainer - fix issues reported by checkpatch Felix Moessbauer (2): Fix build of apps with external dependencies Add l2reflect measurement application app/l2reflect/colors.c | 34 ++ app/l2reflect/colors.h | 19 + app/l2reflect/l2reflect.h | 48 ++ app/l2reflect/main.c | 907 ++++++++++++++++++++++++++++++++++++++ app/l2reflect/meson.build | 25 ++ app/l2reflect/stats.c | 178 ++++++++ app/l2reflect/stats.h | 61 +++ app/meson.build | 3 +- 8 files changed, 1274 insertions(+), 1 deletion(-) create mode 100644 app/l2reflect/colors.c create mode 100644 app/l2reflect/colors.h create mode 100644 app/l2reflect/l2reflect.h create mode 100644 app/l2reflect/main.c create mode 100644 app/l2reflect/meson.build create mode 100644 app/l2reflect/stats.c create mode 100644 app/l2reflect/stats.h