net/octeontx2: fix CQE ring prefetch on wrap around
authorKommula Shiva Shankar <kshankar@marvell.com>
Fri, 13 Sep 2019 15:31:12 +0000 (21:01 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 8 Oct 2019 10:14:31 +0000 (12:14 +0200)
commitbd3e64cb1c38695fb410903feddd287046687271
treeb78df7dd34b0856c0969f79d5edc2943b178b2af
parent0cb4150f82ff77e1c74826ae425f36388d9172fb
net/octeontx2: fix CQE ring prefetch on wrap around

When computing the head of CQE ring of prefetch, use qmask to point to
the correct head index on wrap around case.

Fixes: cc4d7693f2d9 ("net/octeontx2: support Rx")
Cc: stable@dpdk.org
Signed-off-by: Kommula Shiva Shankar <kshankar@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/octeontx2/otx2_rx.c