[dpdk-dev] [PATCH] fbarray: support no-shconf

Thomas Monjalon thomas at monjalon.net
Tue May 22 22:38:30 CEST 2018


22/05/2018 18:35, Anatoly Burakov:
> When using --no-shconf option, the expectation is that no multiprocess
> will be supported as no shared files are created. However, fbarray
> still creates some shared files that prevent multiple processes with
> the same prefix from starting.
> 
> Fix this by avoiding creating shared files whenever noshconf option is
> specified. Since virtual areas we get from eal_get_virtual_area() are
> read-only, remap them as writable.
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
> 
> Notes:
>     Without this patch, EAL flags autotest will fail when attempting
>     to run a test with the same prefix as primary, and --no-shconf
>     specified.
>     
>     Technically, we never spelled out any guarantees about --no-shconf
>     mode, and we've been sloppy about it, so even though we don't create
>     the shared config, we still create lots of other miscelaneous files.
>     This patch only fixes issue with fbarray, as this affects intialization
>     of different primaries with the same prefix (fbarrays are shared too),
>     but does not address the other instances where we create "shared" files
>     such as hugepage info.

Just for confirmation: this patch won't be integrated in 18.05.





More information about the dev mailing list