1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(C) 2019 Marvell International Ltd.
7 #include "otx2_common.h"
12 int otx2_logtype_base;
16 int otx2_logtype_mbox;
46 RTE_INIT(otx2_log_init);
50 otx2_logtype_base = rte_log_register("pmd.octeontx2.base");
51 if (otx2_logtype_base >= 0)
52 rte_log_set_level(otx2_logtype_base, RTE_LOG_NOTICE);
54 otx2_logtype_mbox = rte_log_register("pmd.octeontx2.mbox");
55 if (otx2_logtype_mbox >= 0)
56 rte_log_set_level(otx2_logtype_mbox, RTE_LOG_NOTICE);
58 otx2_logtype_npa = rte_log_register("pmd.mempool.octeontx2");
59 if (otx2_logtype_npa >= 0)
60 rte_log_set_level(otx2_logtype_npa, RTE_LOG_NOTICE);
62 otx2_logtype_nix = rte_log_register("pmd.net.octeontx2");
63 if (otx2_logtype_nix >= 0)
64 rte_log_set_level(otx2_logtype_nix, RTE_LOG_NOTICE);
66 otx2_logtype_npc = rte_log_register("pmd.net.octeontx2.flow");
67 if (otx2_logtype_npc >= 0)
68 rte_log_set_level(otx2_logtype_npc, RTE_LOG_NOTICE);
70 otx2_logtype_tm = rte_log_register("pmd.net.octeontx2.tm");
71 if (otx2_logtype_tm >= 0)
72 rte_log_set_level(otx2_logtype_tm, RTE_LOG_NOTICE);
74 otx2_logtype_sso = rte_log_register("pmd.event.octeontx2");
75 if (otx2_logtype_sso >= 0)
76 rte_log_set_level(otx2_logtype_sso, RTE_LOG_NOTICE);
78 otx2_logtype_tim = rte_log_register("pmd.event.octeontx2.timer");
79 if (otx2_logtype_tim >= 0)
80 rte_log_set_level(otx2_logtype_tim, RTE_LOG_NOTICE);
82 otx2_logtype_dpi = rte_log_register("pmd.raw.octeontx2.dpi");
83 if (otx2_logtype_dpi >= 0)
84 rte_log_set_level(otx2_logtype_dpi, RTE_LOG_NOTICE);