summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ethtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethtool.c b/ethtool.c
index 16efb42..6b2b7c8 100644
--- a/ethtool.c
+++ b/ethtool.c
@@ -2899,7 +2899,7 @@ static int do_srxfhindir(int fd, struct ifreq *ifr)
j = -1;
for (i = 0; i < indir->size; i++) {
- if (i >= indir->size * partial / sum) {
+ while (i >= indir->size * partial / sum) {
j += 1;
weight = get_u32(rxfhindir_weight[j], 0);
partial += weight;