From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id 2E4765F1A for ; Wed, 21 Mar 2018 12:28:42 +0100 (CET) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (webmail.solarflare.com [12.187.104.26]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1-us3.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id 2C29F9C0059; Wed, 21 Mar 2018 11:28:41 +0000 (UTC) Received: from sfocexch01r.SolarFlarecom.com (10.20.40.34) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Wed, 21 Mar 2018 04:28:38 -0700 Received: from ocex03.SolarFlarecom.com (10.20.40.36) by sfocexch01r.SolarFlarecom.com (10.20.40.34) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Wed, 21 Mar 2018 04:28:33 -0700 Received: from opal.uk.solarflarecom.com (10.17.10.1) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1044.25 via Frontend Transport; Wed, 21 Mar 2018 04:28:32 -0700 Received: from uklogin.uk.solarflarecom.com (uklogin.uk.solarflarecom.com [10.17.10.10]) by opal.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id w2LBSVJx007206; Wed, 21 Mar 2018 11:28:31 GMT Received: from uklogin.uk.solarflarecom.com (localhost.localdomain [127.0.0.1]) by uklogin.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id w2LBSVuq011323; Wed, 21 Mar 2018 11:28:31 GMT From: Andrew Rybchenko To: CC: Ferruh Yigit Date: Wed, 21 Mar 2018 11:28:15 +0000 Message-ID: <1521631701-11282-1-git-send-email-arybchenko@solarflare.com> X-Mailer: git-send-email 1.8.2.3 In-Reply-To: <1516899647-8541-1-git-send-email-arybchenko@solarflare.com> References: <1516899647-8541-1-git-send-email-arybchenko@solarflare.com> MIME-Version: 1.0 Content-Type: text/plain X-MDID: 1521631721-hcrXqrwauLtb Subject: [dpdk-dev] [PATCH v3 0/6] net/sfc: implement dynamic logging 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: , X-List-Received-Date: Wed, 21 Mar 2018 11:28:42 -0000 The series adds EXPERIMENTAL EAL feature which removes dependency on EAL arguments processing and log types registration. It stores EAL loglevel arguments in the list and adds API function to register a new log type and pick up its value from EAL arguments. For us it is important since we would like to be able to control per-device log level, e.g. pmd.net.sfc.main.0000:01:00.0. v3: - fix build issue reported by Ferruh Ivan Malov (6): eal: register log type and pick level from EAL args net/sfc: add support for driver-wide dynamic logging net/sfc: add support for per-port dynamic logging net/sfc: prepare to merge init logs with main log type net/sfc: remove dedicated init log parameter net/sfc: add dynamic log level for MCDI messages doc/guides/nics/sfc_efx.rst | 41 ++++++++++++---- drivers/net/sfc/Makefile | 2 +- drivers/net/sfc/efsys.h | 3 +- drivers/net/sfc/sfc.c | 38 +++++++++++++-- drivers/net/sfc/sfc.h | 8 +++- drivers/net/sfc/sfc_dp.c | 5 +- drivers/net/sfc/sfc_dp.h | 6 ++- drivers/net/sfc/sfc_ef10_rx.c | 4 +- drivers/net/sfc/sfc_ethdev.c | 39 +++++++++------ drivers/net/sfc/sfc_intr.c | 6 +-- drivers/net/sfc/sfc_kvargs.c | 2 - drivers/net/sfc/sfc_kvargs.h | 4 -- drivers/net/sfc/sfc_log.h | 77 ++++++++++++++++++++++++------ drivers/net/sfc/sfc_mcdi.c | 25 +++++----- drivers/net/sfc/sfc_rx.c | 2 +- drivers/net/sfc/sfc_tx.c | 2 +- lib/librte_eal/common/eal_common_log.c | 36 ++++++++++++++ lib/librte_eal/common/eal_common_options.c | 23 +++++++++ lib/librte_eal/common/include/rte_log.h | 48 +++++++++++++++++++ lib/librte_eal/rte_eal_version.map | 1 + 20 files changed, 297 insertions(+), 75 deletions(-) -- 2.7.4