Lines Matching refs:ah_info
1439 struct irdma_ah_info *ah_info) in irdma_puda_ieq_get_ah_info() argument
1445 memset(ah_info, 0, sizeof(*ah_info)); in irdma_puda_ieq_get_ah_info()
1446 ah_info->do_lpbk = true; in irdma_puda_ieq_get_ah_info()
1447 ah_info->vlan_tag = buf->vlan_id; in irdma_puda_ieq_get_ah_info()
1448 ah_info->insert_vlan_tag = buf->vlan_valid; in irdma_puda_ieq_get_ah_info()
1449 ah_info->ipv4_valid = buf->ipv4; in irdma_puda_ieq_get_ah_info()
1450 ah_info->vsi = qp->vsi; in irdma_puda_ieq_get_ah_info()
1453 ether_addr_copy(ah_info->mac_addr, buf->smac); in irdma_puda_ieq_get_ah_info()
1456 ah_info->ipv4_valid = true; in irdma_puda_ieq_get_ah_info()
1458 ah_info->hop_ttl = iph->ttl; in irdma_puda_ieq_get_ah_info()
1459 ah_info->tc_tos = iph->tos; in irdma_puda_ieq_get_ah_info()
1460 ah_info->dest_ip_addr[0] = ntohl(iph->daddr); in irdma_puda_ieq_get_ah_info()
1461 ah_info->src_ip_addr[0] = ntohl(iph->saddr); in irdma_puda_ieq_get_ah_info()
1464 ah_info->hop_ttl = ip6h->hop_limit; in irdma_puda_ieq_get_ah_info()
1465 ah_info->tc_tos = ip6h->priority; in irdma_puda_ieq_get_ah_info()
1466 irdma_copy_ip_ntohl(ah_info->dest_ip_addr, in irdma_puda_ieq_get_ah_info()
1468 irdma_copy_ip_ntohl(ah_info->src_ip_addr, in irdma_puda_ieq_get_ah_info()
1472 ah_info->dst_arpindex = irdma_arp_table(dev_to_rf(qp->dev), in irdma_puda_ieq_get_ah_info()
1473 ah_info->dest_ip_addr, in irdma_puda_ieq_get_ah_info()
1474 ah_info->ipv4_valid, in irdma_puda_ieq_get_ah_info()
2082 cqp_info->in.u.ah_create.info = sc_ah->ah_info; in irdma_ah_cqp_op()
2086 cqp_info->in.u.ah_destroy.info = sc_ah->ah_info; in irdma_ah_cqp_op()
2102 sc_ah->ah_info.ah_valid = (cmd == IRDMA_OP_AH_CREATE); in irdma_ah_cqp_op()
2119 sc_ah->ah_info.ah_valid = true; in irdma_ieq_ah_cb()
2122 sc_ah->ah_info.ah_valid = false; in irdma_ieq_ah_cb()
2137 sc_ah->ah_info.ah_valid = !cqp_request->compl_info.op_ret_val; in irdma_ilq_ah_cb()
2152 struct irdma_ah_info *ah_info, in irdma_puda_create_ah() argument
2167 &ah_info->ah_idx, &rf->next_ah); in irdma_puda_create_ah()
2172 ah->ah_info = *ah_info; in irdma_puda_create_ah()
2186 irdma_free_rsrc(rf, rf->allocated_ahs, ah->ah_info.ah_idx); in irdma_puda_create_ah()
2205 if (ah->ah_info.ah_valid) { in irdma_puda_free_ah()
2207 irdma_free_rsrc(rf, rf->allocated_ahs, ah->ah_info.ah_idx); in irdma_puda_free_ah()
2222 sc_ah->ah_info.ah_valid = true; in irdma_gsi_ud_qp_ah_cb()
2224 sc_ah->ah_info.ah_valid = false; in irdma_gsi_ud_qp_ah_cb()