[PATCH net-next] tcp: add SRTT to SCM_TIMESTAMPING_OPT_STATS

2018-11-15 Thread Yousuk Seung
Add TCP_NLA_SRTT to SCM_TIMESTAMPING_OPT_STATS that reports the smoothed round trip time in microseconds (tcp_sock.srtt_us >> 3). Signed-off-by: Yousuk Seung Signed-off-by: Eric Dumazet Acked-by: Soheil Hassas Yeganeh Acked-by: Neal Cardwell Acked-by: Yuchung Cheng --- include/uapi

[PATCH v2 iproute2-next 0/3] support delivering packets in

2018-08-26 Thread Yousuk Seung
based time q_netem: support delivering packets in delayed time slots Yousuk Seung (1): q_netem: slotting with non-uniform distribution include/utils.h | 12 + lib/utils.c | 104 +++ man/man8/tc-netem.8 | 40 ++- tc/q_netem.c

[PATCH v2 iproute2-next 1/3] tc: support conversions to or from 64 bit nanosecond-based time

2018-08-26 Thread Yousuk Seung
, the CLOCK_TAI and CLOCK_REALTIME clocks. Time related utility functions in tc_util.c are moved to lib/utils.c. Signed-off-by: Yousuk Seung Signed-off-by: Dave Taht Signed-off-by: Neal Cardwell --- include/utils.h | 12 ++ lib/utils.c

[PATCH v2 iproute2-next 2/3] q_netem: support delivering packets in delayed time slots

2018-08-26 Thread Yousuk Seung
ochronous underlying rate, and 20ms path delay: tc qdisc add dev eth0 root handle 1: netem delay 20ms rate 200mbit \ limit 1 tc qdisc add dev eth0 parent 1:1 handle 10:1 netem delay 200us \ slot 800us 10ms bytes 64k packets 42 limit 512 Signed-off-by: Yousuk Seung Signed-of

[PATCH v2 iproute2-next 3/3] q_netem: slotting with non-uniform distribution

2018-08-26 Thread Yousuk Seung
s bytes 64k packets 42 Signed-off-by: Yousuk Seung Signed-off-by: Neal Cardwell Signed-off-by: Dave Taht --- man/man8/tc-netem.8 | 20 tc/q_netem.c| 77 + 2 files changed, 78 insertions(+), 19 deletions(-) diff --git a/man/man8/t

[PATCH iproute2-next 0/3] support delivering packets in delayed

2018-08-06 Thread Yousuk Seung
based time q_netem: support delivering packets in delayed time slots Yousuk Seung (1): q_netem: slotting with non-uniform distribution man/man8/tc-netem.8 | 40 +++- tc/q_netem.c| 112 +++- tc/tc_core.h| 4 ++ tc/tc_util.c

[PATCH iproute2-next 3/3] q_netem: slotting with non-uniform distribution

2018-08-06 Thread Yousuk Seung
s bytes 64k packets 42 Signed-off-by: Yousuk Seung Signed-off-by: Neal Cardwell Signed-off-by: Dave Taht --- man/man8/tc-netem.8 | 20 tc/q_netem.c| 75 + 2 files changed, 76 insertions(+), 19 deletions(-) diff --git a/man/man8/t

[PATCH iproute2-next 2/3] q_netem: support delivering packets in delayed time slots

2018-08-06 Thread Yousuk Seung
ochronous underlying rate, and 20ms path delay: tc qdisc add dev eth0 root handle 1: netem delay 20ms rate 200mbit \ limit 1 tc qdisc add dev eth0 parent 1:1 handle 10:1 netem delay 200us \ slot 800us 10ms bytes 64k packets 42 limit 512 Signed-off-by: Yousuk Seung Signed-of

[PATCH iproute2-next 1/3] tc: support conversions to or from 64 bit nanosecond-based time

2018-08-06 Thread Yousuk Seung
ws us to simulate network diameters of several hundred light-years. However, only conversions to and from ns, us, ms, and seconds are provided. Signed-off-by: Yousuk Seung Signed-off-by: Dave Taht Signed-off-by: Neal Cardwell --- tc/tc_core.h | 4 tc/tc_util.c

[PATCH net-next] netem: slotting with non-uniform distribution

2018-06-27 Thread Yousuk Seung
etem slot dist normal 800us 100us \ bytes 64k packets 42 Signed-off-by: Yousuk Seung Acked-by: Eric Dumazet Acked-by: Neal Cardwell --- include/uapi/linux/pkt_sched.h | 3 ++ net/sched/sch_netem.c | 73 +++--- 2 files changed, 52 insertions(+), 24 delet

[PATCH net-next] tcp: refactor tcp_ecn_check_ce to remove sk type cast

2018-06-04 Thread Yousuk Seung
Refactor tcp_ecn_check_ce and __tcp_ecn_check_ce to accept struct sock* instead of tcp_sock* to clean up type casts. This is a pure refactor patch. Signed-off-by: Yousuk Seung Signed-off-by: Neal Cardwell Signed-off-by: Yuchung Cheng Signed-off-by: Eric Dumazet Acked-by: Soheil Hassas Yeganeh

[PATCH net-next 2/2] net-tcp_bbr: set tp->snd_ssthresh to BDP upon STARTUP exit

2018-03-16 Thread Yousuk Seung
Set tp->snd_ssthresh to BDP upon STARTUP exit. This allows us to check if a BBR flow exited STARTUP and the BDP at the time of STARTUP exit with SCM_TIMESTAMPING_OPT_STATS. Since BBR does not use snd_ssthresh this fix has no impact on BBR's behavior. Signed-off-by: Yousuk Seung Signe

[PATCH net-next 1/2] tcp: add snd_ssthresh stat in SCM_TIMESTAMPING_OPT_STATS

2018-03-16 Thread Yousuk Seung
This patch adds TCP_NLA_SND_SSTHRESH stat into SCM_TIMESTAMPING_OPT_STATS that reports tcp_sock.snd_ssthresh. Signed-off-by: Yousuk Seung Signed-off-by: Neal Cardwell Signed-off-by: Priyaranjan Jha Signed-off-by: Soheil Hassas Yeganeh Signed-off-by: Yuchung Cheng --- include/uapi/linux

[PATCH net] tcp: invalidate rate samples during SACK reneging

2017-12-07 Thread Yousuk Seung
reneging and entering TCP_CA_Loss, and unmarks it after the last rate sample was taken before moving back to TCP_CA_Open. This patch also invalidates rate samples taken while tcp_sock.is_sack_reneg is set. Fixes: b9f64820fb22 ("tcp: track data delivery rate for a TCP connection") Signed-off-by

[PATCH net] tcp: call tcp_rate_skb_sent() when retransmit with unaligned skb->data

2017-10-24 Thread Yousuk Seung
all amount of data is sent initially and the receiver partially acks odd number of bytes for some reason, possibly malicious. Signed-off-by: Yousuk Seung Signed-off-by: Neal Cardwell Signed-off-by: Soheil Hassas Yeganeh Acked-by: Eric Dumazet --- net/ipv4/tcp_output.c | 4 +++- 1 file changed