Skip to contentSkip to conversation

app/testpmd : return if no packets in GRO heavy weight mode

PATCH Applied Kumara Parameshwaran 2 participants 2 messages Feb 25, 2024 – Feb 26, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 app/testpmd : return if no packets in GRO heavy weight mode

If there are no packets flushed in GRO heavy weight mode, return false as this fall through code would return true indicating that packets are available

Fixes 461c287ab553 ("app/testpmd: fix GRO packets flush on timeout")
---
 app/test-pmd/csumonly.c | 2 ++
 1 file changed, 2 insertions(+)
app/test-pmd/csumonly.c +2 -0
index d73f08b2c6..6711dda42e 100644
@@ -1142,6 +1142,8 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
 						gro_pkts_num);
 				fs->gro_times = 0;
 			}
+			if (nb_rx == 0)
+				return false;
 		}
 
 		pkts_ip_csum_recalc(pkts_burst, nb_rx, tx_offloads);
Signature · 1 line
2.25.1