Nithin Dabilpuram 13fcf8aff7 node: add logging and null node
Add log infra for node specific logging.
Also, add null rte_node that just ignores all the objects
directed to it.

Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
2020-05-05 23:37:43 +02:00

15 lines
307 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(C) 2020 Marvell International Ltd.
*/
#include "node_private.h"
int rte_node_logtype;
RTE_INIT(rte_node_init_log)
{
rte_node_logtype = rte_log_register("lib.node");
if (rte_node_logtype >= 0)
rte_log_set_level(rte_node_logtype, RTE_LOG_INFO);
}