i40e/i40evf: Add a stat to track how many times we have to do a force WB
When in NAPI with interrupts disabled, the HW needs to be forced to do a write back on TX if the number of descriptors pending are less than a cache line. This stat helps keep track of how many times we get into this situation. Change-ID: I76c1bcc7ebccd6bffcc5aa33bfe05f2fa1c9a984 Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

parent
4f2f017c61
commit
164c9f5463
@@ -1363,8 +1363,10 @@ int i40evf_napi_poll(struct napi_struct *napi, int budget)
|
||||
/* If work not completed, return budget and polling will return */
|
||||
if (!clean_complete) {
|
||||
tx_only:
|
||||
if (arm_wb)
|
||||
if (arm_wb) {
|
||||
q_vector->tx.ring[0].tx_stats.tx_force_wb++;
|
||||
i40evf_force_wb(vsi, q_vector);
|
||||
}
|
||||
return budget;
|
||||
}
|
||||
|
||||
|
@@ -201,6 +201,7 @@ struct i40e_tx_queue_stats {
|
||||
u64 tx_busy;
|
||||
u64 tx_done_old;
|
||||
u64 tx_linearize;
|
||||
u64 tx_force_wb;
|
||||
};
|
||||
|
||||
struct i40e_rx_queue_stats {
|
||||
|
Reference in New Issue
Block a user