main.c (728d90bdc9e480dc93913e59a0aa3c896c7aa697) main.c (73ab512f720298aabe23b34110e3f6a8545b0ba5)
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:

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

352 int i, rc;
353
354 dev->sgid_tbl = kcalloc(QEDR_MAX_SGID, sizeof(union ib_gid),
355 GFP_KERNEL);
356 if (!dev->sgid_tbl)
357 return -ENOMEM;
358
359 spin_lock_init(&dev->sgid_lock);
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:

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

352 int i, rc;
353
354 dev->sgid_tbl = kcalloc(QEDR_MAX_SGID, sizeof(union ib_gid),
355 GFP_KERNEL);
356 if (!dev->sgid_tbl)
357 return -ENOMEM;
358
359 spin_lock_init(&dev->sgid_lock);
360 xa_init_flags(&dev->srqs, XA_FLAGS_LOCK_IRQ);
360
361 if (IS_IWARP(dev)) {
362 xa_init_flags(&dev->qps, XA_FLAGS_LOCK_IRQ);
363 dev->iwarp_wq = create_singlethread_workqueue("qedr_iwarpq");
364 }
365
366 /* Allocate Status blocks for CNQ */
367 dev->sb_array = kcalloc(dev->num_cnq, sizeof(*dev->sb_array),

--- 684 unchanged lines hidden ---
361
362 if (IS_IWARP(dev)) {
363 xa_init_flags(&dev->qps, XA_FLAGS_LOCK_IRQ);
364 dev->iwarp_wq = create_singlethread_workqueue("qedr_iwarpq");
365 }
366
367 /* Allocate Status blocks for CNQ */
368 dev->sb_array = kcalloc(dev->num_cnq, sizeof(*dev->sb_array),

--- 684 unchanged lines hidden ---