Skip to content

Commit 67b40dc

Browse files
mkalderondavem330
authored andcommitted
qed: Implement iWARP initialization, teardown and qp operations
This patch adds iWARP support for flows that have common code between RoCE and iWARP, such as initialization, teardown and qp setup verbs: create, destroy, modify, query. It introduces the iWARP specific files qed_iwarp.[ch] and iwarp_common.h Signed-off-by: Michal Kalderon <[email protected]> Signed-off-by: Yuval Mintz <[email protected]> Signed-off-by: Ariel Elior <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c851a9d commit 67b40dc

File tree

11 files changed

+803
-40
lines changed

11 files changed

+803
-40
lines changed

drivers/net/ethernet/qlogic/qed/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ qed-y := qed_cxt.o qed_dev.o qed_hw.o qed_init_fw_funcs.o qed_init_ops.o \
55
qed_selftest.o qed_dcbx.o qed_debug.o qed_ptp.o
66
qed-$(CONFIG_QED_SRIOV) += qed_sriov.o qed_vf.o
77
qed-$(CONFIG_QED_LL2) += qed_ll2.o
8-
qed-$(CONFIG_QED_RDMA) += qed_roce.o qed_rdma.o
8+
qed-$(CONFIG_QED_RDMA) += qed_roce.o qed_rdma.o qed_iwarp.o
99
qed-$(CONFIG_QED_ISCSI) += qed_iscsi.o qed_ooo.o
1010
qed-$(CONFIG_QED_FCOE) += qed_fcoe.o

drivers/net/ethernet/qlogic/qed/qed_dev.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,8 +937,15 @@ int qed_resc_alloc(struct qed_dev *cdev)
937937
/* EQ */
938938
n_eqes = qed_chain_get_capacity(&p_hwfn->p_spq->chain);
939939
if (QED_IS_RDMA_PERSONALITY(p_hwfn)) {
940+
enum protocol_type rdma_proto;
941+
942+
if (QED_IS_ROCE_PERSONALITY(p_hwfn))
943+
rdma_proto = PROTOCOLID_ROCE;
944+
else
945+
rdma_proto = PROTOCOLID_IWARP;
946+
940947
num_cons = qed_cxt_get_proto_cid_count(p_hwfn,
941-
PROTOCOLID_ROCE,
948+
rdma_proto,
942949
NULL) * 2;
943950
n_eqes += num_cons + 2 * MAX_NUM_VFS_BB;
944951
} else if (p_hwfn->hw_info.personality == QED_PCI_ISCSI) {

drivers/net/ethernet/qlogic/qed/qed_hsi.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
#include <linux/qed/fcoe_common.h>
4747
#include <linux/qed/eth_common.h>
4848
#include <linux/qed/iscsi_common.h>
49+
#include <linux/qed/iwarp_common.h>
4950
#include <linux/qed/rdma_common.h>
5051
#include <linux/qed/roce_common.h>
5152
#include <linux/qed/qed_fcoe_if.h>

0 commit comments

Comments
 (0)