Searched refs:sgid_attr (Results 1 – 3 of 3) sorted by relevance
121 struct ib_gid_attr sgid_attr; in ocrdma_create_ah() local140 &sgid_attr); in ocrdma_create_ah()146 if (sgid_attr.ndev) { in ocrdma_create_ah()147 if (is_vlan_dev(sgid_attr.ndev)) in ocrdma_create_ah()148 vlan_tag = vlan_dev_vlan_id(sgid_attr.ndev); in ocrdma_create_ah()149 dev_put(sgid_attr.ndev); in ocrdma_create_ah()157 sgid_attr.ndev->ifindex); in ocrdma_create_ah()
2502 struct ib_gid_attr sgid_attr; in ocrdma_set_av_params() local2523 &sgid, &sgid_attr); in ocrdma_set_av_params()2524 if (!status && sgid_attr.ndev) { in ocrdma_set_av_params()2525 vlan_id = rdma_vlan_dev_vlan_id(sgid_attr.ndev); in ocrdma_set_av_params()2526 memcpy(mac_addr, sgid_attr.ndev->dev_addr, ETH_ALEN); in ocrdma_set_av_params()2527 dev_put(sgid_attr.ndev); in ocrdma_set_av_params()
1015 struct ib_gid_attr sgid_attr; in ib_resolve_eth_dmac() local1021 &sgid, &sgid_attr); in ib_resolve_eth_dmac()1023 if (ret || !sgid_attr.ndev) { in ib_resolve_eth_dmac()1029 ifindex = sgid_attr.ndev->ifindex; in ib_resolve_eth_dmac()1036 dev_put(sgid_attr.ndev); in ib_resolve_eth_dmac()