Commit ce5116fb authored by Jaroslaw's avatar Jaroslaw Committed by Tomasz Zawadzki
Browse files

lib/env_dpdk: updated version for DPDK 24.07 main tests



DPDK main development now targets DPDK 24.07 release.
Updated to that version for validation purposes.

Change-Id: Ib83afbac64b9cc424dc23af3a255413a19ca9e60
Signed-off-by: default avatarJaroslaw <jaroslawx.chachulski@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22617


Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarMarek Chomnicki <marek.chomnicki@intel.com>
Reviewed-by: default avatarKamil Godzwon <kamilx.godzwon@intel.com>
Reviewed-by: default avatarPawel Piatek <pawelx.piatek@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
parent 3eadb9c5
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ dpdk_pci_init(void)
	 * Only DPDK in development has additional suffix past minor version.
	 */
	if (strlen(release) != 0) {
		if (year == 24 && month == 3 && minor == 0) {
		if (year == 24 && month == 7 && minor == 0) {
			g_dpdk_fn_table = &fn_table_2211;
			SPDK_NOTICELOG("In-development %s is used. There is no support for it in SPDK. "
				       "Enabled only for validation.\n", rte_version());
@@ -40,8 +40,8 @@ dpdk_pci_init(void)
		}
	}

	/* Anything 24.x or higher is not supported. */
	if (year > 23) {
	/* Anything 25.x or higher is not supported. */
	if (year >= 25) {
		SPDK_ERRLOG("DPDK version %d.%02d.%d not supported.\n", year, month, minor);
		return -EINVAL;
	}
@@ -68,6 +68,14 @@ dpdk_pci_init(void)
		}
		/* There were no changes between 22.11 and 23.11, so use the 22.11 implementation. */
		g_dpdk_fn_table = &fn_table_2211;
	} else if (year == 24) {
		/* Only 24.03.0 is supported. */
		if (month != 3 || minor != 0) {
			SPDK_ERRLOG("DPDK version 24.%02d.%d is not supported.\n", month, minor);
			return -EINVAL;
		}
		/* There were no changes between 22.11 and 24.03, so use the 22.11 implementation. */
		g_dpdk_fn_table = &fn_table_2211;
	} else if (year < 21 || (year == 21 && month < 11)) {
		SPDK_ERRLOG("DPDK version %02d.%02d.%d is not supported.\n", year, month, minor);
		return -EINVAL;