Page MenuHomeFreeBSD

D35845.id.diff
No OneTemporary

D35845.id.diff

diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -6781,7 +6781,14 @@
sc = if_getsoftc(ifp);
BGE_LOCK(sc);
- *nrxr = sc->bge_return_ring_cnt;
+ /*
+ * There is only one logical receive ring, but it is backed
+ * by two actual rings, for cluster- and jumbo-sized mbufs.
+ * Debugnet expects only one size, so if jumbo is in use,
+ * this says we have two rings of jumbo mbufs, but that's
+ * only a little wasteful.
+ */
+ *nrxr = 2;
*ncl = DEBUGNET_MAX_IN_FLIGHT;
if ((sc->bge_flags & BGE_FLAG_JUMBO_STD) != 0 &&
(if_getmtu(sc->bge_ifp) + ETHER_HDR_LEN + ETHER_CRC_LEN +

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 17, 5:56 PM (15 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31672777
Default Alt Text
D35845.id.diff (658 B)

Event Timeline