diff options
author | wpaul <wpaul@FreeBSD.org> | 1999-01-10 18:51:49 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1999-01-10 18:51:49 +0000 |
commit | 8d57d11ab2792cdc739e6071501b76ac3fd57246 (patch) | |
tree | d6c15e7c543d8772ea15c366942c687a25bcadbc /sys/pci/if_vrreg.h | |
parent | 910aa44d3b83a9b8499aa367bb1117572d1390d6 (diff) | |
download | FreeBSD-src-8d57d11ab2792cdc739e6071501b76ac3fd57246.zip FreeBSD-src-8d57d11ab2792cdc739e6071501b76ac3fd57246.tar.gz |
Tweak the vr_start() and vr_rxeof() routines a little to improve
performance and reliability a little. There was a condition before
where transmission would stall during periods of heavy traffic
exchange between two hosts. Also set the 'want interrupt' bit in
receive descriptor control words.
Diffstat (limited to 'sys/pci/if_vrreg.h')
-rw-r--r-- | sys/pci/if_vrreg.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/pci/if_vrreg.h b/sys/pci/if_vrreg.h index 42f3a13..b44dcab 100644 --- a/sys/pci/if_vrreg.h +++ b/sys/pci/if_vrreg.h @@ -29,7 +29,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_vrreg.h,v 1.8 1998/12/01 22:08:11 wpaul Exp $ + * $Id: if_vrreg.h,v 1.9 1999/01/10 18:06:10 wpaul Exp $ */ /* @@ -311,6 +311,7 @@ struct vr_desc { #define VR_RXCTL_CHAIN 0x00008000 #define VR_RXCTL_RX_INTR 0x00800000 +#define VR_RXCTL (VR_RXCTL_CHAIN|VR_RXCTL_RX_INTR) #define VR_TXSTAT_DEFER 0x00000001 #define VR_TXSTAT_UNDERRUN 0x00000002 @@ -337,9 +338,9 @@ struct vr_desc { #define VR_TX_LIST_CNT 64 #define VR_MIN_FRAMELEN 60 #define VR_FRAMELEN 1536 +#define VR_RXLEN 1520 #define VR_TXOWN(x) x->vr_ptr->vr_status -#define VR_UNSENT 0x12341234 struct vr_list_data { struct vr_desc vr_rx_list[VR_RX_LIST_CNT]; |