fbarray: support --no-shconf mode
authorAnatoly Burakov <anatoly.burakov@intel.com>
Fri, 13 Jul 2018 12:47:57 +0000 (13:47 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 13 Jul 2018 13:32:05 +0000 (15:32 +0200)
commit3ee2cde248a77d00dcba830ee282821491748323
tree12ee57f9a5cf4725e21d5d60d291ded942bbc3db
parentadf1d867361cbe1b5e6803f22520da9da1187b4a
fbarray: support --no-shconf mode

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@intel.com>
lib/librte_eal/common/eal_common_fbarray.c