qp.c (ffb1e76f4f32d2b8ea4189df0484980370476395) qp.c (ded6e16b37e4c8c86cda98604ecd78818d6ca36a)
1/*
2 * Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.
3 * Copyright (c) 2007, 2008 Mellanox Technologies. All rights reserved.
4 *
5 * This software is available to you under a choice of one of two
6 * licenses. You may choose to be licensed under the terms of the GNU
7 * General Public License (GPL) Version 2, available from the file
8 * COPYING in the main directory of this source tree, or the

--- 1839 unchanged lines hidden (view full) ---

1848
1849static int mlx4_set_path(struct mlx4_ib_dev *dev, const struct ib_qp_attr *qp,
1850 enum ib_qp_attr_mask qp_attr_mask,
1851 struct mlx4_ib_qp *mqp,
1852 struct mlx4_qp_path *path, u8 port,
1853 u16 vlan_id, u8 *smac)
1854{
1855 return _mlx4_set_path(dev, &qp->ah_attr,
1/*
2 * Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.
3 * Copyright (c) 2007, 2008 Mellanox Technologies. All rights reserved.
4 *
5 * This software is available to you under a choice of one of two
6 * licenses. You may choose to be licensed under the terms of the GNU
7 * General Public License (GPL) Version 2, available from the file
8 * COPYING in the main directory of this source tree, or the

--- 1839 unchanged lines hidden (view full) ---

1848
1849static int mlx4_set_path(struct mlx4_ib_dev *dev, const struct ib_qp_attr *qp,
1850 enum ib_qp_attr_mask qp_attr_mask,
1851 struct mlx4_ib_qp *mqp,
1852 struct mlx4_qp_path *path, u8 port,
1853 u16 vlan_id, u8 *smac)
1854{
1855 return _mlx4_set_path(dev, &qp->ah_attr,
1856 mlx4_mac_to_u64(smac),
1856 ether_addr_to_u64(smac),
1857 vlan_id,
1858 path, &mqp->pri, port);
1859}
1860
1861static int mlx4_set_alt_path(struct mlx4_ib_dev *dev,
1862 const struct ib_qp_attr *qp,
1863 enum ib_qp_attr_mask qp_attr_mask,
1864 struct mlx4_ib_qp *mqp,

--- 2604 unchanged lines hidden ---
1857 vlan_id,
1858 path, &mqp->pri, port);
1859}
1860
1861static int mlx4_set_alt_path(struct mlx4_ib_dev *dev,
1862 const struct ib_qp_attr *qp,
1863 enum ib_qp_attr_mask qp_attr_mask,
1864 struct mlx4_ib_qp *mqp,

--- 2604 unchanged lines hidden ---