Lines Matching refs:newtp
451 struct tcp_sock *newtp) in smc_check_reset_syn_req() argument
459 newtp->syn_smc = 0; in smc_check_reset_syn_req()
478 struct tcp_sock *oldtp, *newtp; in tcp_create_openreq_child() local
485 newtp = tcp_sk(newsk); in tcp_create_openreq_child()
488 smc_check_reset_syn_req(oldtp, req, newtp); in tcp_create_openreq_child()
491 newtp->pred_flags = 0; in tcp_create_openreq_child()
494 newtp->rcv_wup = seq; in tcp_create_openreq_child()
495 WRITE_ONCE(newtp->copied_seq, seq); in tcp_create_openreq_child()
496 WRITE_ONCE(newtp->rcv_nxt, seq); in tcp_create_openreq_child()
497 newtp->segs_in = 1; in tcp_create_openreq_child()
500 newtp->snd_sml = newtp->snd_una = seq; in tcp_create_openreq_child()
501 WRITE_ONCE(newtp->snd_nxt, seq); in tcp_create_openreq_child()
502 newtp->snd_up = seq; in tcp_create_openreq_child()
504 INIT_LIST_HEAD(&newtp->tsq_node); in tcp_create_openreq_child()
505 INIT_LIST_HEAD(&newtp->tsorted_sent_queue); in tcp_create_openreq_child()
507 tcp_init_wl(newtp, treq->rcv_isn); in tcp_create_openreq_child()
509 minmax_reset(&newtp->rtt_min, tcp_jiffies32, ~0U); in tcp_create_openreq_child()
512 newtp->lsndtime = tcp_jiffies32; in tcp_create_openreq_child()
514 newtp->total_retrans = req->num_retrans; in tcp_create_openreq_child()
517 WRITE_ONCE(newtp->write_seq, newtp->pushed_seq = treq->snt_isn + 1); in tcp_create_openreq_child()
521 keepalive_time_when(newtp)); 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()
525 newtp->window_clamp = req->rsk_window_clamp; in tcp_create_openreq_child()
526 newtp->rcv_ssthresh = req->rsk_rcv_wnd; in tcp_create_openreq_child()
527 newtp->rcv_wnd = req->rsk_rcv_wnd; 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()
530 newtp->rx_opt.snd_wscale = ireq->snd_wscale; in tcp_create_openreq_child()
531 newtp->rx_opt.rcv_wscale = ireq->rcv_wscale; in tcp_create_openreq_child()
533 newtp->rx_opt.snd_wscale = newtp->rx_opt.rcv_wscale = 0; in tcp_create_openreq_child()
534 newtp->window_clamp = min(newtp->window_clamp, 65535U); in tcp_create_openreq_child()
536 newtp->snd_wnd = ntohs(tcp_hdr(skb)->window) << newtp->rx_opt.snd_wscale; in tcp_create_openreq_child()
537 newtp->max_window = newtp->snd_wnd; in tcp_create_openreq_child()
539 if (newtp->rx_opt.tstamp_ok) { in tcp_create_openreq_child()
540 newtp->rx_opt.ts_recent = req->ts_recent; in tcp_create_openreq_child()
541 newtp->rx_opt.ts_recent_stamp = ktime_get_seconds(); in tcp_create_openreq_child()
542 newtp->tcp_header_len = sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED; in tcp_create_openreq_child()
544 newtp->rx_opt.ts_recent_stamp = 0; in tcp_create_openreq_child()
545 newtp->tcp_header_len = sizeof(struct tcphdr); in tcp_create_openreq_child()
548 newtp->undo_marker = treq->snt_isn; in tcp_create_openreq_child()
549 newtp->retrans_stamp = div_u64(treq->snt_synack, in tcp_create_openreq_child()
552 newtp->tsoffset = treq->ts_off; in tcp_create_openreq_child()
554 newtp->md5sig_info = NULL; /*XXX*/ in tcp_create_openreq_child()
556 newtp->tcp_header_len += TCPOLEN_MD5SIG_ALIGNED; in tcp_create_openreq_child()
558 if (skb->len >= TCP_MSS_DEFAULT + newtp->tcp_header_len) in tcp_create_openreq_child()
559 newicsk->icsk_ack.last_seg_size = skb->len - newtp->tcp_header_len; in tcp_create_openreq_child()
560 newtp->rx_opt.mss_clamp = req->mss; in tcp_create_openreq_child()
561 tcp_ecn_openreq_child(newtp, req); in tcp_create_openreq_child()
562 newtp->fastopen_req = NULL; in tcp_create_openreq_child()
563 RCU_INIT_POINTER(newtp->fastopen_rsk, NULL); in tcp_create_openreq_child()
565 newtp->bpf_chg_cc_inprogress = 0; in tcp_create_openreq_child()