1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2020-2021 Xilinx, Inc. 3 */ 4 5 #ifndef _SFC_VDPA_DEBUG_H_ 6 #define _SFC_VDPA_DEBUG_H_ 7 8 #include <rte_debug.h> 9 10 #ifdef RTE_LIBRTE_SFC_VDPA_DEBUG 11 /* Avoid dependency from RTE_LOG_DP_LEVEL to be able to enable debug check 12 * in the driver only. 13 */ 14 #define SFC_VDPA_ASSERT(exp) RTE_VERIFY(exp) 15 #else 16 /* If the driver debug is not enabled, follow DPDK debug/non-debug */ 17 #define SFC_VDPA_ASSERT(exp) RTE_ASSERT(exp) 18 #endif 19 20 #endif /* _SFC_VDPA_DEBUG_H_ */ 21