|
@@ -813,7 +813,10 @@ static void i40e_update_vsi_stats(struct i40e_vsi *vsi)
|
|
struct i40e_eth_stats *oes;
|
|
struct i40e_eth_stats *oes;
|
|
struct i40e_eth_stats *es; /* device's eth stats */
|
|
struct i40e_eth_stats *es; /* device's eth stats */
|
|
u32 tx_restart, tx_busy;
|
|
u32 tx_restart, tx_busy;
|
|
|
|
+ struct i40e_ring *p;
|
|
u32 rx_page, rx_buf;
|
|
u32 rx_page, rx_buf;
|
|
|
|
+ u64 bytes, packets;
|
|
|
|
+ unsigned int start;
|
|
u64 rx_p, rx_b;
|
|
u64 rx_p, rx_b;
|
|
u64 tx_p, tx_b;
|
|
u64 tx_p, tx_b;
|
|
u16 q;
|
|
u16 q;
|
|
@@ -837,10 +840,6 @@ static void i40e_update_vsi_stats(struct i40e_vsi *vsi)
|
|
rx_buf = 0;
|
|
rx_buf = 0;
|
|
rcu_read_lock();
|
|
rcu_read_lock();
|
|
for (q = 0; q < vsi->num_queue_pairs; q++) {
|
|
for (q = 0; q < vsi->num_queue_pairs; q++) {
|
|
- struct i40e_ring *p;
|
|
|
|
- u64 bytes, packets;
|
|
|
|
- unsigned int start;
|
|
|
|
-
|
|
|
|
/* locate Tx ring */
|
|
/* locate Tx ring */
|
|
p = ACCESS_ONCE(vsi->tx_rings[q]);
|
|
p = ACCESS_ONCE(vsi->tx_rings[q]);
|
|
|
|
|