diff options
author | Faisal Latif <faisal.latif@intel.com> | 2016-02-26 09:18:01 -0600 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-03-16 13:50:52 -0400 |
commit | 8d8cd0bf67982a2b400ca3fd5d6807b834f6a38e (patch) | |
tree | 828efe85ad1f3d52301ad813b29775bf80608cb1 /drivers/infiniband/hw/i40iw/i40iw_hw.c | |
parent | d37498417947cb2299fc749ae4af1d204c768cba (diff) | |
download | linux-8d8cd0bf67982a2b400ca3fd5d6807b834f6a38e.tar.bz2 |
i40iw: use shared code for port mapper
Removei/change for port mapper code which has been moved to iwcm.
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/i40iw/i40iw_hw.c')
-rw-r--r-- | drivers/infiniband/hw/i40iw/i40iw_hw.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_hw.c b/drivers/infiniband/hw/i40iw/i40iw_hw.c index bee9ba61ba2e..9fd302425563 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_hw.c +++ b/drivers/infiniband/hw/i40iw/i40iw_hw.c @@ -553,17 +553,17 @@ enum i40iw_status_code i40iw_manage_qhash(struct i40iw_device *iwdev, info->ipv4_valid = cminfo->ipv4; ether_addr_copy(info->mac_addr, iwdev->netdev->dev_addr); info->qp_num = cpu_to_le32(dev->ilq->qp_id); - info->dest_port = cpu_to_le16(cminfo->map_loc_port); - info->dest_ip[0] = cpu_to_le32(cminfo->map_loc_addr[0]); - info->dest_ip[1] = cpu_to_le32(cminfo->map_loc_addr[1]); - info->dest_ip[2] = cpu_to_le32(cminfo->map_loc_addr[2]); - info->dest_ip[3] = cpu_to_le32(cminfo->map_loc_addr[3]); + info->dest_port = cpu_to_le16(cminfo->loc_port); + info->dest_ip[0] = cpu_to_le32(cminfo->loc_addr[0]); + info->dest_ip[1] = cpu_to_le32(cminfo->loc_addr[1]); + info->dest_ip[2] = cpu_to_le32(cminfo->loc_addr[2]); + info->dest_ip[3] = cpu_to_le32(cminfo->loc_addr[3]); if (etype == I40IW_QHASH_TYPE_TCP_ESTABLISHED) { - info->src_port = cpu_to_le16(cminfo->map_rem_port); - info->src_ip[0] = cpu_to_le32(cminfo->map_rem_addr[0]); - info->src_ip[1] = cpu_to_le32(cminfo->map_rem_addr[1]); - info->src_ip[2] = cpu_to_le32(cminfo->map_rem_addr[2]); - info->src_ip[3] = cpu_to_le32(cminfo->map_rem_addr[3]); + info->src_port = cpu_to_le16(cminfo->rem_port); + info->src_ip[0] = cpu_to_le32(cminfo->rem_addr[0]); + info->src_ip[1] = cpu_to_le32(cminfo->rem_addr[1]); + info->src_ip[2] = cpu_to_le32(cminfo->rem_addr[2]); + info->src_ip[3] = cpu_to_le32(cminfo->rem_addr[3]); } if (cmnode) { cqp_request->callback_fcn = i40iw_send_syn_cqp_callback; |