mem: fix segment fd API error code for external segment
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 13 Dec 2018 11:43:15 +0000 (11:43 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 20 Dec 2018 21:51:49 +0000 (22:51 +0100)
commit525670756a566b3efa88eeae53755a770f0c14fe
treec55a956f5c34bc9b129fccbccecb725ea0039071
parentbed794188693bfed53ab6d94a441f4d8f102e7c4
mem: fix segment fd API error code for external segment

Segment fd API does not support getting segment fd's from
externally allocated memory, so return proper error code
on any attempts to do so. This changes API behavior, so
document the change as well.

Fixes: 5282bb1c3695 ("mem: allow memseg lists to be marked as external")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
doc/guides/rel_notes/release_19_02.rst
lib/librte_eal/common/eal_common_memory.c