Unfortunately we're a bit late with dynamic logging implementation. So, it can wait for 18.05 release cycle if required.
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. The series already follows log type names format defined recently. 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/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 | 36 ++++++++------ 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 + 19 files changed, 294 insertions(+), 73 deletions(-) -- 2.7.4