History

tcp: clarify comment for mdev_us in struct tcp_sock

The existing comment for mdev_us says "medium deviation", but this term is inaccurate. The field stores the "mean deviation" of RTT, as originally defined in Van Jacobson's paper "Congestion Avoidance and Control", and it is scaled by 4 (<< 2) in the Linux implementation. Update the comment to reflect the correct terminology and storage format.

Ziran Zhang committed 3 months ago

Commit 9b208851 parent d77f3f01 file · +1 −1Browse files

Showing the changes to include (1 of 1 file). Show all

Unified · Split

include/linux/tcp.h+1−1
@@ -274,7 +274,7 @@ struct tcp_sock { · 273 unmodified lines
274274 u32 write_seq; /* Tail(+1) of data held in tcp send buffer */
275275 u32 pushed_seq; /* Last pushed seq, required to talk to windows */
276276 u32 lsndtime; /* timestamp of last sent data packet (for restart window) */
277− u32 mdev_us; /* medium deviation */
277+ u32 mdev_us; /* mean deviation of RTT, scaled by 4 (<< 2) in usecs */
278278 u32 rtt_seq; /* sequence number to update rttvar */
279279 u32 max_packets_out; /* max packets_out in last window */
280280 u32 cwnd_usage_seq; /* right edge of cwnd usage tracking flight */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t