main.c (ffb1e76f4f32d2b8ea4189df0484980370476395) main.c (ded6e16b37e4c8c86cda98604ecd78818d6ca36a)
1/*
2 * Copyright (c) 2006, 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

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

2270static void mlx4_ib_update_qps(struct mlx4_ib_dev *ibdev,
2271 struct net_device *dev,
2272 int port)
2273{
2274 u64 new_smac = 0;
2275 u64 release_mac = MLX4_IB_INVALID_MAC;
2276 struct mlx4_ib_qp *qp;
2277
1/*
2 * Copyright (c) 2006, 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

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

2270static void mlx4_ib_update_qps(struct mlx4_ib_dev *ibdev,
2271 struct net_device *dev,
2272 int port)
2273{
2274 u64 new_smac = 0;
2275 u64 release_mac = MLX4_IB_INVALID_MAC;
2276 struct mlx4_ib_qp *qp;
2277
2278 new_smac = mlx4_mac_to_u64(dev->dev_addr);
2278 new_smac = ether_addr_to_u64(dev->dev_addr);
2279 atomic64_set(&ibdev->iboe.mac[port - 1], new_smac);
2280
2281 /* no need for update QP1 and mac registration in non-SRIOV */
2282 if (!mlx4_is_mfunc(ibdev->dev))
2283 return;
2284
2285 mutex_lock(&ibdev->qp1_proxy_lock[port - 1]);
2286 qp = ibdev->qp1_proxy[port - 1];

--- 1050 unchanged lines hidden ---
2279 atomic64_set(&ibdev->iboe.mac[port - 1], new_smac);
2280
2281 /* no need for update QP1 and mac registration in non-SRIOV */
2282 if (!mlx4_is_mfunc(ibdev->dev))
2283 return;
2284
2285 mutex_lock(&ibdev->qp1_proxy_lock[port - 1]);
2286 qp = ibdev->qp1_proxy[port - 1];

--- 1050 unchanged lines hidden ---