net/mlx4: fix ring wraparound compiler hint
authorMatan Azrad <matan@mellanox.com>
Thu, 2 Nov 2017 16:42:46 +0000 (16:42 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 Nov 2017 19:22:08 +0000 (20:22 +0100)
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 <matan@mellanox.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4_rxtx.c

index f1c8dae..3169fe5 100644 (file)
@@ -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. */