From: Yuanhan Liu Date: Thu, 10 Mar 2016 04:32:43 +0000 (+0800) Subject: vhost: remove wrong unlikely prediction in Rx X-Git-Tag: spdx-start~7436 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c252bcf9ec32221fa9f95e363acdadd5eed51d8a;p=dpdk.git 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 --- diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c index c7a34721ec..b0bcd057bc 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);