vfio: remove uneccessary IPC for group fd clear
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 12 Jul 2018 14:01:44 +0000 (22:01 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 20 Jul 2018 12:26:16 +0000 (14:26 +0200)
commit6a015363b3eacf1f2d245734a58c9dfd47bc386d
tree3b640a15af468387fde280a5eefbb0810dcc1d11
parentab53203e194b7d06f44967225a217321496cee5e
vfio: remove uneccessary IPC for group fd clear

Clear vfio_group_fd is not necessary to involve any IPC.
Also, current IPC implementation for SOCKET_CLR_GROUP is not
correct. rte_vfio_clear_group on secondary will always fail,
that prevent device be detached correctly on a secondary process.
The patch simply removes all IPC related stuff in
rte_vfio_clear_group.

Fixes: 83a73c5fef66 ("vfio: use generic multi-process channel")
Cc: stable@dpdk.org
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linuxapp/eal/eal_vfio.c
lib/librte_eal/linuxapp/eal/eal_vfio.h
lib/librte_eal/linuxapp/eal/eal_vfio_mp_sync.c