Lines Matching refs:smac

1412 		if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) {  in destroy_qp_common()
1413 mlx4_unregister_mac(dev->dev, qp->pri.smac_port, qp->pri.smac); in destroy_qp_common()
1414 qp->pri.smac = 0; in destroy_qp_common()
1417 if (qp->alt.smac) { in destroy_qp_common()
1418 mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac); in destroy_qp_common()
1419 qp->alt.smac = 0; in destroy_qp_common()
1774 u64 smac, u16 vlan_tag, struct mlx4_qp_path *path, in _mlx4_set_path() argument
1864 if ((!smac_info->smac && !smac_info->smac_port) || in _mlx4_set_path()
1865 smac_info->smac != smac) { in _mlx4_set_path()
1867 smac_index = mlx4_register_mac(dev->dev, port, smac); in _mlx4_set_path()
1870 smac_info->candidate_smac = smac; in _mlx4_set_path()
1894 u16 vlan_id, u8 *smac) in mlx4_set_path() argument
1897 ether_addr_to_u64(smac), in mlx4_set_path()
1936 if (!qp->pri.smac && !qp->pri.smac_port) { in handle_eth_ud_smac_index()
2295 u8 smac[ETH_ALEN]; in __mlx4_ib_modify_qp() local
2303 &smac[0]); in __mlx4_ib_modify_qp()
2309 port_num, vlan, smac)) in __mlx4_ib_modify_qp()
2594 if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) { in __mlx4_ib_modify_qp()
2595 mlx4_unregister_mac(dev->dev, qp->pri.smac_port, qp->pri.smac); in __mlx4_ib_modify_qp()
2596 qp->pri.smac = 0; in __mlx4_ib_modify_qp()
2599 if (qp->alt.smac) { in __mlx4_ib_modify_qp()
2600 mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac); in __mlx4_ib_modify_qp()
2601 qp->alt.smac = 0; in __mlx4_ib_modify_qp()
2628 if (qp->pri.smac || (!qp->pri.smac && qp->pri.smac_port)) in __mlx4_ib_modify_qp()
2629 mlx4_unregister_mac(dev->dev, qp->pri.smac_port, qp->pri.smac); in __mlx4_ib_modify_qp()
2630 qp->pri.smac = qp->pri.candidate_smac; in __mlx4_ib_modify_qp()
2642 if (qp->alt.smac) in __mlx4_ib_modify_qp()
2643 mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac); in __mlx4_ib_modify_qp()
2644 qp->alt.smac = qp->alt.candidate_smac; in __mlx4_ib_modify_qp()