vhost: inject only one interrupt for a batch of packets
authorHuawei Xie <huawei.xie@intel.com>
Mon, 21 Sep 2015 08:16:14 +0000 (16:16 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 29 Sep 2015 23:19:19 +0000 (01:19 +0200)
commit5dab2f11370fd9f7d76efa453e7e4277cf33f140
tree8c32af3acd2687b5caddf6c8ad3cbd442c2f3fc1
parent9702b2b53f250aa50973e6d86abce45b4a919eda
vhost: inject only one interrupt for a batch of packets

In merge-able RX path, vhost injects interrupts to guest for each packet.
This should degrade performance a lot.
This patch fixes this issue by injecting one interrupt for a batch of packets.

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Jianfeng Tan <jianfeng.tan@intel.com>
lib/librte_vhost/vhost_rxtx.c