Commit cd441188 authored by Tomasz Zawadzki's avatar Tomasz Zawadzki Committed by Jim Harris
Browse files

env: add support for DPDK 23.05 dpdk_pci API



Change-Id: I479de2d1a09d69d4c7bcbe2359f2ac250d8f991b
Signed-off-by: default avatarTomasz Zawadzki <tomasz.zawadzki@nutanix.com>
Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/25898


Reviewed-by: default avatarMateusz Kozlowski <mateusz.kozlowski@solidigm.com>
Community-CI: Mellanox Build Bot
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: default avatarSPDK Automated Test System <spdkbot@gmail.com>
Reviewed-by: default avatarJim Harris <jim.harris@nvidia.com>
parent 2f4b066f
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -40,8 +40,8 @@ dpdk_pci_init(void)
		}
	}

	/* Anything 25.x or higher is not supported. */
	if (year >= 25) {
	/* Anything 26.x or higher is not supported. */
	if (year >= 26) {
		goto not_supported;
	}

@@ -73,6 +73,13 @@ dpdk_pci_init(void)
		}
		/* There were no changes between 22.11 and 24.*, so use the 22.11 implementation. */
		g_dpdk_fn_table = &fn_table_2211;
	} else if (year == 25) {
		/* Only 25.03.0 is supported. */
		if (month != 3 || minor != 0) {
			goto not_supported;
		}
		/* There were no changes between 22.11 and 25.*, so use the 22.11 implementation. */
		g_dpdk_fn_table = &fn_table_2211;
	} else if (year < 21 || (year == 21 && month < 11)) {
		goto not_supported;
	} else {