main.c (64282ea2d2a90437c0739ce016b80a1dec16507e) | main.c (ad84dad2160d5f36bb471b391462d651c887d693) |
---|---|
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: --- 33 unchanged lines hidden (view full) --- 42#include <linux/qed/qed_if.h> 43#include "qedr.h" 44#include "verbs.h" 45#include <rdma/qedr-abi.h> 46 47MODULE_DESCRIPTION("QLogic 40G/100G ROCE Driver"); 48MODULE_AUTHOR("QLogic Corporation"); 49MODULE_LICENSE("Dual BSD/GPL"); | 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: --- 33 unchanged lines hidden (view full) --- 42#include <linux/qed/qed_if.h> 43#include "qedr.h" 44#include "verbs.h" 45#include <rdma/qedr-abi.h> 46 47MODULE_DESCRIPTION("QLogic 40G/100G ROCE Driver"); 48MODULE_AUTHOR("QLogic Corporation"); 49MODULE_LICENSE("Dual BSD/GPL"); |
50MODULE_VERSION(QEDR_MODULE_VERSION); | |
51 52#define QEDR_WQ_MULTIPLIER_DFT (3) 53 54void qedr_ib_dispatch_event(struct qedr_dev *dev, u8 port_num, 55 enum ib_event_type type) 56{ 57 struct ib_event ibev; 58 --- 714 unchanged lines hidden (view full) --- 773 goto init_err; 774 } 775 776 dev->ops = qed_ops; 777 rc = qed_ops->fill_dev_info(cdev, &dev_info); 778 if (rc) 779 goto init_err; 780 | 50 51#define QEDR_WQ_MULTIPLIER_DFT (3) 52 53void qedr_ib_dispatch_event(struct qedr_dev *dev, u8 port_num, 54 enum ib_event_type type) 55{ 56 struct ib_event ibev; 57 --- 714 unchanged lines hidden (view full) --- 772 goto init_err; 773 } 774 775 dev->ops = qed_ops; 776 rc = qed_ops->fill_dev_info(cdev, &dev_info); 777 if (rc) 778 goto init_err; 779 |
780 dev->user_dpm_enabled = dev_info.user_dpm_enabled; |
|
781 dev->num_hwfns = dev_info.common.num_hwfns; 782 dev->rdma_ctx = dev->ops->rdma_get_rdma_ctx(cdev); 783 784 dev->num_cnq = dev->ops->rdma_get_min_cnq_msix(cdev); 785 if (!dev->num_cnq) { 786 DP_ERR(dev, "not enough CNQ resources.\n"); 787 goto init_err; 788 } --- 155 unchanged lines hidden --- | 781 dev->num_hwfns = dev_info.common.num_hwfns; 782 dev->rdma_ctx = dev->ops->rdma_get_rdma_ctx(cdev); 783 784 dev->num_cnq = dev->ops->rdma_get_min_cnq_msix(cdev); 785 if (!dev->num_cnq) { 786 DP_ERR(dev, "not enough CNQ resources.\n"); 787 goto init_err; 788 } --- 155 unchanged lines hidden --- |