From: Matan Azrad Date: Thu, 2 Nov 2017 16:42:46 +0000 (+0000) Subject: net/mlx4: fix ring wraparound compiler hint X-Git-Tag: spdx-start~952 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=05be4516c983ed233e3cc3262a2f2a23956c2073;p=dpdk.git net/mlx4: fix ring wraparound compiler hint Remove unlikely hint from WQ wraparound check because it is expected case. Fixes: c3c977bbecbd ("net/mlx4: add Tx bypassing Verbs") Signed-off-by: Matan Azrad Acked-by: Adrien Mazarguil --- diff --git a/drivers/net/mlx4/mlx4_rxtx.c b/drivers/net/mlx4/mlx4_rxtx.c index f1c8daecf8..3169fe56ea 100644 --- a/drivers/net/mlx4/mlx4_rxtx.c +++ b/drivers/net/mlx4/mlx4_rxtx.c @@ -291,7 +291,7 @@ mlx4_post_send(struct txq *txq, struct rte_mbuf *pkt) addr = rte_pktmbuf_mtod(buf, uintptr_t); rte_prefetch0((volatile void *)addr); /* Handle WQE wraparound. */ - if (unlikely(dseg >= (struct mlx4_wqe_data_seg *)sq->eob)) + if (dseg >= (struct mlx4_wqe_data_seg *)sq->eob) dseg = (struct mlx4_wqe_data_seg *)sq->buf; dseg->addr = rte_cpu_to_be_64(addr); /* Memory region key for this memory pool. */