summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_vrreg.h
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-04-05 17:39:57 +0000
committerru <ru@FreeBSD.org>2004-04-05 17:39:57 +0000
commit52fdcf73b01b92339a356bf0e0569ce02bb6be08 (patch)
tree2869ef6c88cb39bba3dc715288077ea9a8450cef /sys/pci/if_vrreg.h
parent8b7744ab537f8854119e0ee36a9cc035a8607d05 (diff)
downloadFreeBSD-src-52fdcf73b01b92339a356bf0e0569ce02bb6be08.zip
FreeBSD-src-52fdcf73b01b92339a356bf0e0569ce02bb6be08.tar.gz
- Rewritten TX to use only two pointers to track producer/consumer.
- Added polling(4) support! - Bugfix: don't forget to set IFF_OACTIVE when TX list is full. - Minor: tidy up vr_encap().
Diffstat (limited to 'sys/pci/if_vrreg.h')
-rw-r--r--sys/pci/if_vrreg.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/pci/if_vrreg.h b/sys/pci/if_vrreg.h
index 2f8e810..5cf3bb2 100644
--- a/sys/pci/if_vrreg.h
+++ b/sys/pci/if_vrreg.h
@@ -420,9 +420,8 @@ struct vr_chain_data {
struct vr_chain_onefrag *vr_rx_head;
- struct vr_chain *vr_tx_head;
- struct vr_chain *vr_tx_tail;
- struct vr_chain *vr_tx_free;
+ struct vr_chain *vr_tx_cons;
+ struct vr_chain *vr_tx_prod;
};
struct vr_type {
@@ -469,6 +468,9 @@ struct vr_softc {
struct vr_chain_data vr_cdata;
struct callout_handle vr_stat_ch;
struct mtx vr_mtx;
+#ifdef DEVICE_POLLING
+ int rxcycles;
+#endif
};
#define VR_F_RESTART 0x01 /* Restart unit on next tick */
OpenPOWER on IntegriCloud