Lines Matching refs:tcp_cntxt

393 	tcph->th_seq = htonl(cm_node->tcp_cntxt.loc_seq_num);  in irdma_form_ah_cm_frame()
396 cm_node->tcp_cntxt.loc_ack_num = cm_node->tcp_cntxt.rcv_nxt; in irdma_form_ah_cm_frame()
397 tcph->th_ack = htonl(cm_node->tcp_cntxt.loc_ack_num); in irdma_form_ah_cm_frame()
404 cm_node->tcp_cntxt.loc_seq_num++; in irdma_form_ah_cm_frame()
407 cm_node->tcp_cntxt.loc_seq_num += hdr_len + pd_len; in irdma_form_ah_cm_frame()
411 cm_node->tcp_cntxt.loc_seq_num++; in irdma_form_ah_cm_frame()
420 tcph->th_win = htons(cm_node->tcp_cntxt.rcv_wnd); in irdma_form_ah_cm_frame()
539 iph->ip_id = htons(++cm_node->tcp_cntxt.loc_id); in irdma_form_uda_cm_frame()
580 tcph->th_seq = htonl(cm_node->tcp_cntxt.loc_seq_num); in irdma_form_uda_cm_frame()
583 cm_node->tcp_cntxt.loc_ack_num = cm_node->tcp_cntxt.rcv_nxt; in irdma_form_uda_cm_frame()
584 tcph->th_ack = htonl(cm_node->tcp_cntxt.loc_ack_num); in irdma_form_uda_cm_frame()
591 cm_node->tcp_cntxt.loc_seq_num++; in irdma_form_uda_cm_frame()
594 cm_node->tcp_cntxt.loc_seq_num += hdr_len + pd_len; in irdma_form_uda_cm_frame()
598 cm_node->tcp_cntxt.loc_seq_num++; in irdma_form_uda_cm_frame()
607 tcph->th_win = htons(cm_node->tcp_cntxt.rcv_wnd); in irdma_form_uda_cm_frame()
761 if (tmp < cm_node->tcp_cntxt.mss) in irdma_process_options()
762 cm_node->tcp_cntxt.mss = tmp; in irdma_process_options()
765 cm_node->tcp_cntxt.snd_wscale = in irdma_process_options()
777 cm_node->tcp_cntxt.mss = IRDMA_CM_DEFAULT_MSS; in irdma_process_options()
811 cm_node->tcp_cntxt.snd_wnd = ntohs(tcph->th_win) in irdma_handle_tcp_options()
812 << cm_node->tcp_cntxt.snd_wscale; in irdma_handle_tcp_options()
814 if (cm_node->tcp_cntxt.snd_wnd > cm_node->tcp_cntxt.max_snd_wnd) in irdma_handle_tcp_options()
815 cm_node->tcp_cntxt.max_snd_wnd = cm_node->tcp_cntxt.snd_wnd; in irdma_handle_tcp_options()
1454 options->mss.mss = htons(cm_node->tcp_cntxt.mss); in irdma_send_syn()
1460 options->windowscale.shiftcount = cm_node->tcp_cntxt.rcv_wscale; in irdma_send_syn()
2201 cm_node->tcp_cntxt.loc_id = IRDMA_CM_DEFAULT_LOCAL_ID; in irdma_make_cm_node()
2202 cm_node->tcp_cntxt.rcv_wscale = iwdev->rcv_wscale; in irdma_make_cm_node()
2203 cm_node->tcp_cntxt.rcv_wnd = iwdev->rcv_wnd >> cm_node->tcp_cntxt.rcv_wscale; in irdma_make_cm_node()
2315 cm_node->tcp_cntxt.rcv_nxt++; in irdma_handle_fin_pkt()
2322 cm_node->tcp_cntxt.rcv_nxt++; in irdma_handle_fin_pkt()
2329 cm_node->tcp_cntxt.rcv_nxt++; in irdma_handle_fin_pkt()
2339 cm_node->tcp_cntxt.rcv_nxt++; in irdma_handle_fin_pkt()
2347 cm_node->tcp_cntxt.rcv_nxt++; in irdma_handle_fin_pkt()
2482 if (ntohl(tcph->th_ack) != cm_node->tcp_cntxt.loc_seq_num) { in irdma_check_syn()
2500 u32 loc_seq_num = cm_node->tcp_cntxt.loc_seq_num; in irdma_check_seq()
2501 u32 rcv_nxt = cm_node->tcp_cntxt.rcv_nxt; in irdma_check_seq()
2507 rcv_wnd = cm_node->tcp_cntxt.rcv_wnd; in irdma_check_seq()
2575 cm_node->tcp_cntxt.rcv_nxt = inc_sequence + 1; in irdma_handle_syn_pkt()
2624 cm_node->tcp_cntxt.rem_ack_num = ntohl(tcph->th_ack); in irdma_handle_synack_pkt()
2633 cm_node->tcp_cntxt.rcv_nxt = inc_sequence + 1; in irdma_handle_synack_pkt()
2648 cm_node->tcp_cntxt.loc_seq_num = ntohl(tcph->th_ack); in irdma_handle_synack_pkt()
2654 cm_node->tcp_cntxt.loc_seq_num = ntohl(tcph->th_ack); in irdma_handle_synack_pkt()
2699 cm_node->tcp_cntxt.rem_ack_num = ntohl(tcph->th_ack); in irdma_handle_ack_pkt()
2702 cm_node->tcp_cntxt.rcv_nxt = inc_sequence + datasize; in irdma_handle_ack_pkt()
2709 cm_node->tcp_cntxt.rcv_nxt = inc_sequence + datasize; in irdma_handle_ack_pkt()
2714 cm_node->tcp_cntxt.rem_ack_num = ntohl(tcph->th_ack); in irdma_handle_ack_pkt()
2716 cm_node->tcp_cntxt.rcv_nxt = inc_sequence + datasize; in irdma_handle_ack_pkt()
2892 cm_node->tcp_cntxt.client = 1; in irdma_create_cm_node()
2893 cm_node->tcp_cntxt.rcv_wscale = IRDMA_CM_DEFAULT_RCV_WND_SCALE; in irdma_create_cm_node()
2919 if (cm_node->tcp_cntxt.client) in irdma_cm_reject()
3208 tcp_info->snd_wscale = cm_node->tcp_cntxt.snd_wscale; in irdma_init_tcp_ctx()
3209 tcp_info->rcv_wscale = cm_node->tcp_cntxt.rcv_wscale; in irdma_init_tcp_ctx()
3211 tcp_info->snd_nxt = cm_node->tcp_cntxt.loc_seq_num; in irdma_init_tcp_ctx()
3212 tcp_info->snd_wnd = cm_node->tcp_cntxt.snd_wnd; in irdma_init_tcp_ctx()
3213 tcp_info->rcv_nxt = cm_node->tcp_cntxt.rcv_nxt; in irdma_init_tcp_ctx()
3214 tcp_info->snd_max = cm_node->tcp_cntxt.loc_seq_num; in irdma_init_tcp_ctx()
3216 tcp_info->snd_una = cm_node->tcp_cntxt.loc_seq_num; in irdma_init_tcp_ctx()
3217 tcp_info->cwnd = 2 * cm_node->tcp_cntxt.mss; in irdma_init_tcp_ctx()
3218 tcp_info->snd_wl1 = cm_node->tcp_cntxt.rcv_nxt; in irdma_init_tcp_ctx()
3219 tcp_info->snd_wl2 = cm_node->tcp_cntxt.loc_seq_num; in irdma_init_tcp_ctx()
3220 tcp_info->max_snd_window = cm_node->tcp_cntxt.max_snd_wnd; in irdma_init_tcp_ctx()
3221 tcp_info->rcv_wnd = cm_node->tcp_cntxt.rcv_wnd in irdma_init_tcp_ctx()
3222 << cm_node->tcp_cntxt.rcv_wscale; in irdma_init_tcp_ctx()
3225 tcp_info->snd_mss = (u32)cm_node->tcp_cntxt.mss; in irdma_init_tcp_ctx()