Home
last modified time | relevance | path

Searched refs:rx_opt (Results 1 – 8 of 8) sorted by relevance

/net/ipv4/
Dtcp_lp.c147 if (tp->rx_opt.rcv_tsval == lp->remote_ref_time || in tcp_lp_remote_hz_estimator()
148 tp->rx_opt.rcv_tsecr == lp->local_ref_time) in tcp_lp_remote_hz_estimator()
152 (tp->rx_opt.rcv_tsval - lp->remote_ref_time) / in tcp_lp_remote_hz_estimator()
153 (tp->rx_opt.rcv_tsecr - lp->local_ref_time); in tcp_lp_remote_hz_estimator()
171 lp->remote_ref_time = tp->rx_opt.rcv_tsval; in tcp_lp_remote_hz_estimator()
172 lp->local_ref_time = tp->rx_opt.rcv_tsecr; in tcp_lp_remote_hz_estimator()
197 tp->rx_opt.rcv_tsval * (LP_RESOL / lp->remote_hz) - in tcp_lp_owd_calculator()
198 tp->rx_opt.rcv_tsecr * (LP_RESOL / TCP_TS_HZ); in tcp_lp_owd_calculator()
275 delta = now - tp->rx_opt.rcv_tsecr; in tcp_lp_pkts_acked()
Dtcp_minisocks.c270 tw->tw_rcv_wscale = tp->rx_opt.rcv_wscale; in tcp_time_wait()
274 tcptw->tw_ts_recent = tp->rx_opt.ts_recent; in tcp_time_wait()
275 tcptw->tw_ts_recent_stamp = tp->rx_opt.ts_recent_stamp; in tcp_time_wait()
509 newtp->rx_opt.tstamp_ok = ireq->tstamp_ok; in tcp_create_openreq_child()
510 newtp->rx_opt.sack_ok = ireq->sack_ok; in tcp_create_openreq_child()
514 newtp->rx_opt.wscale_ok = ireq->wscale_ok; in tcp_create_openreq_child()
515 if (newtp->rx_opt.wscale_ok) { in tcp_create_openreq_child()
516 newtp->rx_opt.snd_wscale = ireq->snd_wscale; in tcp_create_openreq_child()
517 newtp->rx_opt.rcv_wscale = ireq->rcv_wscale; in tcp_create_openreq_child()
519 newtp->rx_opt.snd_wscale = newtp->rx_opt.rcv_wscale = 0; in tcp_create_openreq_child()
[all …]
Dtcp_input.c358 per_mss = max_t(u32, tp->rx_opt.mss_clamp, tp->mss_cache) + in tcp_sndbuf_expand()
596 if (tp->rx_opt.rcv_tsecr == tp->rcv_rtt_last_tsecr) in tcp_rcv_rtt_measure_ts()
598 tp->rcv_rtt_last_tsecr = tp->rx_opt.rcv_tsecr; in tcp_rcv_rtt_measure_ts()
602 u32 delta = tcp_time_stamp(tp) - tp->rx_opt.rcv_tsecr; in tcp_rcv_rtt_measure_ts()
890 tp->rx_opt.sack_ok |= TCP_DSACK_SEEN; in tcp_dsack_seen()
914 tp->rx_opt.sack_ok, inet_csk(sk)->icsk_ca_state, in tcp_check_sack_reordering()
2287 return tp->rx_opt.saw_tstamp && tp->rx_opt.rcv_tsecr && in tcp_tsopt_ecr_before()
2288 before(tp->rx_opt.rcv_tsecr, when); in tcp_tsopt_ecr_before()
2977 if (seq_rtt_us < 0 && tp->rx_opt.saw_tstamp && tp->rx_opt.rcv_tsecr && in tcp_ack_update_rtt()
2979 u32 delta = tcp_time_stamp(tp) - tp->rx_opt.rcv_tsecr; in tcp_ack_update_rtt()
[all …]
Dtcp_output.c99 (tp->rx_opt.wscale_ok && in tcp_acceptable_seq()
100 ((tp->snd_nxt - tcp_wnd_end(tp)) < (1 << tp->rx_opt.rcv_wscale)))) in tcp_acceptable_seq()
277 new_win = ALIGN(cur_win, 1 << tp->rx_opt.rcv_wscale); in tcp_select_window()
285 if (!tp->rx_opt.rcv_wscale && in tcp_select_window()
289 new_win = min(new_win, (65535U << tp->rx_opt.rcv_wscale)); in tcp_select_window()
292 new_win >>= tp->rx_opt.rcv_wscale; in tcp_select_window()
508 struct tcp_sack_block *sp = tp->rx_opt.dsack ? in tcp_options_write()
524 tp->rx_opt.dsack = 0; in tcp_options_write()
625 opts->tsecr = tp->rx_opt.ts_recent; in tcp_syn_options()
629 opts->ws = tp->rx_opt.rcv_wscale; in tcp_syn_options()
[all …]
Dtcp.c2666 memset(&tp->rx_opt, 0, sizeof(tp->rx_opt)); in tcp_disconnect()
2697 tp->rx_opt.saw_tstamp = 0; in tcp_disconnect()
2698 tp->rx_opt.dsack = 0; in tcp_disconnect()
2699 tp->rx_opt.num_sacks = 0; in tcp_disconnect()
2773 tp->rx_opt.mss_clamp = opt.opt_val; in tcp_repair_options_est()
2784 tp->rx_opt.snd_wscale = snd_wscale; in tcp_repair_options_est()
2785 tp->rx_opt.rcv_wscale = rcv_wscale; in tcp_repair_options_est()
2786 tp->rx_opt.wscale_ok = 1; in tcp_repair_options_est()
2793 tp->rx_opt.sack_ok |= TCP_SACK_SEEN; in tcp_repair_options_est()
2799 tp->rx_opt.tstamp_ok = 1; in tcp_repair_options_est()
[all …]
Dtcp_rate.c167 tp->rx_opt.sack_ok, tcp_min_rtt(tp)); in tcp_rate_gen()
Dtcp_ipv4.c172 tp->rx_opt.ts_recent = tcptw->tw_ts_recent; in tcp_twsk_unique()
173 tp->rx_opt.ts_recent_stamp = tcptw->tw_ts_recent_stamp; in tcp_twsk_unique()
253 if (tp->rx_opt.ts_recent_stamp && inet->inet_daddr != daddr) { in tcp_v4_connect()
255 tp->rx_opt.ts_recent = 0; in tcp_v4_connect()
256 tp->rx_opt.ts_recent_stamp = 0; in tcp_v4_connect()
268 tp->rx_opt.mss_clamp = TCP_MSS_DEFAULT; in tcp_v4_connect()
/net/ipv6/
Dtcp_ipv6.c214 if (tp->rx_opt.ts_recent_stamp && in tcp_v6_connect()
216 tp->rx_opt.ts_recent = 0; in tcp_v6_connect()
217 tp->rx_opt.ts_recent_stamp = 0; in tcp_v6_connect()
302 tp->rx_opt.mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - sizeof(struct ipv6hdr); in tcp_v6_connect()