From 1c8eaa3d6c602e12d9c225e64926628905d7a5a0 Mon Sep 17 00:00:00 2001 From: Alfredo Cardigliano Date: Wed, 11 Oct 2023 14:54:26 +0200 Subject: [PATCH] Fix ice-zc LM support --- drivers/intel/ice/ice-1.12.7-zc/src/Kbuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/intel/ice/ice-1.12.7-zc/src/Kbuild b/drivers/intel/ice/ice-1.12.7-zc/src/Kbuild index 0a79dbdec1..96086ea505 100644 --- a/drivers/intel/ice/ice-1.12.7-zc/src/Kbuild +++ b/drivers/intel/ice/ice-1.12.7-zc/src/Kbuild @@ -87,6 +87,12 @@ endif # HAVE_PF_RING_NO_RDMA #obj-m += auxiliary.o +# LM support is only enabled if the kernel has features for LM v1 protocol. +# If the kernel lacks the necessary infrastructure, LM support will be disabled. +ifeq ($(call is_kcompat_defined,HAVE_LMV1_SUPPORT),1) +export ENABLE_LM_SUPPORT := 1 +endif + EXTRA_CFLAGS += -DHAVE_PF_RING KBUILD_EXTRA_SYMBOLS=${PF_RING_PATH}/Module.symvers