net/bnxt: fix Tx and Rx burst for secondary process
[dpdk.git] / drivers / net / e1000 / e1000_logs.c
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2018 Intel Corporation
3  */
4
5 #include "e1000_logs.h"
6
7 /* declared as extern in e1000_logs.h */
8 int e1000_logtype_init;
9 int e1000_logtype_driver;
10
11 /* avoids double registering of logs if EM and IGB drivers are in use */
12 static int e1000_log_initialized;
13
14 void
15 e1000_igb_init_log(void)
16 {
17         if (!e1000_log_initialized) {
18                 e1000_logtype_init = rte_log_register("pmd.net.e1000.init");
19                 if (e1000_logtype_init >= 0)
20                         rte_log_set_level(e1000_logtype_init, RTE_LOG_NOTICE);
21                 e1000_logtype_driver = rte_log_register("pmd.net.e1000.driver");
22                 if (e1000_logtype_driver >= 0)
23                         rte_log_set_level(e1000_logtype_driver, RTE_LOG_NOTICE);
24                 e1000_log_initialized = 1;
25         }
26 }