Searched refs:rx_opt (Results 1 – 14 of 14) sorted by relevance
150 if (tp->rx_opt.rcv_tsval == lp->remote_ref_time || in tcp_lp_remote_hz_estimator()151 tp->rx_opt.rcv_tsecr == lp->local_ref_time) in tcp_lp_remote_hz_estimator()155 (tp->rx_opt.rcv_tsval - lp->remote_ref_time) / in tcp_lp_remote_hz_estimator()156 (tp->rx_opt.rcv_tsecr - lp->local_ref_time); in tcp_lp_remote_hz_estimator()174 lp->remote_ref_time = tp->rx_opt.rcv_tsval; in tcp_lp_remote_hz_estimator()175 lp->local_ref_time = tp->rx_opt.rcv_tsecr; in tcp_lp_remote_hz_estimator()201 tp->rx_opt.rcv_tsval * (LP_RESOL / lp->remote_hz) - in tcp_lp_owd_calculator()202 tp->rx_opt.rcv_tsecr * (LP_RESOL / TCP_TS_HZ); in tcp_lp_owd_calculator()282 delta = now - tp->rx_opt.rcv_tsecr; in tcp_lp_pkts_acked()
318 tw->tw_rcv_wscale = tp->rx_opt.rcv_wscale; in tcp_time_wait()322 tcptw->tw_ts_recent = tp->rx_opt.ts_recent; in tcp_time_wait()563 newtp->rx_opt.tstamp_ok = ireq->tstamp_ok; in tcp_create_openreq_child()564 newtp->rx_opt.sack_ok = ireq->sack_ok; in tcp_create_openreq_child()568 newtp->rx_opt.wscale_ok = ireq->wscale_ok; in tcp_create_openreq_child()569 if (newtp->rx_opt.wscale_ok) { in tcp_create_openreq_child()570 newtp->rx_opt.snd_wscale = ireq->snd_wscale; in tcp_create_openreq_child()573 newtp->rx_opt.snd_wscale = newtp->rx_opt.rcv_wscale = 0; in tcp_create_openreq_child()579 if (newtp->rx_opt.tstamp_ok) { in tcp_create_openreq_child()586 newtp->rx_opt.ts_recent_stamp = 0; in tcp_create_openreq_child()[all …]
2457 return tp->rx_opt.saw_tstamp && tp->rx_opt.rcv_tsecr && in tcp_tsopt_ecr_before()3807 tp->rx_opt.ts_recent = tp->rx_opt.rcv_tsval; in tcp_store_ts_recent()4353 if (tp->rx_opt.saw_tstamp && tp->rx_opt.rcv_tsecr) in tcp_fast_parse_options()4470 (s32)(tp->rx_opt.ts_recent - tp->rx_opt.rcv_tsval) <= in tcp_disordered_ack()5246 tp->rx_opt.dsack = 0; in tcp_data_queue()6148 if ((s32)(tp->rx_opt.rcv_tsval - tp->rx_opt.ts_recent) < 0) in tcp_rcv_established()6439 if (tp->rx_opt.saw_tstamp && tp->rx_opt.rcv_tsecr) in tcp_rcv_synsent_state_process()6462 if (tp->rx_opt.saw_tstamp && tp->rx_opt.rcv_tsecr && in tcp_rcv_synsent_state_process()6522 tp->rx_opt.snd_wscale = tp->rx_opt.rcv_wscale = 0; in tcp_rcv_synsent_state_process()6593 if (tp->rx_opt.ts_recent_stamp && tp->rx_opt.saw_tstamp && in tcp_rcv_synsent_state_process()[all …]
102 (tp->rx_opt.wscale_ok && in tcp_acceptable_seq()298 if (!tp->rx_opt.rcv_wscale && in tcp_select_window()305 new_win >>= tp->rx_opt.rcv_wscale; in tcp_select_window()730 tp->rx_opt.dsack = 0; in tcp_options_write()1017 eff_sacks = tp->rx_opt.num_sacks + tp->rx_opt.dsack; in tcp_established_options()1763 mss_now = tp->rx_opt.mss_clamp; in __tcp_mtu_to_mss()2450 tp->rx_opt.num_sacks || tp->rx_opt.dsack)) in tcp_mtu_probe()3144 if (tp->rx_opt.rcv_wscale) { in __tcp_select_window()3892 if (tp->rx_opt.user_mss) in tcp_connect_init()3893 tp->rx_opt.mss_clamp = tp->rx_opt.user_mss; in tcp_connect_init()[all …]
3351 memset(&tp->rx_opt, 0, sizeof(tp->rx_opt)); in tcp_disconnect()3383 tp->rx_opt.saw_tstamp = 0; in tcp_disconnect()3384 tp->rx_opt.dsack = 0; in tcp_disconnect()3385 tp->rx_opt.num_sacks = 0; in tcp_disconnect()3473 tp->rx_opt.wscale_ok = 1; in tcp_repair_options_est()3486 tp->rx_opt.tstamp_ok = 1; in tcp_repair_options_est()3818 tp->rx_opt.user_mss = val; in do_tcp_setsockopt()4099 if (tp->rx_opt.tstamp_ok) in tcp_get_info()4103 if (tp->rx_opt.wscale_ok) { in tcp_get_info()4316 if (tp->rx_opt.user_mss && in do_tcp_getsockopt()[all …]
178 tp->rx_opt.sack_ok, tcp_min_rtt(tp)); in tcp_rate_gen()
191 tp->rx_opt.ts_recent = READ_ONCE(tcptw->tw_ts_recent); in tcp_twsk_unique()192 tp->rx_opt.ts_recent_stamp = ts_recent_stamp; in tcp_twsk_unique()280 if (tp->rx_opt.ts_recent_stamp && inet->inet_daddr != daddr) { in tcp_v4_connect()282 tp->rx_opt.ts_recent = 0; in tcp_v4_connect()283 tp->rx_opt.ts_recent_stamp = 0; in tcp_v4_connect()295 tp->rx_opt.mss_clamp = TCP_MSS_DEFAULT; in tcp_v4_connect()
91 #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)
152 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 …]
132 static inline void tcp_clear_options(struct tcp_options_received *rx_opt) in tcp_clear_options() argument134 rx_opt->tstamp_ok = rx_opt->sack_ok = 0; in tcp_clear_options()135 rx_opt->wscale_ok = rx_opt->snd_wscale = 0; in tcp_clear_options()137 rx_opt->smc_ok = 0; in tcp_clear_options()302 struct tcp_options_received rx_opt; member603 u16 user_mss = READ_ONCE(tp->rx_opt.user_mss); in tcp_mss_clamp()
547 last_overflow = READ_ONCE(tcp_sk(sk)->rx_opt.ts_recent_stamp); in tcp_synq_overflow()549 WRITE_ONCE(tcp_sk_rw(sk)->rx_opt.ts_recent_stamp, now); in tcp_synq_overflow()766 __tcp_fast_path_on(tp, tp->snd_wnd >> tp->rx_opt.snd_wscale); in tcp_fast_path_on()1278 return likely(tp->rx_opt.sack_ok); in tcp_is_sack()1497 rx_opt->dsack = 0; in tcp_sack_reset()1498 rx_opt->num_sacks = 0; in tcp_sack_reset()1689 if ((s32)(rx_opt->ts_recent - rx_opt->rcv_tsval) <= paws_win) in tcp_paws_check()1692 rx_opt->ts_recent_stamp + TCP_PAWS_WRAP))) in tcp_paws_check()1699 if (!rx_opt->ts_recent) in tcp_paws_check()1707 if (tcp_paws_check(rx_opt, 0)) in tcp_paws_reject()[all …]
1297 new_win = min(new_win, 65535U) << tp->rx_opt.rcv_wscale; in mptcp_set_rwin()1298 if (!tp->rx_opt.rcv_wscale && in mptcp_set_rwin()1302 new_win = min(new_win, (65535U << tp->rx_opt.rcv_wscale)); in mptcp_set_rwin()1305 new_win >>= tp->rx_opt.rcv_wscale; in mptcp_set_rwin()
90 struct_tcp_options_received rx_opt read_mostly read_write tcp_e…
206 if (tp->rx_opt.ts_recent_stamp && in tcp_v6_connect()208 tp->rx_opt.ts_recent = 0; in tcp_v6_connect()209 tp->rx_opt.ts_recent_stamp = 0; in tcp_v6_connect()306 tp->rx_opt.mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - sizeof(struct ipv6hdr); in tcp_v6_connect()