net/qede: limit Rx ring index read for debug
authorDavid Marchand <david.marchand@redhat.com>
Fri, 27 Sep 2019 11:28:49 +0000 (13:28 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 8 Oct 2019 10:14:31 +0000 (12:14 +0200)
commitff3555d6849748f84056ba2f517dc50ac5718974
tree3344e3a502547bc48359e7761aecb16f43a875af
parente404f39ca9aff7df0373584d58068d5e39872e0c
net/qede: limit Rx ring index read for debug

Caught by clang, this idx value is only used for a debug message when
the mbufs allocation fails.
No need to use idx as a temporary storage.

Fixes: 8f2312474529 ("net/qede: fix performance bottleneck in Rx path")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Rasesh Mody <rmody@marvell.com>
drivers/net/qede/qede_rxtx.c