Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/ena/base: limit exponential backoff
[ upstream commit 4b378679c88ff231b97b71aaedc2d424e82f1aba ] Limit the value of the exponent used for this backoff at (1<<16) to prevent it from reaching to an excessive value (1<<32) or potentially even overflowing. In addition, for uniformity and readability purposes, the min/max parameter in the calls of ENA_MIN32 and ENA_MAX32 macros was changed to be first. Fixes: 0c84e04 ("net/ena/base: make delay exponential in polling functions") Signed-off-by: Shai Brandes <shaibran@amazon.com> Reviewed-by: Amit Bernstein <amitbern@amazon.com>
- Loading branch information