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: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: Iff73405eec197f7ed1752366b6b38c28710a73ec Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17479 Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Community-CI: Mellanox Build Bot
This commit is contained in:
parent
3797564736
commit
f811f17696
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user