]> git.droids-corp.org - dpdk.git/commit
eal/windows: fix error code for not supported API
authorJie Zhou <jizh@linux.microsoft.com>
Wed, 26 Jan 2022 05:10:34 +0000 (21:10 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 8 Feb 2022 13:19:40 +0000 (14:19 +0100)
commit7e71c4dce375b8aa575dbdcda97936199a4136f3
treefd383fa38115154447c4e2c02dc8045a7c34c670
parent0e4dc6af06228c8504a5538512cb31ed7bf6cc23
eal/windows: fix error code for not supported API

UT memory_autotest on Windows has 2 failed cases on EAL APIs
eal_memalloc_get_seg_fd and eal_memalloc_get_seg_fd_offset. These 2
APIs are not supported on Windows yet. Should return ENOTSUP such that
in test_memory.c these 2 ENOTSUP cases will not be marked as failures,
same as other ENOTSUP cases.

Fixes: 2a5d547a4a9b ("eal/windows: implement basic memory management")
Cc: stable@dpdk.org
Signed-off-by: Jie Zhou <jizh@linux.microsoft.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
lib/eal/windows/eal_memalloc.c