Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146158434
D13102.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
546 B
Referenced Files
None
Subscribers
None
D13102.diff
View Options
Index: head/sys/dev/cxgbe/t4_sge.c
===================================================================
--- head/sys/dev/cxgbe/t4_sge.c
+++ head/sys/dev/cxgbe/t4_sge.c
@@ -4754,13 +4754,13 @@
switch (idx % 3) {
case 0: {
- __be64 rc;
+ uint64_t rc;
- rc = htobe32(segs[i].ss_len);
+ rc = (uint64_t)segs[i].ss_len << 32;
if (i + 1 < nsegs)
- rc |= (uint64_t)htobe32(segs[i + 1].ss_len) << 32;
+ rc |= (uint64_t)(segs[i + 1].ss_len);
- return (rc);
+ return (htobe64(rc));
}
case 1:
return (htobe64(segs[i].ss_paddr));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 1, 7:58 AM (12 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29097107
Default Alt Text
D13102.diff (546 B)
Attached To
Mode
D13102: CXGBE: fix get_filt to be endianness-aware
Attached
Detach File
Event Timeline
Log In to Comment