From patchwork Fri Dec 22 17:44:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 135528 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2F80643760; Fri, 22 Dec 2023 18:45:55 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0D93D40E96; Fri, 22 Dec 2023 18:45:52 +0100 (CET) Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mails.dpdk.org (Postfix) with ESMTP id 8C4FD402B9 for ; Fri, 22 Dec 2023 18:45:50 +0100 (CET) Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-5cd8e2988ddso1084760a12.3 for ; Fri, 22 Dec 2023 09:45:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1703267150; x=1703871950; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pfFvkxcfqNiKh+lkbXj9lLzDw2damUq/hfXtoZnPPwo=; b=tQMz5smrH0eEcWfSQWYuwc7fb1EOk9DJyKdnpyNEsG/S53C3GMqY6svpUDvB/irry8 b0UsXPiqVsP98elireEZ7Q91Zs2IQLfXMYg2WiXfOv2d7bYlGwM3U+JmE1Tzawh/7JZG UJp8p8a/FIUKKE/pigBVzm8Ps0VgFyDN8+tP9X/kJKWjExTumrL3COUA93yCgUQVrE0z 50hwhaO91mKXoe6buse3j9gowGUcq+nQwRVkBy8m+irdc2Mede35RPsET0oHScPx7cPp NacRpXd4DdTm3qkF/riFfrxa+D091stzPgrd+4g5c/jo/6GztryJ8B70H2SnETA2AUSl 9w1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703267150; x=1703871950; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pfFvkxcfqNiKh+lkbXj9lLzDw2damUq/hfXtoZnPPwo=; b=VZSiMykmpCBAOIlU1hgEQSO3xyhOJ5UVzTPWmAcxjNyiD528TJka0MLsabJk9Gg4XZ 1KEeWrqEQU9zr3mtpDlUkSmSz+z9p/Pc6eFVAvRdNktJiYsl/Ea0NhNbIGNEuXktRwpA 7Ku/NwYvQ+1uBDk9VO+Ol2taweOyuR0tPM0QWJuwSxD5OQRE1Mp178geWx+AZ00TPMNQ UU1zuEiytvomDRu+zBQRZNTQXcEeffuFeSGdSEq7RmXUiuf1tyhjpeDQ5pmhcoYm99mn G+4Rgc5I5+QxcL8hf1scxA8QigpmvfwlYYfrXViFuwkQ+xI7ZEIcbaptgybyZOSZC9YD c4yA== X-Gm-Message-State: AOJu0YwFU6ON/AaKBcMRbgV6Dv7UJRTRQ05jqpNM8mLRbHbxDRUt8Qbz sTsQo3VL9W7o4j23ziYQPr5mwbQNclLQxvLpUkppQeUqrWpksw== X-Google-Smtp-Source: AGHT+IGChaatDz2TpjRjhHyvqJvpeCECkAO8RbEOVP0EGdDyZnP50Jn2oCaobe89nW4HttI9fxNYbw== X-Received: by 2002:a05:6a20:4295:b0:18f:fa8b:e0a2 with SMTP id o21-20020a056a20429500b0018ffa8be0a2mr1346820pzj.58.1703267149719; Fri, 22 Dec 2023 09:45:49 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id ne17-20020a17090b375100b0028b493c8c2esm7724935pjb.22.2023.12.22.09.45.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 09:45:49 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Cristian Dumitrescu Subject: [PATCH 1/3] port: convert to dynamic log type Date: Fri, 22 Dec 2023 09:44:02 -0800 Message-ID: <20231222174539.13431-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231222174539.13431-1-stephen@networkplumber.org> References: <20231222174539.13431-1-stephen@networkplumber.org> MIME-Version: 1.0 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 Replace static RTE_LOGTYPE_PORT with dynamic type. Since there are several types of port do initialization in a short standalone file. Signed-off-by: Stephen Hemminger --- lib/log/log.c | 1 - lib/log/rte_log.h | 2 +- lib/port/meson.build | 1 + lib/port/port_log.h | 4 +++- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/log/log.c b/lib/log/log.c index ab06132a98a1..853acaf07eb2 100644 --- a/lib/log/log.c +++ b/lib/log/log.c @@ -353,7 +353,6 @@ struct logtype { static const struct logtype logtype_strings[] = { {RTE_LOGTYPE_EAL, "lib.eal"}, {RTE_LOGTYPE_PMD, "pmd"}, - {RTE_LOGTYPE_PORT, "lib.port"}, {RTE_LOGTYPE_TABLE, "lib.table"}, {RTE_LOGTYPE_PIPELINE, "lib.pipeline"}, {RTE_LOGTYPE_EVENTDEV, "lib.eventdev"}, diff --git a/lib/log/rte_log.h b/lib/log/rte_log.h index 5ba198ba2484..5c73e689e8aa 100644 --- a/lib/log/rte_log.h +++ b/lib/log/rte_log.h @@ -40,7 +40,7 @@ extern "C" { /* was RTE_LOGTYPE_POWER */ /* was RTE_LOGTYPE_METER */ /* was RTE_LOGTYPE_SCHED */ -#define RTE_LOGTYPE_PORT 13 /**< Log related to port. */ + /* was RTE_LOGTYPE_PORT */ #define RTE_LOGTYPE_TABLE 14 /**< Log related to table. */ #define RTE_LOGTYPE_PIPELINE 15 /**< Log related to pipeline. */ /* was RTE_LOGTYPE_MBUF */ diff --git a/lib/port/meson.build b/lib/port/meson.build index b0af2b185b39..b5977728723a 100644 --- a/lib/port/meson.build +++ b/lib/port/meson.build @@ -8,6 +8,7 @@ if is_windows endif sources = files( + 'port_log.c', 'rte_port_ethdev.c', 'rte_port_fd.c', 'rte_port_frag.c', diff --git a/lib/port/port_log.h b/lib/port/port_log.h index 99332a380323..28d75ee48b3b 100644 --- a/lib/port/port_log.h +++ b/lib/port/port_log.h @@ -4,6 +4,8 @@ #include +extern int port_logtype; +#define RTE_LOGTYPE_PORT port_logtype + #define PORT_LOG(level, ...) \ RTE_LOG_LINE(level, PORT, "" __VA_ARGS__) - From patchwork Fri Dec 22 17:44:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 135529 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F25FA43760; Fri, 22 Dec 2023 18:45:59 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2D17F410F9; Fri, 22 Dec 2023 18:45:53 +0100 (CET) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mails.dpdk.org (Postfix) with ESMTP id 3FA4540A73 for ; Fri, 22 Dec 2023 18:45:51 +0100 (CET) Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-5c65ca2e1eeso1086674a12.2 for ; Fri, 22 Dec 2023 09:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1703267150; x=1703871950; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+6E6SuqdtuBvFHp/my/xxyT7/7/sgR1S4DxG1JAesUo=; b=VxfjqiHdd5Xw2XmdGKbXkb/6lqSegZu+KdhpQEalYe7LCA4lCwI2f6BrEZ0RdJ1c4N hTnNUhN6Mt91y8zvWQWaPjojrq55vUbrj6/xZIr9vBX0VyfttTGBor+l84ToGtfEUQe0 xiDd+PdM9b87dijtGMMO2EYKqJm8vHi/KC2Tgs5z0ZPCIQ5SSQEBfJgFeboeG9xDxCiU vfjGltKYE0EE4qD0PiZi+pBvlyGC6BzTQcEBZyzKd2xAJT1k4v4gHINwI6ljq/66FvVP v0FmxILU8+ruC+zh16tHZJimnpEAaPoMFm6HFRV9p5IRuC8Ka1eHz+FN9uKXU/CPfwq3 U4zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703267150; x=1703871950; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+6E6SuqdtuBvFHp/my/xxyT7/7/sgR1S4DxG1JAesUo=; b=CPtT8yGqfnJmORdPr0ujQgWTEvFP3amJc+uFSft6U8IfyNXnFPCzz0xa/EXsW+hecK KZf+dAGzp7+d8Anw34W/77/QStJDnWtnahXQtJ2Kgsj657MDuqHwNIrp4BezEYSsCRqp KljmIubJjtABDCqTQTyuTIQOVi4x/czcTHZJu8d4moClXuN/RmlVWc0YfsDfjM/OdVhl viLpEv/wiBNkF8jwK7dH09wki3wIoxMpgUk2Fdb8bwMFgz6614h6N8VshT5fu2gS/CPC fzhY8LX78R9rplTOPH128Asb9GSsGYeUUi2g/YdJQqaD7x1lkj0jRXsIQJm9cquDFjMF UowQ== X-Gm-Message-State: AOJu0YweMOuE55JCF0WqtxkGl5RgsNWa6OzVOIRkS0DhC+/8Om2Wxw8o GMhfF5AaxhzYTDcggbf4DsRr9MCtVtZdKzpHjATAb9pqVcSZMw== X-Google-Smtp-Source: AGHT+IHg1hFEDHCJjM1nhIqNZ+CWknNIykA1A8FTHmJYvmQLQNPcW3NTxYHVtc7h3Eu2D5rMaLjUOQ== X-Received: by 2002:a05:6a20:3ca6:b0:195:2618:aa89 with SMTP id b38-20020a056a203ca600b001952618aa89mr1213172pzj.94.1703267150465; Fri, 22 Dec 2023 09:45:50 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id ne17-20020a17090b375100b0028b493c8c2esm7724935pjb.22.2023.12.22.09.45.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 09:45:50 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Cristian Dumitrescu Subject: [PATCH 2/3] table: convert to dynamic logtype Date: Fri, 22 Dec 2023 09:44:03 -0800 Message-ID: <20231222174539.13431-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231222174539.13431-1-stephen@networkplumber.org> References: <20231222174539.13431-1-stephen@networkplumber.org> MIME-Version: 1.0 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 Replace static RTE_LOGTYPE_TABLE with dynamic type. Signed-off-by: Stephen Hemminger --- lib/log/log.c | 1 - lib/log/rte_log.h | 2 +- lib/port/port_log.c | 7 +++++++ lib/table/meson.build | 2 ++ lib/table/table_log.c | 7 +++++++ lib/table/table_log.h | 4 +++- 6 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 lib/port/port_log.c create mode 100644 lib/table/table_log.c diff --git a/lib/log/log.c b/lib/log/log.c index 853acaf07eb2..7ae798493e51 100644 --- a/lib/log/log.c +++ b/lib/log/log.c @@ -353,7 +353,6 @@ struct logtype { static const struct logtype logtype_strings[] = { {RTE_LOGTYPE_EAL, "lib.eal"}, {RTE_LOGTYPE_PMD, "pmd"}, - {RTE_LOGTYPE_TABLE, "lib.table"}, {RTE_LOGTYPE_PIPELINE, "lib.pipeline"}, {RTE_LOGTYPE_EVENTDEV, "lib.eventdev"}, {RTE_LOGTYPE_USER1, "user1"}, diff --git a/lib/log/rte_log.h b/lib/log/rte_log.h index 5c73e689e8aa..6bfa66dc8986 100644 --- a/lib/log/rte_log.h +++ b/lib/log/rte_log.h @@ -41,7 +41,7 @@ extern "C" { /* was RTE_LOGTYPE_METER */ /* was RTE_LOGTYPE_SCHED */ /* was RTE_LOGTYPE_PORT */ -#define RTE_LOGTYPE_TABLE 14 /**< Log related to table. */ + /* was RTE_LOGTYPE_TABLE */ #define RTE_LOGTYPE_PIPELINE 15 /**< Log related to pipeline. */ /* was RTE_LOGTYPE_MBUF */ /* was RTE_LOGTYPE_CRYPTODEV */ diff --git a/lib/port/port_log.c b/lib/port/port_log.c new file mode 100644 index 000000000000..1984b17bc4f7 --- /dev/null +++ b/lib/port/port_log.c @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright (c) 2023 Red Hat, Inc. + */ + +#include + +RTE_LOG_REGISTER_DEFAULT(port_logtype, INFO); diff --git a/lib/table/meson.build b/lib/table/meson.build index f8cef24b5918..9b3d9ac759eb 100644 --- a/lib/table/meson.build +++ b/lib/table/meson.build @@ -18,7 +18,9 @@ sources = files( 'rte_table_lpm.c', 'rte_table_lpm_ipv6.c', 'rte_table_stub.c', + 'table_log.c', ) + headers = files( 'rte_lru.h', 'rte_swx_hash_func.h', diff --git a/lib/table/table_log.c b/lib/table/table_log.c new file mode 100644 index 000000000000..8c84ed84671c --- /dev/null +++ b/lib/table/table_log.c @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright (c) 2023 Red Hat, Inc. + */ + +#include + +RTE_LOG_REGISTER_DEFAULT(table_logtype, INFO); diff --git a/lib/table/table_log.h b/lib/table/table_log.h index 0330f89d4192..b24b8614c227 100644 --- a/lib/table/table_log.h +++ b/lib/table/table_log.h @@ -4,6 +4,8 @@ #include +extern int table_logtype; +#define RTE_LOGTYPE_TABLE table_logtype + #define TABLE_LOG(level, ...) \ RTE_LOG_LINE(level, TABLE, "" __VA_ARGS__) - From patchwork Fri Dec 22 17:44:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 135530 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 23A3943760; Fri, 22 Dec 2023 18:46:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 62DA242E52; Fri, 22 Dec 2023 18:45:54 +0100 (CET) Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by mails.dpdk.org (Postfix) with ESMTP id 10BE540EA5 for ; Fri, 22 Dec 2023 18:45:52 +0100 (CET) Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-5cdc159034eso1148104a12.0 for ; Fri, 22 Dec 2023 09:45:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1703267151; x=1703871951; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tKaD0r1Gq5QF3fMGA0U27gZOXlR8DuTWVucyCvDtrXQ=; b=solOFYjV0vo3IDRjjlkMjQUc0/0HH7hMssGNbPBknESq+El8NFdkMLBQGDgHvh/EUJ hTVp6ng597+LZGc0J3lczAfZklcjX3ooo0ccoSIS08wGzAx0Xe5Inkf2w+9OsDWtYqbu a38b6jqMHJa3BpffDB15lf+Lpb7yJvjzrHjzWubeY2AYXVTjdenqLNEx2hcNpUy5j1aU Y75vWdpmjTpkESZ+huLVViTDf+vF8uGcqNm/XWUz90LJUy0s4LnTPpNdCg/J4GeHewr4 FPW6gTAnbUBy92gs4eeQAffUygsewdg72WOes4tqX/+mhJklgZzcSynCDqg1tf6KKw8u ld/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703267151; x=1703871951; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tKaD0r1Gq5QF3fMGA0U27gZOXlR8DuTWVucyCvDtrXQ=; b=dAlsxFr/20D7Pot5lcghbaqFYZAyg20m9xvHM9oE2Q9ttrWEuqUcx/GNCAP91PFcXI ZewVij0LL5SWESPXMEKrl7DfDT1JKy2CSSxjP7uYbH6lMonem3Fxwh0wylcNIdhGSs1R h0IXo0/RWRzHgGu7YTUs+ZM+ZNxu/M1jwNJF8+AM2zcD2avI1mhlWj0/lo+uQSMxfBA/ bOxvfehkYvw2EzX4IG96Kmrfrn+bWEF97uw5TlsA5CJem1FQSswEHuK72xKn7m6dDyq4 ERD6jbtgN9GOaizwtPyLraL3NuxEcpmcGQrSWx4qcj3fsm3FTz9wm8zNlqMsDiMbj1c9 JH4Q== X-Gm-Message-State: AOJu0YwamEatklobpTLovUvkOtQhUG36SFWjCvBo7XUmIZclFVBnVvqY SSchV77azMe7vR5ke2VbxtGekyZbRdbcpT0fyeCAo7PKU1KqWg== X-Google-Smtp-Source: AGHT+IGvr3uC0BIdxmRBysSF6MKmXINp/R7nCciixKcCiHfhky+3wCZRA9VhQl/O01YcRALjs4VVmA== X-Received: by 2002:a05:6a20:748e:b0:194:d71b:813c with SMTP id p14-20020a056a20748e00b00194d71b813cmr1488293pzd.82.1703267151344; Fri, 22 Dec 2023 09:45:51 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id ne17-20020a17090b375100b0028b493c8c2esm7724935pjb.22.2023.12.22.09.45.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 09:45:50 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Cristian Dumitrescu Subject: [PATCH 3/3] pipeline: convert to a dynamic logtype Date: Fri, 22 Dec 2023 09:44:04 -0800 Message-ID: <20231222174539.13431-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231222174539.13431-1-stephen@networkplumber.org> References: <20231222174539.13431-1-stephen@networkplumber.org> MIME-Version: 1.0 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 Replace RTE_LOGTYPE_PIPELINE static type with a dynamic one. Signed-off-by: Stephen Hemminger --- lib/log/log.c | 1 - lib/log/rte_log.h | 2 +- lib/pipeline/rte_pipeline.c | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/log/log.c b/lib/log/log.c index 7ae798493e51..123510616455 100644 --- a/lib/log/log.c +++ b/lib/log/log.c @@ -353,7 +353,6 @@ struct logtype { static const struct logtype logtype_strings[] = { {RTE_LOGTYPE_EAL, "lib.eal"}, {RTE_LOGTYPE_PMD, "pmd"}, - {RTE_LOGTYPE_PIPELINE, "lib.pipeline"}, {RTE_LOGTYPE_EVENTDEV, "lib.eventdev"}, {RTE_LOGTYPE_USER1, "user1"}, {RTE_LOGTYPE_USER2, "user2"}, diff --git a/lib/log/rte_log.h b/lib/log/rte_log.h index 6bfa66dc8986..5f28c3832de9 100644 --- a/lib/log/rte_log.h +++ b/lib/log/rte_log.h @@ -42,7 +42,7 @@ extern "C" { /* was RTE_LOGTYPE_SCHED */ /* was RTE_LOGTYPE_PORT */ /* was RTE_LOGTYPE_TABLE */ -#define RTE_LOGTYPE_PIPELINE 15 /**< Log related to pipeline. */ + /* was RTE_LOGTYPE_PIPELINE */ /* was RTE_LOGTYPE_MBUF */ /* was RTE_LOGTYPE_CRYPTODEV */ /* was RTE_LOGTYPE_EFD */ diff --git a/lib/pipeline/rte_pipeline.c b/lib/pipeline/rte_pipeline.c index b0aea4596daa..c9ed903d716b 100644 --- a/lib/pipeline/rte_pipeline.c +++ b/lib/pipeline/rte_pipeline.c @@ -12,6 +12,9 @@ #include "rte_pipeline.h" +RTE_LOG_REGISTER_DEFAULT(pipeline_logtype, INFO); +#define RTE_LOGTYPE_PIPELINE pipeline_logtype + #define PIPELINE_LOG(level, ...) \ RTE_LOG_LINE(level, PIPELINE, "" __VA_ARGS__)