Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164511910
D1977.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
676 B
Referenced Files
None
Subscribers
None
D1977.id.diff
View Options
Index: sys/dev/ixgbe/ixgbe.h
===================================================================
--- sys/dev/ixgbe/ixgbe.h
+++ sys/dev/ixgbe/ixgbe.h
@@ -162,8 +162,9 @@
* modern Intel CPUs, results in 40 bytes wasted and a significant drop
* in observed efficiency of the optimization, 97.9% -> 81.8%.
*/
-#define IXGBE_RX_COPY_LEN 160
-#define IXGBE_RX_COPY_ALIGN (MHLEN - IXGBE_RX_COPY_LEN)
+#define IXGBE_RX_COPY_HDR_PADDED ((((MPKTHSIZE - 1) / 32) + 1) * 32)
+#define IXGBE_RX_COPY_LEN (MSIZE - IXGBE_RX_COPY_HDR_PADDED)
+#define IXGBE_RX_COPY_ALIGN (IXGBE_RX_COPY_HDR_PADDED - MPKTHSIZE)
/* Keep older OS drivers building... */
#if !defined(SYSCTL_ADD_UQUAD)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 2, 2:50 PM (18 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35866836
Default Alt Text
D1977.id.diff (676 B)
Attached To
Mode
D1977: Pad RX copy alignment calculation to avoid illegal memory accesses when copying custom mbuf structures
Attached
Detach File
Event Timeline
Log In to Comment