eal/bsd: remove clean up of files at startup
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 10 Jan 2019 11:34:08 +0000 (11:34 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 14 Jan 2019 14:23:12 +0000 (15:23 +0100)
commit97257eee2d39dbbedec4af2367430d359c373582
treec62ceb2f4643d690e42f4c178683e3690fd76090
parent66d9f61de0885bd07662a016542600fe139d4eed
eal/bsd: remove clean up of files at startup

On FreeBSD, closing the file descriptor drops the lock even if the
file descriptor was mmap'ed. This leads to the cleanup at the end
of EAL init to remove fbarray files that are still in use by the
process itself.

However, instead of working around this issue, we can take advantage
of the fact that FreeBSD doesn't really create any per-process
files in the first place, so no cleanup is actually needed.

Fixes: 0a529578f162 ("eal: clean up unused files on initialization")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/bsdapp/eal/eal.c