eal/freebsd: add config reattach in secondary process
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 27 Jun 2019 11:33:46 +0000 (12:33 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 1 Jul 2019 15:58:44 +0000 (17:58 +0200)
commitb149a7064261c2424ce5eeaeceb884dce46967cb
tree51593ba830b25e6ecf34a6ab7eda94a1a7a06050
parent9c8a35a572e6742eac84042bcc645269b50a0e55
eal/freebsd: add config reattach in secondary process

Linux EAL will attach the shared config at an arbitrary address,
find out where the shared config is mapped in the primary, and
then will reattach it at that exact address.

FreeBSD version doesn't seem to go for that extra reattach step,
which makes one wonder how did it ever work in the first place.

Fix the FreeBSD init to also reattach shared config to the exact
same place the primary process has it.

Fixes: 764bf26873b9 ("add FreeBSD support")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/librte_eal/freebsd/eal/eal.c