aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2021-10-05 17:30:30 -0700
committerDavid S. Miller <[email protected]>2021-10-06 15:11:51 +0100
commit2f57d4975fa027eabd35fdf23a49f8222ef3abf2 (patch)
tree241e39731a4a09e04fc447085c1eb5f080e166d6 /scripts/gdb/linux/utils.py
parentd34367991933d28bd7331f67a759be9a8c474014 (diff)
gve: fix gve_get_stats()
gve_get_stats() can report wrong numbers if/when u64_stats_fetch_retry() returns true. What is needed here is to sample values in temporary variables, and only use them after each loop is ended. Fixes: f5cedc84a30d ("gve: Add transmit and receive support") Signed-off-by: Eric Dumazet <[email protected]> Cc: Catherine Sullivan <[email protected]> Cc: Sagi Shahar <[email protected]> Cc: Jon Olson <[email protected]> Cc: Willem de Bruijn <[email protected]> Cc: Luigi Rizzo <[email protected]> Cc: Jeroen de Borst <[email protected]> Cc: Tao Liu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions