Lines Matching refs:newtp
437 struct tcp_sock *newtp) in smc_check_reset_syn_req() argument
445 newtp->syn_smc = 0; in smc_check_reset_syn_req()
464 struct tcp_sock *oldtp, *newtp; in tcp_create_openreq_child() local
471 newtp = tcp_sk(newsk); in tcp_create_openreq_child()
474 smc_check_reset_syn_req(oldtp, req, newtp); in tcp_create_openreq_child()
477 newtp->pred_flags = 0; in tcp_create_openreq_child()
480 newtp->rcv_wup = seq; in tcp_create_openreq_child()
481 WRITE_ONCE(newtp->copied_seq, seq); in tcp_create_openreq_child()
482 WRITE_ONCE(newtp->rcv_nxt, seq); in tcp_create_openreq_child()
483 newtp->segs_in = 1; in tcp_create_openreq_child()
486 newtp->snd_sml = newtp->snd_una = seq; in tcp_create_openreq_child()
487 WRITE_ONCE(newtp->snd_nxt, seq); in tcp_create_openreq_child()
488 newtp->snd_up = seq; in tcp_create_openreq_child()
490 INIT_LIST_HEAD(&newtp->tsq_node); in tcp_create_openreq_child()
491 INIT_LIST_HEAD(&newtp->tsorted_sent_queue); in tcp_create_openreq_child()
493 tcp_init_wl(newtp, treq->rcv_isn); in tcp_create_openreq_child()
495 minmax_reset(&newtp->rtt_min, tcp_jiffies32, ~0U); in tcp_create_openreq_child()
498 newtp->lsndtime = tcp_jiffies32; in tcp_create_openreq_child()
500 newtp->total_retrans = req->num_retrans; in tcp_create_openreq_child()
503 WRITE_ONCE(newtp->write_seq, newtp->pushed_seq = treq->snt_isn + 1); in tcp_create_openreq_child()
507 keepalive_time_when(newtp)); in tcp_create_openreq_child()
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()
511 newtp->window_clamp = req->rsk_window_clamp; in tcp_create_openreq_child()
512 newtp->rcv_ssthresh = req->rsk_rcv_wnd; in tcp_create_openreq_child()
513 newtp->rcv_wnd = req->rsk_rcv_wnd; 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()
520 newtp->window_clamp = min(newtp->window_clamp, 65535U); in tcp_create_openreq_child()
522 newtp->snd_wnd = ntohs(tcp_hdr(skb)->window) << newtp->rx_opt.snd_wscale; in tcp_create_openreq_child()
523 newtp->max_window = newtp->snd_wnd; in tcp_create_openreq_child()
525 if (newtp->rx_opt.tstamp_ok) { in tcp_create_openreq_child()
526 newtp->rx_opt.ts_recent = req->ts_recent; in tcp_create_openreq_child()
527 newtp->rx_opt.ts_recent_stamp = ktime_get_seconds(); in tcp_create_openreq_child()
528 newtp->tcp_header_len = sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED; in tcp_create_openreq_child()
530 newtp->rx_opt.ts_recent_stamp = 0; in tcp_create_openreq_child()
531 newtp->tcp_header_len = sizeof(struct tcphdr); in tcp_create_openreq_child()
534 newtp->undo_marker = treq->snt_isn; in tcp_create_openreq_child()
535 newtp->retrans_stamp = div_u64(treq->snt_synack, in tcp_create_openreq_child()
538 newtp->tsoffset = treq->ts_off; in tcp_create_openreq_child()
540 newtp->md5sig_info = NULL; /*XXX*/ in tcp_create_openreq_child()
541 if (newtp->af_specific->md5_lookup(sk, newsk)) in tcp_create_openreq_child()
542 newtp->tcp_header_len += TCPOLEN_MD5SIG_ALIGNED; in tcp_create_openreq_child()
544 if (skb->len >= TCP_MSS_DEFAULT + newtp->tcp_header_len) in tcp_create_openreq_child()
545 newicsk->icsk_ack.last_seg_size = skb->len - newtp->tcp_header_len; in tcp_create_openreq_child()
546 newtp->rx_opt.mss_clamp = req->mss; in tcp_create_openreq_child()
547 tcp_ecn_openreq_child(newtp, req); in tcp_create_openreq_child()
548 newtp->fastopen_req = NULL; in tcp_create_openreq_child()
549 RCU_INIT_POINTER(newtp->fastopen_rsk, NULL); in tcp_create_openreq_child()