Commit 4282294b authored by Konrad Sztyber's avatar Konrad Sztyber Committed by Jim Harris
Browse files

env_dpdk: add support for DPDK v23.03.0



Since there were no ABI changes in the interfaces used by SPDK, the
v22.11 functions are reused.

Signed-off-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Change-Id: Iff73405eec197f7ed1752366b6b38c28710a73ec
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17479


Reviewed-by: default avatarAleksey Marchuk <alexeymar@nvidia.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Community-CI: Mellanox Build Bot
parent 37975647
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -39,8 +39,8 @@ dpdk_pci_init(void)
		}
	}

	/* Anything 23.x or higher is not supported. */
	if (year > 22) {
	/* Anything 24.x or higher is not supported. */
	if (year > 23) {
		SPDK_ERRLOG("DPDK version %d.%02d.%d not supported.\n", year, month, minor);
		return -EINVAL;
	}
@@ -57,6 +57,14 @@ dpdk_pci_init(void)
			return -EINVAL;
		}
		g_dpdk_fn_table = &fn_table_2211;
	} else if (year == 23) {
		/* Only 23.03.0 is supported */
		if (month != 3 || minor != 0) {
			SPDK_ERRLOG("DPDK version 23.%02d.%d is not supported.\n", month, minor);
			return -EINVAL;
		}
		/* There were no changes between 22.11 and 23.03, so use the 22.11 implementation */
		g_dpdk_fn_table = &fn_table_2211;
	} else {
		/* Everything else we use the 22.07 implementation. */
		g_dpdk_fn_table = &fn_table_2207;