HomeFreeBSD

ixgbe: move increments after evaluations

Description

ixgbe: move increments after evaluations

The retry variable was being incremented before it was evaluated by the
subsequent conditional against the maximum retries to figure out which
message to print. So we'll move the increment op to the end.

Signed-off-by: Jeb Cramer <jeb.j.cramer@intel.com>
Signed-off-by: Guinan Sun <guinanx.sun@intel.com>
Reviewed-by: Wei Zhao <wei.zhao1@intel.com>

Approved by: imp
Obtained from: DPDK (390445ec30b4c52a3d2887c3d2a202d9cf37ea8e)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D31621

(cherry picked from commit dc11ba4eb3fe5cce615f361de83e85e07005ca24)

Details

Provenance
Guinan Sun <guinanx.sun@intel.com>Authored on Jul 9 2020, 8:00 AM
Kevin Bowling <kbowling@FreeBSD.org>Committed on Sep 14 2021, 12:46 AM
Differential Revision
D31621: ixgbe: Update shared code
Parents
rG7e7e6f8a5c94: ixgbe: remove whitespace in function comments
Branches
Unknown
Tags
Unknown