Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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.c144 bool unknown_opt = tcp_sk(sk)->rx_opt.saw_unknown && in bpf_skops_parse_hdr()
409 per_mss = max_t(u32, tp->rx_opt.mss_clamp, tp->mss_cache) + in tcp_sndbuf_expand()
670 if (tp->rx_opt.rcv_tsecr == tp->rcv_rtt_last_tsecr) in tcp_rcv_rtt_measure_ts()
672 tp->rcv_rtt_last_tsecr = tp->rx_opt.rcv_tsecr; in tcp_rcv_rtt_measure_ts()
676 u32 delta = tcp_time_stamp(tp) - tp->rx_opt.rcv_tsecr; in tcp_rcv_rtt_measure_ts()
1001 tp->rx_opt.sack_ok |= TCP_DSACK_SEEN; in tcp_dsack_seen()
1030 tp->rx_opt.sack_ok, inet_csk(sk)->icsk_ca_state, in tcp_check_sack_reordering()
2385 return tp->rx_opt.saw_tstamp && tp->rx_opt.rcv_tsecr && in tcp_tsopt_ecr_before()
2386 before(tp->rx_opt.rcv_tsecr, when); in tcp_tsopt_ecr_before()
3076 if (seq_rtt_us < 0 && tp->rx_opt.saw_tstamp && tp->rx_opt.rcv_tsecr && in tcp_ack_update_rtt()
[all …]
Dtcp_output.c100 (tp->rx_opt.wscale_ok && in tcp_acceptable_seq()
101 ((tp->snd_nxt - tcp_wnd_end(tp)) < (1 << tp->rx_opt.rcv_wscale)))) in tcp_acceptable_seq()
276 new_win = ALIGN(cur_win, 1 << tp->rx_opt.rcv_wscale); in tcp_select_window()
284 if (!tp->rx_opt.rcv_wscale && in tcp_select_window()
288 new_win = min(new_win, (65535U << tp->rx_opt.rcv_wscale)); in tcp_select_window()
291 new_win >>= tp->rx_opt.rcv_wscale; in tcp_select_window()
657 struct tcp_sack_block *sp = tp->rx_opt.dsack ? in tcp_options_write()
673 tp->rx_opt.dsack = 0; in tcp_options_write()
792 opts->tsecr = tp->rx_opt.ts_recent; in tcp_syn_options()
796 opts->ws = tp->rx_opt.rcv_wscale; in tcp_syn_options()
[all …]
Dtcp.c2817 memset(&tp->rx_opt, 0, sizeof(tp->rx_opt)); in tcp_disconnect()
2847 tp->rx_opt.saw_tstamp = 0; in tcp_disconnect()
2848 tp->rx_opt.dsack = 0; in tcp_disconnect()
2849 tp->rx_opt.num_sacks = 0; in tcp_disconnect()
2925 tp->rx_opt.mss_clamp = opt.opt_val; in tcp_repair_options_est()
2936 tp->rx_opt.snd_wscale = snd_wscale; in tcp_repair_options_est()
2937 tp->rx_opt.rcv_wscale = rcv_wscale; in tcp_repair_options_est()
2938 tp->rx_opt.wscale_ok = 1; in tcp_repair_options_est()
2945 tp->rx_opt.sack_ok |= TCP_SACK_SEEN; in tcp_repair_options_est()
2951 tp->rx_opt.tstamp_ok = 1; in tcp_repair_options_est()
[all …]
Dtcp_rate.c172 tp->rx_opt.sack_ok, tcp_min_rtt(tp)); in tcp_rate_gen()
Dtcp_ipv4.c171 tp->rx_opt.ts_recent = tcptw->tw_ts_recent; in tcp_twsk_unique()
172 tp->rx_opt.ts_recent_stamp = tcptw->tw_ts_recent_stamp; in tcp_twsk_unique()
252 if (tp->rx_opt.ts_recent_stamp && inet->inet_daddr != daddr) { in tcp_v4_connect()
254 tp->rx_opt.ts_recent = 0; in tcp_v4_connect()
255 tp->rx_opt.ts_recent_stamp = 0; in tcp_v4_connect()
267 tp->rx_opt.mss_clamp = TCP_MSS_DEFAULT; in tcp_v4_connect()
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Dtcp_nip_input.c952 const struct tcp_options_received *rx_opt, in tcp_nip_openreq_init() argument
964 req->mss = rx_opt->mss_clamp; in tcp_nip_openreq_init()
965 req->ts_recent = rx_opt->saw_tstamp ? rx_opt->rcv_tsval : 0; in tcp_nip_openreq_init()
966 ireq->tstamp_ok = rx_opt->tstamp_ok; in tcp_nip_openreq_init()
967 ireq->snd_wscale = rx_opt->snd_wscale; in tcp_nip_openreq_init()
1051 newtp->rx_opt.saw_tstamp = 0; in tcp_nip_create_openreq_child()
1053 newtp->rx_opt.dsack = 0; in tcp_nip_create_openreq_child()
1054 newtp->rx_opt.num_sacks = 0; in tcp_nip_create_openreq_child()
1058 newtp->rx_opt.tstamp_ok = ireq->tstamp_ok; in tcp_nip_create_openreq_child()
1062 newtp->rx_opt.wscale_ok = ireq->wscale_ok; in tcp_nip_create_openreq_child()
[all …]
Dtcp_nip_output.c102 if (mss_now > tp->rx_opt.mss_clamp) in __tcp_nip_mtu_to_mss()
103 mss_now = tp->rx_opt.mss_clamp; in __tcp_nip_mtu_to_mss()
190 free_space = round_down(free_space, 1 << tp->rx_opt.rcv_wscale); in __nip_tcp_select_window()
218 window = ALIGN(window, (1 << tp->rx_opt.rcv_wscale)); in __nip_tcp_select_window()
220 tp->rx_opt.rcv_wscale, free_space, window, allowed_space, free_space, mss); in __nip_tcp_select_window()
252 new_win = ALIGN(cur_win, 1 << tp->rx_opt.rcv_wscale); in nip_tcp_select_window()
262 if (!tp->rx_opt.rcv_wscale && sock_net(sk)->ipv4.sysctl_tcp_workaround_signed_windows) in nip_tcp_select_window()
265 new_win = min(new_win, (65535U << tp->rx_opt.rcv_wscale)); in nip_tcp_select_window()
271 new_win >>= tp->rx_opt.rcv_wscale; in nip_tcp_select_window()
272 nip_dbg("wscale(%u) win change [%u to %u]", tp->rx_opt.rcv_wscale, new_win_bak, new_win); in nip_tcp_select_window()
[all …]
Dtcp_nip.c706 if (tp->rx_opt.ts_recent_stamp) { in tcp_nip_connect()
708 tp->rx_opt.ts_recent = 0; in tcp_nip_connect()
709 tp->rx_opt.ts_recent_stamp = 0; in tcp_nip_connect()
952 if (tcp_sk(sk)->rx_opt.user_mss && in tcp_nip_syn_recv_sock()
953 tcp_sk(sk)->rx_opt.user_mss < newtp->advmss) in tcp_nip_syn_recv_sock()
954 newtp->advmss = tcp_sk(sk)->rx_opt.user_mss; in tcp_nip_syn_recv_sock()
2202 memset(&tp->rx_opt, 0, sizeof(tp->rx_opt)); in tcp_nip_disconnect()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_cm.h91 #define SND_WSCALE(tp) ((tp)->rx_opt.snd_wscale)
92 #define RCV_WSCALE(tp) ((tp)->rx_opt.rcv_wscale)
93 #define USER_MSS(tp) ((tp)->rx_opt.user_mss)
94 #define TS_RECENT_STAMP(tp) ((tp)->rx_opt.ts_recent_stamp)
95 #define WSCALE_OK(tp) ((tp)->rx_opt.wscale_ok)
96 #define TSTAMP_OK(tp) ((tp)->rx_opt.tstamp_ok)
97 #define SACK_OK(tp) ((tp)->rx_opt.sack_ok)
Dchtls_cm.c152 tp->rx_opt.mss_clamp = cdev->mtus[TCPOPT_MSS_G(opt)] - 40; in assign_rxopt()
153 tp->mss_cache = tp->rx_opt.mss_clamp; in assign_rxopt()
154 tp->rx_opt.tstamp_ok = TCPOPT_TSTAMP_G(opt); in assign_rxopt()
155 tp->rx_opt.snd_wscale = TCPOPT_SACK_G(opt); in assign_rxopt()
156 tp->rx_opt.wscale_ok = TCPOPT_WSCALE_OK_G(opt); in assign_rxopt()
158 if (!tp->rx_opt.wscale_ok) in assign_rxopt()
159 tp->rx_opt.rcv_wscale = 0; in assign_rxopt()
160 if (tp->rx_opt.tstamp_ok) { in assign_rxopt()
162 tp->rx_opt.mss_clamp -= TCPOLEN_TSTAMP_ALIGNED; in assign_rxopt()
465 tp->max_window = 0xFFFF << (tp->rx_opt.snd_wscale); in chtls_disconnect()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dtcp.h102 static inline void tcp_clear_options(struct tcp_options_received *rx_opt) in tcp_clear_options() argument
104 rx_opt->tstamp_ok = rx_opt->sack_ok = 0; in tcp_clear_options()
105 rx_opt->wscale_ok = rx_opt->snd_wscale = 0; in tcp_clear_options()
107 rx_opt->smc_ok = 0; in tcp_clear_options()
280 struct tcp_options_received rx_opt; member
509 u16 user_mss = READ_ONCE(tp->rx_opt.user_mss); in tcp_mss_clamp()
/kernel/linux/linux-5.10/include/net/
Dtcp.h502 last_overflow = READ_ONCE(tcp_sk(sk)->rx_opt.ts_recent_stamp); in tcp_synq_overflow()
504 WRITE_ONCE(tcp_sk(sk)->rx_opt.ts_recent_stamp, now); in tcp_synq_overflow()
525 last_overflow = READ_ONCE(tcp_sk(sk)->rx_opt.ts_recent_stamp); in tcp_synq_no_recent_overflow()
683 __tcp_fast_path_on(tp, tp->snd_wnd >> tp->rx_opt.snd_wscale); in tcp_fast_path_on()
1176 return likely(tp->rx_opt.sack_ok); in tcp_is_sack()
1377 static inline void tcp_sack_reset(struct tcp_options_received *rx_opt) in tcp_sack_reset() argument
1379 rx_opt->dsack = 0; in tcp_sack_reset()
1380 rx_opt->num_sacks = 0; in tcp_sack_reset()
1498 static inline bool tcp_paws_check(const struct tcp_options_received *rx_opt, in tcp_paws_check() argument
1501 if ((s32)(rx_opt->ts_recent - rx_opt->rcv_tsval) <= paws_win) in tcp_paws_check()
[all …]
/kernel/linux/linux-5.10/net/ipv6/
Dtcp_ipv6.c215 if (tp->rx_opt.ts_recent_stamp && in tcp_v6_connect()
217 tp->rx_opt.ts_recent = 0; in tcp_v6_connect()
218 tp->rx_opt.ts_recent_stamp = 0; in tcp_v6_connect()
308 tp->rx_opt.mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - sizeof(struct ipv6hdr); in tcp_v6_connect()