Lines Matching refs:smac

992 		if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) {  in destroy_qp_common()
993 mlx4_unregister_mac(dev->dev, qp->pri.smac_port, qp->pri.smac); in destroy_qp_common()
994 qp->pri.smac = 0; in destroy_qp_common()
997 if (qp->alt.smac) { in destroy_qp_common()
998 mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac); in destroy_qp_common()
999 qp->alt.smac = 0; in destroy_qp_common()
1274 u64 smac, u16 vlan_tag, struct mlx4_qp_path *path, in _mlx4_set_path() argument
1360 if ((!smac_info->smac && !smac_info->smac_port) || in _mlx4_set_path()
1361 smac_info->smac != smac) { in _mlx4_set_path()
1363 smac_index = mlx4_register_mac(dev->dev, port, smac); in _mlx4_set_path()
1366 smac_info->candidate_smac = smac; in _mlx4_set_path()
1393 mlx4_mac_to_u64((u8 *)qp->smac), in mlx4_set_path()
1423 static int handle_eth_ud_smac_index(struct mlx4_ib_dev *dev, struct mlx4_ib_qp *qp, u8 *smac, in handle_eth_ud_smac_index() argument
1432 if (!qp->pri.smac && !qp->pri.smac_port) { in handle_eth_ud_smac_index()
1702 err = handle_eth_ud_smac_index(dev, qp, (u8 *)attr->smac, context); in __mlx4_ib_modify_qp()
1822 if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) { in __mlx4_ib_modify_qp()
1823 mlx4_unregister_mac(dev->dev, qp->pri.smac_port, qp->pri.smac); in __mlx4_ib_modify_qp()
1824 qp->pri.smac = 0; in __mlx4_ib_modify_qp()
1827 if (qp->alt.smac) { in __mlx4_ib_modify_qp()
1828 mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac); in __mlx4_ib_modify_qp()
1829 qp->alt.smac = 0; in __mlx4_ib_modify_qp()
1854 if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) in __mlx4_ib_modify_qp()
1855 mlx4_unregister_mac(dev->dev, qp->pri.smac_port, qp->pri.smac); in __mlx4_ib_modify_qp()
1856 qp->pri.smac = qp->pri.candidate_smac; in __mlx4_ib_modify_qp()
1868 if (qp->alt.smac) in __mlx4_ib_modify_qp()
1869 mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac); in __mlx4_ib_modify_qp()
1870 qp->alt.smac = qp->alt.candidate_smac; in __mlx4_ib_modify_qp()
2284 u8 smac[ETH_ALEN]; in build_mlx_header() local
2286 mlx4_u64_to_smac(smac, mac); in build_mlx_header()
2287 memcpy(sqp->ud_header.eth.smac_h, smac, ETH_ALEN); in build_mlx_header()