summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_stereg.h
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-04-06 07:58:32 +0000
committerru <ru@FreeBSD.org>2004-04-06 07:58:32 +0000
commit98d9fd07bb5e57f6a66d22479ead515743049923 (patch)
treeead8d2327d2836379c3ef48df57b8fd9ca05acc5 /sys/pci/if_stereg.h
parent728ea9afc21bf876dc79cb1a03479a112317abee (diff)
downloadFreeBSD-src-98d9fd07bb5e57f6a66d22479ead515743049923.zip
FreeBSD-src-98d9fd07bb5e57f6a66d22479ead515743049923.tar.gz
- Improved the TX performance with polling(4) by only checking the
status registers for error conditions and updating statistics when there are cycles left (inspired by the nge(4) driver). - Removed the TX list counter and the producer/consumer gap; it's enough to just ensure we don't reuse the last (free) descriptor, as the chip may not have read its next pointer yet. If we reuse it, the TX may stall under a heavy TX load with polling enabled. - Dropped code to recharge the watchdog timer, it's pointless; the watchdog routine will re-init the chip and both RX and TX lists.
Diffstat (limited to 'sys/pci/if_stereg.h')
-rw-r--r--sys/pci/if_stereg.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/pci/if_stereg.h b/sys/pci/if_stereg.h
index 90350b4..213c82d 100644
--- a/sys/pci/if_stereg.h
+++ b/sys/pci/if_stereg.h
@@ -501,7 +501,6 @@ struct ste_chain_data {
int ste_tx_prod;
int ste_tx_cons;
- int ste_tx_cnt;
};
struct ste_softc {
OpenPOWER on IntegriCloud