Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152726938
D35845.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
658 B
Referenced Files
None
Subscribers
None
D35845.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D35845: bge: tell debugnet there are 2 rx rings, not 1,024
Attached
Detach File
Event Timeline
Log In to Comment