[PATCH v19.11 LTS] kni: fix build for Suse
Ferruh Yigit
ferruh.yigit at amd.com
Fri Dec 16 13:11:01 CET 2022
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: stable at dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit at amd.com>
---
Cc: christian.ehrhardt at canonical.com
Cc: Daxue Gao <daxuex.gao at 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
More information about the dev
mailing list