mbox series

[v3,0/3] Mempool fixes for FreeBSD

Message ID 20211102100817.916303-1-dkozlyuk@nvidia.com (mailing list archive)
Headers
Series Mempool fixes for FreeBSD |

Message

Dmitry Kozlyuk Nov. 2, 2021, 10:08 a.m. UTC
  mempool_autotest was failing on FreeBSD,
because rte_virt2iova() is not implemented.
After the test started using memzones,
it appeared that in --no-huge memzones have iova=RTE_BAD_IOVA,
which is unexpected and contradicts with selected IOVA-as-PA.
Intead of working around this in the unit test,
fix FreeBSD EAL to select IOVA-as-VA in --no-huge mode.

v3:
  * Fix IOVA mode logging (Bruce).
v2:
  * Add the EAL changes.
  * Fix a failure with --no-huge (Olivier).

Dmitry Kozlyuk (3):
  eal/freebsd: fix IOVA mode selection
  app/test: fix mempool test on FreeBSD
  app/test: fix mempool test in no-huge mode

 app/test/test_mempool.c | 62 ++++++++++++++++++++++-------------------
 lib/eal/freebsd/eal.c   | 37 ++++++++++++++++--------
 2 files changed, 58 insertions(+), 41 deletions(-)
  

Comments

Thomas Monjalon Nov. 3, 2021, 5:39 p.m. UTC | #1
02/11/2021 11:08, Dmitry Kozlyuk:
> mempool_autotest was failing on FreeBSD,
> because rte_virt2iova() is not implemented.
> After the test started using memzones,
> it appeared that in --no-huge memzones have iova=RTE_BAD_IOVA,
> which is unexpected and contradicts with selected IOVA-as-PA.
> Intead of working around this in the unit test,
> fix FreeBSD EAL to select IOVA-as-VA in --no-huge mode.
> 
> v3:
>   * Fix IOVA mode logging (Bruce).
> v2:
>   * Add the EAL changes.
>   * Fix a failure with --no-huge (Olivier).
> 
> Dmitry Kozlyuk (3):
>   eal/freebsd: fix IOVA mode selection
>   app/test: fix mempool test on FreeBSD
>   app/test: fix mempool test in no-huge mode

Series applied, thanks.