[v1] app/testpmd : return if no packets in GRO heavy weight mode
Checks
Commit Message
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")
Cc: stable@dpdk.org
Signed-off-by: Kumara Parameshwaran <kumaraparamesh92@gmail.com>
---
app/test-pmd/csumonly.c | 2 ++
1 file changed, 2 insertions(+)
Comments
On 2/25/2024 6:16 AM, Kumara Parameshwaran wrote:
> 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")
> Cc: stable@dpdk.org
>
> Signed-off-by: Kumara Parameshwaran <kumaraparamesh92@gmail.com>
>
Reviewed-by: Ferruh Yigit <ferruh.yigit@amd.com>
Applied to dpdk-next-net/main, thanks.
@@ -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);