Lines Matching refs:ah_attr
12 struct rdma_ah_attr *ah_attr, in rdma_build_skb() argument
24 is_ipv4 = ipv6_addr_v4mapped((struct in6_addr *)ah_attr->grh.dgid.raw); in rdma_build_skb()
38 htons(rdma_flow_label_to_udp_sport(ah_attr->grh.flow_label)); in rdma_build_skb()
52 memcpy(&iph->saddr, ah_attr->grh.sgid_attr->gid.raw + 12, in rdma_build_skb()
54 memcpy(&iph->daddr, ah_attr->grh.dgid.raw + 12, in rdma_build_skb()
62 memcpy(&ip6h->flow_lbl, &ah_attr->grh.flow_label, in rdma_build_skb()
64 memcpy(&ip6h->saddr, ah_attr->grh.sgid_attr->gid.raw, in rdma_build_skb()
66 memcpy(&ip6h->daddr, ah_attr->grh.dgid.raw, in rdma_build_skb()
74 rdma_read_gid_l2_fields(ah_attr->grh.sgid_attr, NULL, smac); in rdma_build_skb()
76 memcpy(eth->h_dest, ah_attr->roce.dmac, ETH_ALEN); in rdma_build_skb()
83 struct rdma_ah_attr *ah_attr, in rdma_get_xmit_slave_udp() argument
89 skb = rdma_build_skb(device, master, ah_attr, flags); in rdma_get_xmit_slave_udp()
111 struct rdma_ah_attr *ah_attr, in rdma_lag_get_ah_roce_slave() argument
117 if (!(ah_attr->type == RDMA_AH_ATTR_TYPE_ROCE && in rdma_lag_get_ah_roce_slave()
118 ah_attr->grh.sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP && in rdma_lag_get_ah_roce_slave()
119 ah_attr->grh.flow_label)) in rdma_lag_get_ah_roce_slave()
123 master = rdma_read_gid_attr_ndev_rcu(ah_attr->grh.sgid_attr); in rdma_lag_get_ah_roce_slave()
134 slave = rdma_get_xmit_slave_udp(device, master, ah_attr, flags); in rdma_lag_get_ah_roce_slave()