ipc: handle unsupported IPC in action register
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 25 Apr 2019 12:45:15 +0000 (13:45 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 5 Jun 2019 09:27:36 +0000 (11:27 +0200)
commitedf73dd330729d9892add288da5e73c171553dd8
treeb65b75ad1c0b03e34eeca0b48a604b34c08262d6
parentc830900d75c55ecebb4bffd86215e117dd4a2089
ipc: handle unsupported IPC in action register

Currently, IPC API will silently ignore unsupported IPC.
Fix the API call and its callers to explicitly handle
unsupported IPC cases.

For primary processes, it is OK to not have IPC because
there may not be any secondary processes in the first place,
and there are valid use cases that disable IPC support, so
all primary process usages are fixed up to ignore IPC
failures.

For secondary processes, IPC will be crucial, so leave all
of the error handling as is.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
14 files changed:
drivers/bus/vdev/vdev.c
drivers/net/mlx4/mlx4.c
drivers/net/mlx4/mlx4.h
drivers/net/mlx4/mlx4_mp.c
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_mp.c
drivers/net/tap/rte_eth_tap.c
lib/librte_eal/common/eal_common_proc.c
lib/librte_eal/common/hotplug_mp.c
lib/librte_eal/common/include/rte_eal.h
lib/librte_eal/common/malloc_mp.c
lib/librte_eal/linux/eal/eal_vfio_mp_sync.c
lib/librte_pdump/rte_pdump.c