From 02f326cfe5ebb048025e29387c159be75bd69387 Mon Sep 17 00:00:00 2001 From: mikeb Date: Thu, 14 Aug 2014 11:38:14 +0000 Subject: [PATCH] Compare number of allocated clusters with a low watermark, not a magic number 4 since sometimes we can't fit a single packet (jumbo frame) into 4 clusters. OK dlg --- sys/net/if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if.c b/sys/net/if.c index 3425b77f82c..92c2d167c65 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.298 2014/08/11 13:51:07 mpi Exp $ */ +/* $OpenBSD: if.c,v 1.299 2014/08/14 11:38:14 mikeb Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -2412,7 +2412,7 @@ if_rxr_adjust_cwm(struct if_rxring *rxr) rxr->rxr_cwm--; else return; - } else if (rxr->rxr_alive > 4) + } else if (rxr->rxr_alive >= rxr->rxr_lwm) return; else if (rxr->rxr_cwm < rxr->rxr_hwm) rxr->rxr_cwm++; -- 2.20.1