Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151241453
D45751.id140328.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
D45751.id140328.diff
View Options
diff --git a/sys/netinet/tcp_stacks/bbr.c b/sys/netinet/tcp_stacks/bbr.c
--- a/sys/netinet/tcp_stacks/bbr.c
+++ b/sys/netinet/tcp_stacks/bbr.c
@@ -2356,11 +2356,11 @@
log.u_bbr.flex1 = bbr->bbr_timer_src;
log.u_bbr.flex2 = 0;
log.u_bbr.flex3 = bbr->r_ctl.rc_hpts_flags;
- ar = (uint64_t)(bbr->r_ctl.rc_resend);
+ ar = (uintptr_t)(bbr->r_ctl.rc_resend);
ar >>= 32;
ar &= 0x00000000ffffffff;
log.u_bbr.flex4 = (uint32_t)ar;
- ar = (uint64_t)bbr->r_ctl.rc_resend;
+ ar = (uintptr_t)bbr->r_ctl.rc_resend;
ar &= 0x00000000ffffffff;
log.u_bbr.flex5 = (uint32_t)ar;
log.u_bbr.flex6 = TICKS_2_USEC(bbr->rc_tp->t_rxtcur);
@@ -2718,12 +2718,13 @@
{
if (tcp_bblogging_on(bbr->rc_tp)) {
union tcp_log_stackspecific log;
+ uint64_t ifp64 = (uintptr_t)ifp;
bbr_fill_in_logging_data(bbr, &log.u_bbr, cts);
log.u_bbr.flex1 = ((hw_rate >> 32) & 0x00000000ffffffff);
log.u_bbr.flex2 = (hw_rate & 0x00000000ffffffff);
- log.u_bbr.flex3 = (((uint64_t)ifp >> 32) & 0x00000000ffffffff);
- log.u_bbr.flex4 = ((uint64_t)ifp & 0x00000000ffffffff);
+ log.u_bbr.flex3 = ((ifp64 >> 32) & 0x00000000ffffffff);
+ log.u_bbr.flex4 = (ifp64 & 0x00000000ffffffff);
log.u_bbr.bw_inuse = rate;
log.u_bbr.flex5 = line;
log.u_bbr.flex6 = error;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 1:48 AM (3 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31065011
Default Alt Text
D45751.id140328.diff (1 KB)
Attached To
Mode
D45751: tcp_bbr: avoid gcc -Werror=pointer-to-int-cast on 32-bit arch
Attached
Detach File
Event Timeline
Log In to Comment