From patchwork Thu Jan 11 16:20:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Scheurich X-Patchwork-Id: 859199 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zHWz20wMXz9s8J for ; Fri, 12 Jan 2018 03:48:13 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id A601811B1; Thu, 11 Jan 2018 16:48:11 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 50082118F for ; Thu, 11 Jan 2018 16:48:10 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.web.de (mout.web.de [212.227.17.11]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 5AF95163 for ; Thu, 11 Jan 2018 16:48:09 +0000 (UTC) Received: from ubuntu.local ([129.192.10.2]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MMVpy-1eVof82nxW-008IaU; Thu, 11 Jan 2018 17:47:52 +0100 From: Jan Scheurich To: dev@openvswitch.org Date: Thu, 11 Jan 2018 17:20:56 +0100 Message-Id: <1515687658-30572-1-git-send-email-jan.scheurich@ericsson.com> X-Mailer: git-send-email 1.9.1 X-Provags-ID: V03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3nLbq wqRt6kPkwPll5O3k/AcSSCZmzyfog== X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_RP_MATCHES_RCVD autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: i.maximets@samsung.com Subject: [ovs-dev] [PATCH v8 0/2] Refactor PMD stats and cycle counting X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org This series contains the two refactoring patches of the earlier series * [PATCH v5 0/3] dpif-netdev: Detailed PMD performance metrics and supervision * [RFC PATCH 0/8] dpif-netdev: Refactor cycle count and rebased patches They are intended to serve as common base for the following contibutions: * dpif-netdev: Detailed PMD performance metrics and supervision * dpif-netdev: Ouput packet batching (Time-based) * dpif-netdev: Add percentage of pmd/core used by each rxq v7 -> v8: * Rebased to master (74c4530dca) * Fixed segfault during parameter processing * Fixed get_stats bug that caused dpif/show test failure * Removed unnecessary "start_ms" from pmd-perf-stats * Added blanks after colon in pmd-stats-show * All unit tests pass v6 -> v7: * Implemented all comments by Ilya and Billy on v5 and v6 * Rebased to master (092bc0f5) v5 -> v6: * Implemented Ilya's comments * Commented data structures * Replaced the historic cycle counting scheme with nestable cycle_timers and moved into dpif-netdev-perf Jan Scheurich (2): dpif-netdev: Refactor PMD performance into dpif-netdev-perf dpif-netdev: Refactor cycle counting lib/automake.mk | 2 + lib/dpif-netdev-perf.c | 65 ++++++++ lib/dpif-netdev-perf.h | 221 ++++++++++++++++++++++++ lib/dpif-netdev.c | 444 +++++++++++++++++++------------------------------ tests/pmd.at | 30 ++-- 5 files changed, 473 insertions(+), 289 deletions(-) create mode 100644 lib/dpif-netdev-perf.c create mode 100644 lib/dpif-netdev-perf.h