vhost: refactor eventfd copy handler
authorPavel Boldin <pboldin@mirantis.com>
Wed, 28 Oct 2015 18:33:47 +0000 (20:33 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 30 Oct 2015 19:03:51 +0000 (20:03 +0100)
commite658d997498502e95aa4e5dd8970c3d7a1614873
treec07d074694022583184611c8cb1d6be7c4c0d38c
parentd739ba4c6abf00eeeb680ab4e9540899182ea74d
vhost: refactor eventfd copy handler

* Move ioctl `EVENTFD_COPY' code to a separate function
* Remove extra #includes
* Introduce function fget_from_files
* Fix ioctl return values

Signed-off-by: Pavel Boldin <pboldin@mirantis.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
lib/librte_vhost/eventfd_link/eventfd_link.c