main.c (d4e0045c4ed300781d2d4cbab57d05ed5e665a37) main.c (1a4a69751f4d24ffd3530f5a9694636db1566a3b)
1/* QLogic qedr NIC Driver
2 * Copyright (c) 2015-2016 QLogic Corporation
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

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

271 goto err3;
272
273 rc = dev->ops->common->chain_alloc(dev->cdev,
274 QED_CHAIN_USE_TO_CONSUME,
275 QED_CHAIN_MODE_PBL,
276 QED_CHAIN_CNT_TYPE_U16,
277 n_entries,
278 sizeof(struct regpair *),
1/* QLogic qedr NIC Driver
2 * Copyright (c) 2015-2016 QLogic Corporation
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

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

271 goto err3;
272
273 rc = dev->ops->common->chain_alloc(dev->cdev,
274 QED_CHAIN_USE_TO_CONSUME,
275 QED_CHAIN_MODE_PBL,
276 QED_CHAIN_CNT_TYPE_U16,
277 n_entries,
278 sizeof(struct regpair *),
279 &cnq->pbl);
279 &cnq->pbl, NULL);
280 if (rc)
281 goto err4;
282
283 cnq->dev = dev;
284 cnq->sb = &dev->sb_array[i];
285 cons_pi = dev->sb_array[i].sb_virt->pi_array;
286 cnq->hw_cons_ptr = &cons_pi[QED_ROCE_PROTOCOL_INDEX];
287 cnq->index = i;

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

881 guid[4] = 0xfe;
882 guid[5] = mac_addr[3];
883 guid[6] = mac_addr[4];
884 guid[7] = mac_addr[5];
885 sgid->global.subnet_prefix = cpu_to_be64(0xfe80000000000000LL);
886 memcpy(&sgid->raw[8], guid, sizeof(guid));
887
888 /* Update LL2 */
280 if (rc)
281 goto err4;
282
283 cnq->dev = dev;
284 cnq->sb = &dev->sb_array[i];
285 cons_pi = dev->sb_array[i].sb_virt->pi_array;
286 cnq->hw_cons_ptr = &cons_pi[QED_ROCE_PROTOCOL_INDEX];
287 cnq->index = i;

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

881 guid[4] = 0xfe;
882 guid[5] = mac_addr[3];
883 guid[6] = mac_addr[4];
884 guid[7] = mac_addr[5];
885 sgid->global.subnet_prefix = cpu_to_be64(0xfe80000000000000LL);
886 memcpy(&sgid->raw[8], guid, sizeof(guid));
887
888 /* Update LL2 */
889 rc = dev->ops->roce_ll2_set_mac_filter(dev->cdev,
890 dev->gsi_ll2_mac_address,
891 dev->ndev->dev_addr);
889 rc = dev->ops->ll2_set_mac_filter(dev->cdev,
890 dev->gsi_ll2_mac_address,
891 dev->ndev->dev_addr);
892
893 ether_addr_copy(dev->gsi_ll2_mac_address, dev->ndev->dev_addr);
894
895 qedr_ib_dispatch_event(dev, QEDR_PORT, IB_EVENT_GID_CHANGE);
896
897 if (rc)
898 DP_ERR(dev, "Error updating mac filter\n");
899}

--- 44 unchanged lines hidden ---
892
893 ether_addr_copy(dev->gsi_ll2_mac_address, dev->ndev->dev_addr);
894
895 qedr_ib_dispatch_event(dev, QEDR_PORT, IB_EVENT_GID_CHANGE);
896
897 if (rc)
898 DP_ERR(dev, "Error updating mac filter\n");
899}

--- 44 unchanged lines hidden ---