diff options
author | Peter Dunning <pdunning@solarflare.com> | 2015-07-08 10:05:10 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-09 00:00:40 -0700 |
commit | c936835c1ec6f871f32c9b87a7708700320075b3 (patch) | |
tree | 999f02b4bd00500bee3d131f55b30f3b1118e86d /drivers/net/ethernet/sfc/net_driver.h | |
parent | d065c3c17dae95832badf6329512dd057c905890 (diff) | |
download | linux-c936835c1ec6f871f32c9b87a7708700320075b3.tar.gz linux-c936835c1ec6f871f32c9b87a7708700320075b3.tar.bz2 linux-c936835c1ec6f871f32c9b87a7708700320075b3.zip |
sfc: Report TX completions to BQL after all TX events in interrupt
The limit for BQL is updated each time we call
netdev_tx_completed_queue.
Without this patch the BQL limit was updated for every TX event we
see.
The issue was that this only updated the limit to handle the data
we complete in two events as the first event wouldn't show that
enough traffic had been processed between them.
This was OK when interrupt moderation was off but not when it was
on as more data had to be completed in a single interrupt.
The patch changes this so that we do report the completion to BQL
only when all the TX events in the interrupt have been processed.
Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/net_driver.h')
-rw-r--r-- | drivers/net/ethernet/sfc/net_driver.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethernet/sfc/net_driver.h index d72f522bf9c3..47d1e3a96522 100644 --- a/drivers/net/ethernet/sfc/net_driver.h +++ b/drivers/net/ethernet/sfc/net_driver.h @@ -241,6 +241,8 @@ struct efx_tx_queue { unsigned int read_count ____cacheline_aligned_in_smp; unsigned int old_write_count; unsigned int merge_events; + unsigned int bytes_compl; + unsigned int pkts_compl; /* Members used only on the xmit path */ unsigned int insert_count ____cacheline_aligned_in_smp; |