fbarray: fix detach in --no-shconf mode
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 4 Sep 2018 15:15:42 +0000 (16:15 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 19 Sep 2018 12:40:18 +0000 (14:40 +0200)
commit310aa7c04143105200fd81ae3e5f680e22c9bb6a
treec281cf9580a5a5fc2c41bf97a785e65b54f11b69
parentb0236c7cf76128b36b7f1e47d5bbd83e2e3f00de
fbarray: fix detach in --no-shconf mode

In noshconf mode, no shared files are created, but we're still trying
to unlink them, resulting in detach/destroy failure even though it
should have succeeded. Fix it by exiting early in noshconf mode.

Fixes: 3ee2cde248a7 ("fbarray: support --no-shconf mode")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_eal/common/eal_common_fbarray.c