Lines Matching refs:eth
93 memcpy(ah->av.eth.mac, ah_attr->roce.dmac, ETH_ALEN); in create_iboe_ah()
94 eth_zero_addr(ah->av.eth.s_mac); in create_iboe_ah()
103 &ah->av.eth.s_mac[0]); in create_iboe_ah()
110 ah->av.eth.gid_index = ret; in create_iboe_ah()
113 ah->av.eth.gid_index = ah_attr->grh.sgid_index; in create_iboe_ah()
118 ah->av.eth.port_pd = cpu_to_be32(to_mpd(ib_ah->pd)->pdn | in create_iboe_ah()
120 ah->av.eth.vlan = cpu_to_be16(vlan_tag); in create_iboe_ah()
121 ah->av.eth.hop_limit = grh->hop_limit; in create_iboe_ah()
123 ah->av.eth.stat_rate = rdma_ah_get_static_rate(ah_attr) + in create_iboe_ah()
125 while (ah->av.eth.stat_rate > IB_RATE_2_5_GBPS + MLX4_STAT_RATE_OFFSET && in create_iboe_ah()
126 !(1 << ah->av.eth.stat_rate & dev->caps.stat_rate_support)) in create_iboe_ah()
127 --ah->av.eth.stat_rate; in create_iboe_ah()
129 ah->av.eth.sl_tclass_flowlabel |= in create_iboe_ah()
138 memcpy(ah->av.eth.dgid, grh->dgid.raw, 16); in create_iboe_ah()
139 ah->av.eth.sl_tclass_flowlabel |= cpu_to_be32(rdma_ah_get_sl(ah_attr) in create_iboe_ah()
188 memcpy(mah->av.eth.s_mac, s_mac, 6); in mlx4_ib_create_ah_slave()
192 mah->av.eth.vlan = cpu_to_be16(vlan_tag); in mlx4_ib_create_ah_slave()
208 be32_to_cpu(ah->av.eth.sl_tclass_flowlabel) in mlx4_ib_query_ah()