From: Michal Krawczyk Date: Thu, 17 Sep 2020 05:30:29 +0000 (+0200) Subject: net/ena/base: store admin stats as 64-bit X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=39f817d081ea4341445a019d6d52c53a6239f102;p=dpdk.git net/ena/base: store admin stats as 64-bit To minimize chance of integer overflow, the type of admin statistics was changed from u32 to u64. Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Guy Tzalik Reviewed-by: Stephen Hemminger --- diff --git a/drivers/net/ena/base/ena_com.h b/drivers/net/ena/base/ena_com.h index f507aa47ed..8eacaeab0e 100644 --- a/drivers/net/ena/base/ena_com.h +++ b/drivers/net/ena/base/ena_com.h @@ -192,11 +192,11 @@ struct ena_com_admin_sq { }; struct ena_com_stats_admin { - u32 aborted_cmd; - u32 submitted_cmd; - u32 completed_cmd; - u32 out_of_space; - u32 no_completion; + u64 aborted_cmd; + u64 submitted_cmd; + u64 completed_cmd; + u64 out_of_space; + u64 no_completion; }; struct ena_com_admin_queue {