summaryrefslogtreecommitdiff
path: root/lib/librte_vhost
diff options
context:
space:
mode:
authorYuanhan Liu <yuanhan.liu@linux.intel.com>2016-03-10 12:32:43 +0800
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-03-14 23:59:47 +0100
commitc252bcf9ec32221fa9f95e363acdadd5eed51d8a (patch)
treeac6438175fad5368ed1eb4868f30f0cc85eafd5d /lib/librte_vhost
parenta98240621d414112d74aa99f9d3e91cfe711a0b9 (diff)
downloaddpdk-c252bcf9ec32221fa9f95e363acdadd5eed51d8a.zip
dpdk-c252bcf9ec32221fa9f95e363acdadd5eed51d8a.tar.gz
dpdk-c252bcf9ec32221fa9f95e363acdadd5eed51d8a.tar.xz
vhost: remove wrong unlikely prediction in Rx
VIRTIO_NET_F_MRG_RXBUF is a default feature supported by vhost. Adding unlikely for VIRTIO_NET_F_MRG_RXBUF detection doesn't make sense to me at all. Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Diffstat (limited to 'lib/librte_vhost')
-rw-r--r--lib/librte_vhost/vhost_rxtx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c
index c7a3472..b0bcd05 100644
--- a/lib/librte_vhost/vhost_rxtx.c
+++ b/lib/librte_vhost/vhost_rxtx.c
@@ -589,7 +589,7 @@ uint16_t
rte_vhost_enqueue_burst(struct virtio_net *dev, uint16_t queue_id,
struct rte_mbuf **pkts, uint16_t count)
{
- if (unlikely(dev->features & (1 << VIRTIO_NET_F_MRG_RXBUF)))
+ if (dev->features & (1 << VIRTIO_NET_F_MRG_RXBUF))
return virtio_dev_merge_rx(dev, queue_id, pkts, count);
else
return virtio_dev_rx(dev, queue_id, pkts, count);