Lines Matching refs:newtp
468 struct tcp_sock *newtp) in smc_check_reset_syn_req() argument
476 newtp->syn_smc = 0; in smc_check_reset_syn_req()
495 struct tcp_sock *oldtp, *newtp; in tcp_create_openreq_child() local
502 newtp = tcp_sk(newsk); in tcp_create_openreq_child()
505 smc_check_reset_syn_req(oldtp, req, newtp); in tcp_create_openreq_child()
508 newtp->pred_flags = 0; in tcp_create_openreq_child()
511 newtp->rcv_wup = seq; in tcp_create_openreq_child()
512 WRITE_ONCE(newtp->copied_seq, seq); in tcp_create_openreq_child()
513 WRITE_ONCE(newtp->rcv_nxt, seq); in tcp_create_openreq_child()
514 newtp->segs_in = 1; in tcp_create_openreq_child()
517 newtp->snd_sml = newtp->snd_una = seq; in tcp_create_openreq_child()
518 WRITE_ONCE(newtp->snd_nxt, seq); in tcp_create_openreq_child()
519 newtp->snd_up = seq; in tcp_create_openreq_child()
521 INIT_LIST_HEAD(&newtp->tsq_node); in tcp_create_openreq_child()
522 INIT_LIST_HEAD(&newtp->tsorted_sent_queue); in tcp_create_openreq_child()
524 tcp_init_wl(newtp, treq->rcv_isn); in tcp_create_openreq_child()
526 minmax_reset(&newtp->rtt_min, tcp_jiffies32, ~0U); in tcp_create_openreq_child()
529 newtp->lsndtime = tcp_jiffies32; in tcp_create_openreq_child()
531 newtp->total_retrans = req->num_retrans; in tcp_create_openreq_child()
534 WRITE_ONCE(newtp->write_seq, newtp->pushed_seq = treq->snt_isn + 1); in tcp_create_openreq_child()
538 keepalive_time_when(newtp)); in tcp_create_openreq_child()
540 newtp->rx_opt.tstamp_ok = ireq->tstamp_ok; in tcp_create_openreq_child()
541 newtp->rx_opt.sack_ok = ireq->sack_ok; in tcp_create_openreq_child()
542 newtp->window_clamp = req->rsk_window_clamp; in tcp_create_openreq_child()
543 newtp->rcv_ssthresh = req->rsk_rcv_wnd; in tcp_create_openreq_child()
544 newtp->rcv_wnd = req->rsk_rcv_wnd; in tcp_create_openreq_child()
545 newtp->rx_opt.wscale_ok = ireq->wscale_ok; in tcp_create_openreq_child()
546 if (newtp->rx_opt.wscale_ok) { in tcp_create_openreq_child()
547 newtp->rx_opt.snd_wscale = ireq->snd_wscale; in tcp_create_openreq_child()
548 newtp->rx_opt.rcv_wscale = ireq->rcv_wscale; in tcp_create_openreq_child()
550 newtp->rx_opt.snd_wscale = newtp->rx_opt.rcv_wscale = 0; in tcp_create_openreq_child()
551 newtp->window_clamp = min(newtp->window_clamp, 65535U); in tcp_create_openreq_child()
553 newtp->snd_wnd = ntohs(tcp_hdr(skb)->window) << newtp->rx_opt.snd_wscale; in tcp_create_openreq_child()
554 newtp->max_window = newtp->snd_wnd; in tcp_create_openreq_child()
556 if (newtp->rx_opt.tstamp_ok) { in tcp_create_openreq_child()
557 newtp->rx_opt.ts_recent = req->ts_recent; in tcp_create_openreq_child()
558 newtp->rx_opt.ts_recent_stamp = ktime_get_seconds(); in tcp_create_openreq_child()
559 newtp->tcp_header_len = sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED; in tcp_create_openreq_child()
561 newtp->rx_opt.ts_recent_stamp = 0; in tcp_create_openreq_child()
562 newtp->tcp_header_len = sizeof(struct tcphdr); in tcp_create_openreq_child()
565 newtp->undo_marker = treq->snt_isn; in tcp_create_openreq_child()
566 newtp->retrans_stamp = div_u64(treq->snt_synack, in tcp_create_openreq_child()
569 newtp->tsoffset = treq->ts_off; in tcp_create_openreq_child()
571 newtp->md5sig_info = NULL; /*XXX*/ in tcp_create_openreq_child()
573 newtp->tcp_header_len += TCPOLEN_MD5SIG_ALIGNED; in tcp_create_openreq_child()
575 if (skb->len >= TCP_MSS_DEFAULT + newtp->tcp_header_len) in tcp_create_openreq_child()
576 newicsk->icsk_ack.last_seg_size = skb->len - newtp->tcp_header_len; in tcp_create_openreq_child()
577 newtp->rx_opt.mss_clamp = req->mss; in tcp_create_openreq_child()
578 tcp_ecn_openreq_child(newtp, req); in tcp_create_openreq_child()
579 newtp->fastopen_req = NULL; in tcp_create_openreq_child()
580 RCU_INIT_POINTER(newtp->fastopen_rsk, NULL); in tcp_create_openreq_child()
582 newtp->bpf_chg_cc_inprogress = 0; in tcp_create_openreq_child()