Skip to content
Permalink
Browse files
net/i40e: fix unsigned stat widths
Change i40e_update_vsi_stats and struct i40e_vsi to use u64 fields to match
the width of the stats counters in struct i40e_rx_queue_stats.

Signed-off-by: Joe Damato <jdamato@fastly.com>
  • Loading branch information
jdamato-fsly authored and intel-lab-lkp committed Dec 8, 2021
1 parent a919bf2 commit 0231b0742caf367642f2a31147e272cf48cff9d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
@@ -851,8 +851,8 @@ struct i40e_vsi {
u32 tx_busy;
u64 tx_linearize;
u64 tx_force_wb;
u32 rx_buf_failed;
u32 rx_page_failed;
u64 rx_buf_failed;
u64 rx_page_failed;

/* These are containers of ring pointers, allocated at run-time */
struct i40e_ring **rx_rings;
@@ -812,7 +812,7 @@ static void i40e_update_vsi_stats(struct i40e_vsi *vsi)
struct i40e_eth_stats *es; /* device's eth stats */
u32 tx_restart, tx_busy;
struct i40e_ring *p;
u32 rx_page, rx_buf;
u64 rx_page, rx_buf;
u64 bytes, packets;
unsigned int start;
u64 tx_linearize;

0 comments on commit 0231b07

Please sign in to comment.