gve: Modify rx_buf_alloc_fail counter centrally and closer to failure
authorAnkit Garg <nktgrg@google.com>
Wed, 24 Jan 2024 20:54:35 +0000 (20:54 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Jan 2024 01:18:56 +0000 (17:18 -0800)
commit3df18416267bb0d390399f4e63f74f7d76c5d92e
treeff7d42cd134d2b75245018219381060c446cd20a
parent5535fcc59a16aea4bd454a97b4b73faa8a6b1c69
gve: Modify rx_buf_alloc_fail counter centrally and closer to failure

Previously, each caller of gve_rx_alloc_buffer had to increase counter
 and as a result one caller was not tracking those failure. Increasing
 counters at a common location now so callers don't have to duplicate
 code or miss counter management.

Signed-off-by: Ankit Garg <nktgrg@google.com>
Link: https://lore.kernel.org/r/20240124205435.1021490-1-nktgrg@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/google/gve/gve_rx.c