Lines Matching defs:tcp_info

3314  * @tcp_info: offload info for tcp
3318 struct irdma_tcp_offload_info *tcp_info,
3321 tcp_info->ipv4 = cm_node->ipv4;
3322 tcp_info->drop_ooo_seg = !iwqp->iwdev->iw_ooo;
3323 tcp_info->wscale = true;
3324 tcp_info->ignore_tcp_opt = true;
3325 tcp_info->ignore_tcp_uns_opt = true;
3326 tcp_info->no_nagle = false;
3328 tcp_info->ttl = IRDMA_DEFAULT_TTL;
3329 tcp_info->rtt_var = IRDMA_DEFAULT_RTT_VAR;
3330 tcp_info->ss_thresh = IRDMA_DEFAULT_SS_THRESH;
3331 tcp_info->rexmit_thresh = IRDMA_DEFAULT_REXMIT_THRESH;
3333 tcp_info->tcp_state = IRDMA_TCP_STATE_ESTABLISHED;
3334 tcp_info->snd_wscale = cm_node->tcp_cntxt.snd_wscale;
3335 tcp_info->rcv_wscale = cm_node->tcp_cntxt.rcv_wscale;
3337 tcp_info->snd_nxt = cm_node->tcp_cntxt.loc_seq_num;
3338 tcp_info->snd_wnd = cm_node->tcp_cntxt.snd_wnd;
3339 tcp_info->rcv_nxt = cm_node->tcp_cntxt.rcv_nxt;
3340 tcp_info->snd_max = cm_node->tcp_cntxt.loc_seq_num;
3342 tcp_info->snd_una = cm_node->tcp_cntxt.loc_seq_num;
3343 tcp_info->cwnd = 2 * cm_node->tcp_cntxt.mss;
3344 tcp_info->snd_wl1 = cm_node->tcp_cntxt.rcv_nxt;
3345 tcp_info->snd_wl2 = cm_node->tcp_cntxt.loc_seq_num;
3346 tcp_info->max_snd_window = cm_node->tcp_cntxt.max_snd_wnd;
3347 tcp_info->rcv_wnd = cm_node->tcp_cntxt.rcv_wnd
3350 tcp_info->flow_label = 0;
3351 tcp_info->snd_mss = (u32)cm_node->tcp_cntxt.mss;
3352 tcp_info->tos = cm_node->tos;
3354 tcp_info->insert_vlan_tag = true;
3355 tcp_info->vlan_tag = cm_node->vlan_id;
3356 tcp_info->vlan_tag |= cm_node->user_pri << VLAN_PRIO_SHIFT;
3359 tcp_info->src_port = cm_node->loc_port;
3360 tcp_info->dst_port = cm_node->rem_port;
3362 tcp_info->dest_ip_addr[3] = cm_node->rem_addr[0];
3363 tcp_info->local_ipaddr[3] = cm_node->loc_addr[0];
3364 tcp_info->arp_idx = (u16)irdma_arp_table(iwqp->iwdev->rf,
3365 &tcp_info->dest_ip_addr[3],
3369 tcp_info->src_port = cm_node->loc_port;
3370 tcp_info->dst_port = cm_node->rem_port;
3371 memcpy(tcp_info->dest_ip_addr, cm_node->rem_addr,
3372 sizeof(tcp_info->dest_ip_addr));
3373 memcpy(tcp_info->local_ipaddr, cm_node->loc_addr,
3374 sizeof(tcp_info->local_ipaddr));
3376 tcp_info->arp_idx = (u16)irdma_arp_table(iwqp->iwdev->rf,
3377 &tcp_info->dest_ip_addr[0],
3397 ctx_info->tcp_info = &iwqp->tcp_info;
3412 irdma_init_tcp_ctx(cm_node, &iwqp->tcp_info, iwqp);
3415 iwarp_info->snd_mark_offset = (iwqp->tcp_info.snd_nxt & SNDMARKER_SEQNMASK) +
3420 iwqp->tcp_info.tcp_state = IRDMA_TCP_STATE_ESTABLISHED;
3421 iwqp->tcp_info.src_mac_addr_idx = iwqp->iwdev->mac_ip_table_idx;
3430 /* once tcp_info is set, no need to do it again */