Home
last modified time | relevance | path

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

/Linux-v4.19/net/ipv4/
Dtcp_lp.c146 if (tp->rx_opt.rcv_tsval == lp->remote_ref_time || in tcp_lp_remote_hz_estimator()
147 tp->rx_opt.rcv_tsecr == lp->local_ref_time) in tcp_lp_remote_hz_estimator()
151 (tp->rx_opt.rcv_tsval - lp->remote_ref_time) / in tcp_lp_remote_hz_estimator()
152 (tp->rx_opt.rcv_tsecr - lp->local_ref_time); in tcp_lp_remote_hz_estimator()
170 lp->remote_ref_time = tp->rx_opt.rcv_tsval; in tcp_lp_remote_hz_estimator()
171 lp->local_ref_time = tp->rx_opt.rcv_tsecr; in tcp_lp_remote_hz_estimator()
196 tp->rx_opt.rcv_tsval * (LP_RESOL / lp->remote_hz) - in tcp_lp_owd_calculator()
197 tp->rx_opt.rcv_tsecr * (LP_RESOL / TCP_TS_HZ); in tcp_lp_owd_calculator()
274 delta = now - tp->rx_opt.rcv_tsecr; in tcp_lp_pkts_acked()
Dtcp_minisocks.c268 tw->tw_rcv_wscale = tp->rx_opt.rcv_wscale; in tcp_time_wait()
272 tcptw->tw_ts_recent = tp->rx_opt.ts_recent; in tcp_time_wait()
273 tcptw->tw_ts_recent_stamp = tp->rx_opt.ts_recent_stamp; in tcp_time_wait()
512 newtp->rx_opt.saw_tstamp = 0; in tcp_create_openreq_child()
514 newtp->rx_opt.dsack = 0; in tcp_create_openreq_child()
515 newtp->rx_opt.num_sacks = 0; in tcp_create_openreq_child()
523 newtp->rx_opt.tstamp_ok = ireq->tstamp_ok; in tcp_create_openreq_child()
524 newtp->rx_opt.sack_ok = ireq->sack_ok; in tcp_create_openreq_child()
528 newtp->rx_opt.wscale_ok = ireq->wscale_ok; in tcp_create_openreq_child()
529 if (newtp->rx_opt.wscale_ok) { in tcp_create_openreq_child()
[all …]
Dtcp_input.c338 per_mss = max_t(u32, tp->rx_opt.mss_clamp, tp->mss_cache) + in tcp_sndbuf_expand()
594 if (tp->rx_opt.rcv_tsecr == tp->rcv_rtt_last_tsecr) in tcp_rcv_rtt_measure_ts()
596 tp->rcv_rtt_last_tsecr = tp->rx_opt.rcv_tsecr; in tcp_rcv_rtt_measure_ts()
600 u32 delta = tcp_time_stamp(tp) - tp->rx_opt.rcv_tsecr; in tcp_rcv_rtt_measure_ts()
882 tp->rx_opt.sack_ok |= TCP_DSACK_SEEN; in tcp_dsack_seen()
906 tp->rx_opt.sack_ok, inet_csk(sk)->icsk_ca_state, in tcp_check_sack_reordering()
2255 return tp->rx_opt.saw_tstamp && tp->rx_opt.rcv_tsecr && in tcp_tsopt_ecr_before()
2256 before(tp->rx_opt.rcv_tsecr, when); in tcp_tsopt_ecr_before()
2931 if (seq_rtt_us < 0 && tp->rx_opt.saw_tstamp && tp->rx_opt.rcv_tsecr && in tcp_ack_update_rtt()
2933 u32 delta = tcp_time_stamp(tp) - tp->rx_opt.rcv_tsecr; in tcp_ack_update_rtt()
[all …]
Dtcp_output.c83 (tp->rx_opt.wscale_ok && in tcp_acceptable_seq()
84 ((tp->snd_nxt - tcp_wnd_end(tp)) < (1 << tp->rx_opt.rcv_wscale)))) in tcp_acceptable_seq()
278 new_win = ALIGN(cur_win, 1 << tp->rx_opt.rcv_wscale); in tcp_select_window()
286 if (!tp->rx_opt.rcv_wscale && in tcp_select_window()
290 new_win = min(new_win, (65535U << tp->rx_opt.rcv_wscale)); in tcp_select_window()
293 new_win >>= tp->rx_opt.rcv_wscale; in tcp_select_window()
509 struct tcp_sack_block *sp = tp->rx_opt.dsack ? in tcp_options_write()
525 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.c2590 memset(&tp->rx_opt, 0, sizeof(tp->rx_opt)); in tcp_disconnect()
2671 tp->rx_opt.mss_clamp = opt.opt_val; in tcp_repair_options_est()
2682 tp->rx_opt.snd_wscale = snd_wscale; in tcp_repair_options_est()
2683 tp->rx_opt.rcv_wscale = rcv_wscale; in tcp_repair_options_est()
2684 tp->rx_opt.wscale_ok = 1; in tcp_repair_options_est()
2691 tp->rx_opt.sack_ok |= TCP_SACK_SEEN; in tcp_repair_options_est()
2697 tp->rx_opt.tstamp_ok = 1; in tcp_repair_options_est()
2788 tp->rx_opt.user_mss = val; in do_tcp_setsockopt()
3144 if (tp->rx_opt.tstamp_ok) in tcp_get_info()
3148 if (tp->rx_opt.wscale_ok) { in tcp_get_info()
[all …]
Dtcp_rate.c165 tp->rx_opt.sack_ok, tcp_min_rtt(tp)); in tcp_rate_gen()
Dtcp_ipv4.c175 tp->rx_opt.ts_recent = tcptw->tw_ts_recent; in tcp_twsk_unique()
176 tp->rx_opt.ts_recent_stamp = tcptw->tw_ts_recent_stamp; in tcp_twsk_unique()
256 if (tp->rx_opt.ts_recent_stamp && inet->inet_daddr != daddr) { in tcp_v4_connect()
258 tp->rx_opt.ts_recent = 0; in tcp_v4_connect()
259 tp->rx_opt.ts_recent_stamp = 0; in tcp_v4_connect()
271 tp->rx_opt.mss_clamp = TCP_MSS_DEFAULT; in tcp_v4_connect()
/Linux-v4.19/drivers/crypto/chelsio/chtls/
Dchtls_cm.h96 #define SND_WSCALE(tp) ((tp)->rx_opt.snd_wscale)
97 #define RCV_WSCALE(tp) ((tp)->rx_opt.rcv_wscale)
98 #define USER_MSS(tp) ((tp)->rx_opt.user_mss)
99 #define TS_RECENT_STAMP(tp) ((tp)->rx_opt.ts_recent_stamp)
100 #define WSCALE_OK(tp) ((tp)->rx_opt.wscale_ok)
101 #define TSTAMP_OK(tp) ((tp)->rx_opt.tstamp_ok)
102 #define SACK_OK(tp) ((tp)->rx_opt.sack_ok)
Dchtls_cm.c114 tp->rx_opt.mss_clamp = cdev->mtus[TCPOPT_MSS_G(opt)] - 40; in assign_rxopt()
115 tp->mss_cache = tp->rx_opt.mss_clamp; in assign_rxopt()
116 tp->rx_opt.tstamp_ok = TCPOPT_TSTAMP_G(opt); in assign_rxopt()
117 tp->rx_opt.snd_wscale = TCPOPT_SACK_G(opt); in assign_rxopt()
118 tp->rx_opt.wscale_ok = TCPOPT_WSCALE_OK_G(opt); in assign_rxopt()
120 if (!tp->rx_opt.wscale_ok) in assign_rxopt()
121 tp->rx_opt.rcv_wscale = 0; in assign_rxopt()
122 if (tp->rx_opt.tstamp_ok) { in assign_rxopt()
124 tp->rx_opt.mss_clamp -= TCPOLEN_TSTAMP_ALIGNED; in assign_rxopt()
428 tp->max_window = 0xFFFF << (tp->rx_opt.snd_wscale); in chtls_disconnect()
[all …]
/Linux-v4.19/include/linux/
Dtcp.h109 static inline void tcp_clear_options(struct tcp_options_received *rx_opt) in tcp_clear_options() argument
111 rx_opt->tstamp_ok = rx_opt->sack_ok = 0; in tcp_clear_options()
112 rx_opt->wscale_ok = rx_opt->snd_wscale = 0; in tcp_clear_options()
114 rx_opt->smc_ok = 0; in tcp_clear_options()
275 struct tcp_options_received rx_opt; member
483 u16 user_mss = READ_ONCE(tp->rx_opt.user_mss); in tcp_mss_clamp()
/Linux-v4.19/include/net/
Dtcp.h492 last_overflow = tcp_sk(sk)->rx_opt.ts_recent_stamp; in tcp_synq_overflow()
494 tcp_sk(sk)->rx_opt.ts_recent_stamp = now; in tcp_synq_overflow()
514 last_overflow = tcp_sk(sk)->rx_opt.ts_recent_stamp; in tcp_synq_no_recent_overflow()
658 __tcp_fast_path_on(tp, tp->snd_wnd >> tp->rx_opt.snd_wscale); in tcp_fast_path_on()
1116 return tp->rx_opt.sack_ok; in tcp_is_sack()
1312 static inline void tcp_sack_reset(struct tcp_options_received *rx_opt) in tcp_sack_reset() argument
1314 rx_opt->dsack = 0; in tcp_sack_reset()
1315 rx_opt->num_sacks = 0; in tcp_sack_reset()
1409 static inline bool tcp_paws_check(const struct tcp_options_received *rx_opt, in tcp_paws_check() argument
1412 if ((s32)(rx_opt->ts_recent - rx_opt->rcv_tsval) <= paws_win) in tcp_paws_check()
[all …]
/Linux-v4.19/net/ipv6/
Dtcp_ipv6.c205 if (tp->rx_opt.ts_recent_stamp && in tcp_v6_connect()
207 tp->rx_opt.ts_recent = 0; in tcp_v6_connect()
208 tp->rx_opt.ts_recent_stamp = 0; in tcp_v6_connect()
294 tp->rx_opt.mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - sizeof(struct ipv6hdr); in tcp_v6_connect()