Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148966838
D16534.id46052.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D16534.id46052.diff
View Options
Index: sys/dev/e1000/if_em.c
===================================================================
--- sys/dev/e1000/if_em.c
+++ sys/dev/e1000/if_em.c
@@ -1429,10 +1429,15 @@
*/
if (adapter->hw.mac.max_frame_size <= 2048)
adapter->rx_mbuf_sz = MCLBYTES;
+#ifndef CONTIGMALLOC_WORKS
+ else
+ adapter->rx_mbuf_sz = MJUMPAGESIZE;
+#else
else if (adapter->hw.mac.max_frame_size <= 4096)
adapter->rx_mbuf_sz = MJUMPAGESIZE;
else
adapter->rx_mbuf_sz = MJUM9BYTES;
+#endif
/* Prepare receive descriptors and buffers */
if (em_setup_receive_structures(adapter)) {
Index: sys/dev/e1000/if_igb.c
===================================================================
--- sys/dev/e1000/if_igb.c
+++ sys/dev/e1000/if_igb.c
@@ -1324,10 +1324,15 @@
*/
if (adapter->max_frame_size <= 2048)
adapter->rx_mbuf_sz = MCLBYTES;
+#ifndef CONTIGMALLOC_WORKS
+ else
+ adapter->rx_mbuf_sz = MJUMPAGESIZE;
+#else
else if (adapter->max_frame_size <= 4096)
adapter->rx_mbuf_sz = MJUMPAGESIZE;
else
adapter->rx_mbuf_sz = MJUM9BYTES;
+#endif
/* Prepare receive descriptors and buffers */
if (igb_setup_receive_structures(adapter)) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 22, 9:33 AM (6 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30117221
Default Alt Text
D16534.id46052.diff (1 KB)
Attached To
Mode
D16534: e1000: Don't use 9k jumbo clusters
Attached
Detach File
Event Timeline
Log In to Comment