diff options
author | Michal Kalderon <Michal.Kalderon@cavium.com> | 2017-09-24 12:09:42 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-26 11:22:03 -0700 |
commit | e0a8f9de16fce34fc2957eca4c71d3ff2ac286d5 (patch) | |
tree | 24c4ecba69ac359f472eb6545a8c54b2e189c26f /drivers/net/ethernet/qlogic/qed/qed_rdma.c | |
parent | 2091c227fa855776aafffad7ecd25ac0734df1a0 (diff) | |
download | linux-stable-e0a8f9de16fce34fc2957eca4c71d3ff2ac286d5.tar.gz linux-stable-e0a8f9de16fce34fc2957eca4c71d3ff2ac286d5.tar.bz2 linux-stable-e0a8f9de16fce34fc2957eca4c71d3ff2ac286d5.zip |
qed: Add iWARP enablement support
This patch is the last of the initial iWARP patch series. It
adds the possiblity to actually detect iWARP from the device and enable
it in the critical locations which basically make iWARP available.
It wasn't submitted until now as iWARP hadn't been accepted into
the rdma tree.
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_rdma.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_rdma.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_rdma.c b/drivers/net/ethernet/qlogic/qed/qed_rdma.c index 6fb99518a61f..06715f7403ef 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_rdma.c +++ b/drivers/net/ethernet/qlogic/qed/qed_rdma.c @@ -156,7 +156,10 @@ static int qed_rdma_alloc(struct qed_hwfn *p_hwfn, return rc; p_hwfn->p_rdma_info = p_rdma_info; - p_rdma_info->proto = PROTOCOLID_ROCE; + if (QED_IS_IWARP_PERSONALITY(p_hwfn)) + p_rdma_info->proto = PROTOCOLID_IWARP; + else + p_rdma_info->proto = PROTOCOLID_ROCE; num_cons = qed_cxt_get_proto_cid_count(p_hwfn, p_rdma_info->proto, NULL); |