env_dpdk: add support for DPDK main branch

Now that DPDK v23.03.0 has been released, the version on the main branch
points to the next release, v23.07.0-rc0, so we need to adjust the
version check to enable testing against the main branch.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I37d165111c446612d573c19199e4ace6aa24d191
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17480
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
This commit is contained in:
Konrad Sztyber 2023-04-04 12:08:14 +02:00 committed by David Ko
parent f811f17696
commit 0897a2e76d

View File

@ -32,9 +32,9 @@ dpdk_pci_init(void)
* Only DPDK in development has additional suffix past minor version.
*/
if (strlen(release) != 0) {
if (year == 23 && month == 3 && minor == 0) {
if (year == 23 && month == 7 && minor == 0) {
g_dpdk_fn_table = &fn_table_2211;
SPDK_NOTICELOG("DPDK version 23.03.0 not supported yet. Enabled only for validation.\n");
SPDK_NOTICELOG("DPDK version 23.07.0 not supported yet. Enabled only for validation.\n");
return 0;
}
}