bge: Reduce the number of dropped frames when flow-control is enabled
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 29 Jun 2012 10:31:10 +0000 (18:31 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 29 Jun 2012 10:31:10 +0000 (18:31 +0800)
commit5fe22f8b362d9e728a2590870275a2372380001f
treee65fa88eef1b6a6cb35c49ff6a137d82350e8895
parent3daed3db44aa0ead15bada1b3ee506fb5d2981ba
bge: Reduce the number of dropped frames when flow-control is enabled

Set the number of RX frames to receive after RX MBUF low watermark
has reached.  Previously it dropped incoming frames once
RX MBUF low watermark has reached.  The value used in MAC RX MBUF
low watermark is greater than or equal to 4 so receiving two more
RX frames should not be a problem.

Obtained-from: OpenBSD via FreeBSD 213255
sys/dev/netif/bge/if_bge.c
sys/dev/netif/bge/if_bgereg.h