Lines Matching defs:tcp_info

3187  * @tcp_info: offload info for tcp
3192 struct irdma_tcp_offload_info *tcp_info,
3195 tcp_info->ipv4 = cm_node->ipv4;
3196 tcp_info->drop_ooo_seg = !iwqp->iwdev->iw_ooo;
3197 tcp_info->wscale = true;
3198 tcp_info->ignore_tcp_opt = true;
3199 tcp_info->ignore_tcp_uns_opt = true;
3200 tcp_info->no_nagle = false;
3202 tcp_info->ttl = IRDMA_DEFAULT_TTL;
3203 tcp_info->rtt_var = IRDMA_DEFAULT_RTT_VAR;
3204 tcp_info->ss_thresh = IRDMA_DEFAULT_SS_THRESH;
3205 tcp_info->rexmit_thresh = IRDMA_DEFAULT_REXMIT_THRESH;
3207 tcp_info->tcp_state = IRDMA_TCP_STATE_ESTABLISHED;
3208 tcp_info->snd_wscale = cm_node->tcp_cntxt.snd_wscale;
3209 tcp_info->rcv_wscale = cm_node->tcp_cntxt.rcv_wscale;
3211 tcp_info->snd_nxt = cm_node->tcp_cntxt.loc_seq_num;
3212 tcp_info->snd_wnd = cm_node->tcp_cntxt.snd_wnd;
3213 tcp_info->rcv_nxt = cm_node->tcp_cntxt.rcv_nxt;
3214 tcp_info->snd_max = cm_node->tcp_cntxt.loc_seq_num;
3216 tcp_info->snd_una = cm_node->tcp_cntxt.loc_seq_num;
3217 tcp_info->cwnd = 2 * cm_node->tcp_cntxt.mss;
3218 tcp_info->snd_wl1 = cm_node->tcp_cntxt.rcv_nxt;
3219 tcp_info->snd_wl2 = cm_node->tcp_cntxt.loc_seq_num;
3220 tcp_info->max_snd_window = cm_node->tcp_cntxt.max_snd_wnd;
3221 tcp_info->rcv_wnd = cm_node->tcp_cntxt.rcv_wnd
3224 tcp_info->flow_label = 0;
3225 tcp_info->snd_mss = (u32)cm_node->tcp_cntxt.mss;
3226 tcp_info->tos = cm_node->tos;
3228 tcp_info->insert_vlan_tag = true;
3229 tcp_info->vlan_tag = cm_node->vlan_id;
3230 tcp_info->vlan_tag |= cm_node->user_pri << VLAN_PRIO_SHIFT;
3232 tcp_info->src_port = cm_node->loc_port;
3233 tcp_info->dst_port = cm_node->rem_port;
3234 tcp_info->arp_idx = (u16)irdma_arp_table(iwqp->iwdev->rf,
3238 tcp_info->dest_ip_addr[3] = cm_node->rem_addr[0];
3239 tcp_info->local_ipaddr[3] = cm_node->loc_addr[0];
3241 memcpy(tcp_info->dest_ip_addr, cm_node->rem_addr,
3242 sizeof(tcp_info->dest_ip_addr));
3243 memcpy(tcp_info->local_ipaddr, cm_node->loc_addr,
3244 sizeof(tcp_info->local_ipaddr));
3263 ctx_info->tcp_info = &iwqp->tcp_info;
3278 irdma_init_tcp_ctx(cm_node, &iwqp->tcp_info, iwqp);
3281 iwarp_info->snd_mark_offset = (iwqp->tcp_info.snd_nxt & SNDMARKER_SEQNMASK) +
3286 iwqp->tcp_info.tcp_state = IRDMA_TCP_STATE_ESTABLISHED;
3287 iwqp->tcp_info.src_mac_addr_idx = iwqp->iwdev->mac_ip_table_idx;
3296 /* once tcp_info is set, no need to do it again */