Wrong macro is used in the patch that detects if '.ndo_tx_timeout'
has 'txqueue' parameter or not, which is causing build error.

Fixed by using correct macro.

Bugzilla ID: 1141
Fixes: d43fa3e198c0 ("kni: fix build for SLES15-SP3 (Make)")
Cc: sta...@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yi...@amd.com>
---
Cc: christian.ehrha...@canonical.com
Cc: Daxue Gao <daxuex....@intel.com>
---
 kernel/linux/kni/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/linux/kni/Makefile b/kernel/linux/kni/Makefile
index bf0efab96b33..d125783213fb 100644
--- a/kernel/linux/kni/Makefile
+++ b/kernel/linux/kni/Makefile
@@ -22,7 +22,7 @@ MODULE_CFLAGS += -Wall -Werror
 ifdef CONFIG_SUSE_KERNEL
    KSRC = /lib/modules/$(shell uname -r)/source
    ifneq ($(shell grep -A 1 "ndo_tx_timeout" $(KSRC)/include/linux/netdevice.h 
| grep -o txqueue),)
-      MODULE_CFLAGS += -DHAVE_TX_TIMEOUT_TXQUEUE
+      MODULE_CFLAGS += -DHAVE_ARG_TX_QUEUE
    endif
 endif
 
-- 
2.25.1

Reply via email to