|
@@ -879,6 +879,7 @@ static void i40e_update_vsi_stats(struct i40e_vsi *vsi)
|
|
|
u32 rx_page, rx_buf;
|
|
|
u64 bytes, packets;
|
|
|
unsigned int start;
|
|
|
+ u64 tx_linearize;
|
|
|
u64 rx_p, rx_b;
|
|
|
u64 tx_p, tx_b;
|
|
|
u16 q;
|
|
@@ -897,7 +898,7 @@ static void i40e_update_vsi_stats(struct i40e_vsi *vsi)
|
|
|
*/
|
|
|
rx_b = rx_p = 0;
|
|
|
tx_b = tx_p = 0;
|
|
|
- tx_restart = tx_busy = 0;
|
|
|
+ tx_restart = tx_busy = tx_linearize = 0;
|
|
|
rx_page = 0;
|
|
|
rx_buf = 0;
|
|
|
rcu_read_lock();
|
|
@@ -914,6 +915,7 @@ static void i40e_update_vsi_stats(struct i40e_vsi *vsi)
|
|
|
tx_p += packets;
|
|
|
tx_restart += p->tx_stats.restart_queue;
|
|
|
tx_busy += p->tx_stats.tx_busy;
|
|
|
+ tx_linearize += p->tx_stats.tx_linearize;
|
|
|
|
|
|
/* Rx queue is part of the same block as Tx queue */
|
|
|
p = &p[1];
|
|
@@ -930,6 +932,7 @@ static void i40e_update_vsi_stats(struct i40e_vsi *vsi)
|
|
|
rcu_read_unlock();
|
|
|
vsi->tx_restart = tx_restart;
|
|
|
vsi->tx_busy = tx_busy;
|
|
|
+ vsi->tx_linearize = tx_linearize;
|
|
|
vsi->rx_page_failed = rx_page;
|
|
|
vsi->rx_buf_failed = rx_buf;
|
|
|
|