]> www.infradead.org Git - users/dwmw2/linux.git/commit
gve: Fix XDP TX completion handling when counters overflow
authorJoshua Washington <joshwash@google.com>
Tue, 16 Jul 2024 17:10:41 +0000 (10:10 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 18 Jul 2024 05:11:20 +0000 (22:11 -0700)
commit03b54bad26f3c78bb1f90410ec3e4e7fe197adc9
treef043beb6b9c71ac1bec27578048d35a54f615191
parent0e03c643dc9389e61fa484562dae58c8d6e96d63
gve: Fix XDP TX completion handling when counters overflow

In gve_clean_xdp_done, the driver processes the TX completions based on
a 32-bit NIC counter and a 32-bit completion counter stored in the tx
queue.

Fix the for loop so that the counter wraparound is handled correctly.

Fixes: 75eaae158b1b ("gve: Add XDP DROP and TX support for GQI-QPL format")
Signed-off-by: Joshua Washington <joshwash@google.com>
Signed-off-by: Praveen Kaligineedi <pkaligineedi@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240716171041.1561142-1-pkaligineedi@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/google/gve/gve_tx.c