aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/net_driver.h
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2012-05-21 20:27:58 -0400
committerBen Hutchings <bhutchings@solarflare.com>2012-08-24 14:00:27 -0400
commit14bf718fb97efe9ff649c317e7d87a3617b13e7c (patch)
tree421f6e0546d8d04ccad78292178c0fc560773a12 /drivers/net/ethernet/sfc/net_driver.h
parent7668ff9c2ad7d354655e23afa836a92d54d2ea63 (diff)
sfc: Stop TX queues before they fill up
We now have a definite upper bound on the number of descriptors per skb; use that to stop the queue when the next packet might not fit. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/net_driver.h')
-rw-r--r--drivers/net/ethernet/sfc/net_driver.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethernet/sfc/net_driver.h
index 0ac01fa6e63c..28a6d6258692 100644
--- a/drivers/net/ethernet/sfc/net_driver.h
+++ b/drivers/net/ethernet/sfc/net_driver.h
@@ -665,6 +665,8 @@ struct vfdi_status;
665 * should be allocated for this NIC 665 * should be allocated for this NIC
666 * @rxq_entries: Size of receive queues requested by user. 666 * @rxq_entries: Size of receive queues requested by user.
667 * @txq_entries: Size of transmit queues requested by user. 667 * @txq_entries: Size of transmit queues requested by user.
668 * @txq_stop_thresh: TX queue fill level at or above which we stop it.
669 * @txq_wake_thresh: TX queue fill level at or below which we wake it.
668 * @tx_dc_base: Base qword address in SRAM of TX queue descriptor caches 670 * @tx_dc_base: Base qword address in SRAM of TX queue descriptor caches
669 * @rx_dc_base: Base qword address in SRAM of RX queue descriptor caches 671 * @rx_dc_base: Base qword address in SRAM of RX queue descriptor caches
670 * @sram_lim_qw: Qword address limit of SRAM 672 * @sram_lim_qw: Qword address limit of SRAM
@@ -775,6 +777,9 @@ struct efx_nic {
775 777
776 unsigned rxq_entries; 778 unsigned rxq_entries;
777 unsigned txq_entries; 779 unsigned txq_entries;
780 unsigned int txq_stop_thresh;
781 unsigned int txq_wake_thresh;
782
778 unsigned tx_dc_base; 783 unsigned tx_dc_base;
779 unsigned rx_dc_base; 784 unsigned rx_dc_base;
780 unsigned sram_lim_qw; 785 unsigned sram_lim_qw;