eal/linux: add interrupt counter size for vdev
authorJingjing Wu <jingjing.wu@intel.com>
Thu, 24 Aug 2017 02:10:56 +0000 (10:10 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Nov 2017 00:42:04 +0000 (01:42 +0100)
commit29906b97436649bae27effd74686091e7ede8522
tree67e8de83de3be14580e3cea6b35706e1c0636b8c
parentd35cc1fe6a7a1cafb6b70c514bcfb9f0cee9e4b7
eal/linux: add interrupt counter size for vdev

For virtual device, the rte_intr_handle struct is
initialized by the virtual device driver, including
the event fd assignment. If the event fd need to be
read for clean, an argument is required for the proper
event fd read.

This patch adds efd_counter_size in rte_intr_handle
struct to tell the rx interrupt process the read size.

Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
Reviewed-by: Jianfeng Tan <jianfeng.tan@intel.com>
drivers/net/virtio/virtio_user/virtio_user_dev.c
lib/librte_eal/common/include/rte_eal_interrupts.h
lib/librte_eal/linuxapp/eal/eal_interrupts.c