summaryrefslogtreecommitdiffstats
path: root/sys/dev/bge
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2013-01-24 02:25:43 +0000
committeryongari <yongari@FreeBSD.org>2013-01-24 02:25:43 +0000
commitc803e387f735c5025e0c1aa9d6cf91b149a996f9 (patch)
tree77384aa79e0d52738bc5c28f10be9c72fa7399be /sys/dev/bge
parentfd84d8cd1a8f0c396c9543101786d0aa454d9166 (diff)
downloadFreeBSD-src-c803e387f735c5025e0c1aa9d6cf91b149a996f9.zip
FreeBSD-src-c803e387f735c5025e0c1aa9d6cf91b149a996f9.tar.gz
For 57765 class controllers, set low watermark max receive frames to 1.
Diffstat (limited to 'sys/dev/bge')
-rw-r--r--sys/dev/bge/if_bge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
index e7cb2f7..d5dc6d8 100644
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -5427,7 +5427,7 @@ bge_init_locked(struct bge_softc *sc)
* this number of frames, it will drop subsequent incoming
* frames until the MBUF High Watermark is reached.
*/
- if (sc->bge_asicrev == BGE_ASICREV_BCM57765)
+ if (BGE_IS_57765_PLUS(sc))
CSR_WRITE_4(sc, BGE_MAX_RX_FRAME_LOWAT, 1);
else
CSR_WRITE_4(sc, BGE_MAX_RX_FRAME_LOWAT, 2);
OpenPOWER on IntegriCloud