diff --git a/dpdkbuild/Makefile b/dpdkbuild/Makefile index cefae048c..6a5b65389 100644 --- a/dpdkbuild/Makefile +++ b/dpdkbuild/Makefile @@ -59,6 +59,11 @@ endif ifeq ($(CONFIG_IPSEC_MB),y) DPDK_DRIVERS += crypto/ipsec_mb DPDK_CFLAGS += -I$(IPSEC_MB_DIR) +# Workaround for DPDK 22.07 and DPDK 22.11.1, +# will be able to remove starting with DPDK 23.03. +ifeq ($(shell grep "#define NO_COMPAT_IMB_API_053" $(SPDK_ROOT_DIR)/dpdk/drivers/crypto/qat/qat_sym_session.c), ) +DPDK_CFLAGS += -DNO_COMPAT_IMB_API_053 +endif DPDK_LDFLAGS += -L$(IPSEC_MB_DIR) endif endif