common/sfc_efx: fix debug compilation control

efsys.h belongs to common/sfc_efx and common driver debug
toggle should be used instead of net/sfc toggle.

Fixes: 5e111ed87999 ("net/sfc: introduce common driver library")
Cc: stable@dpdk.org

Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
This commit is contained in:
Andrew Rybchenko 2021-11-05 11:33:30 +03:00 committed by Ferruh Yigit
parent e848218741
commit 5e973b3fa1

View File

@ -125,7 +125,7 @@ prefetch_read_once(const volatile void *addr)
/* Enable Riverhead support */
#define EFSYS_OPT_RIVERHEAD 1
#ifdef RTE_LIBRTE_SFC_EFX_DEBUG
#ifdef RTE_DEBUG_COMMON_SFC_EFX
#define EFSYS_OPT_CHECK_REG 1
#else
#define EFSYS_OPT_CHECK_REG 0
@ -742,7 +742,7 @@ typedef uint64_t efsys_stat_t;
/* RTE_VERIFY from DPDK treats expressions with % operator incorrectly,
* so we re-implement it here
*/
#ifdef RTE_LIBRTE_SFC_EFX_DEBUG
#ifdef RTE_DEBUG_COMMON_SFC_EFX
#define EFSYS_ASSERT(_exp) \
do { \
if (unlikely(!(_exp))) \