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

Details

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