common/sfc_efx/base: add match specs class comparison API
[dpdk.git] / drivers / common / sfc_efx / sfc_efx.c
1 /* SPDX-License-Identifier: BSD-3-Clause
2  *
3  * Copyright(c) 2019-2020 Xilinx, Inc.
4  * Copyright(c) 2019 Solarflare Communications Inc.
5  *
6  * This software was jointly developed between OKTET Labs (under contract
7  * for Solarflare) and Solarflare Communications, Inc.
8  */
9
10 #include <rte_log.h>
11
12 #include "sfc_efx_log.h"
13
14 uint32_t sfc_efx_logtype;
15
16 RTE_INIT(sfc_efx_register_logtype)
17 {
18         int ret;
19
20         ret = rte_log_register_type_and_pick_level("pmd.common.sfc_efx",
21                                                    RTE_LOG_NOTICE);
22         sfc_efx_logtype = (ret < 0) ? RTE_LOGTYPE_PMD : ret;
23 }