Message ID | 1474652674-13110-11-git-send-email-ira.weiny@intel.com (mailing list archive) |
---|---|
State | RFC |
Headers | show |
On 09/23/2016 10:44 AM, ira.weiny@intel.com wrote: > srpt contains lid and sm_lid fields which are 16 bits in > length, increase them to 32 bits. Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com> -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index c14071afc78a..883bbfe08e0e 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -514,8 +514,8 @@ static int srpt_refresh_port(struct srpt_port *sport) if (ret) goto err_query_port; - sport->sm_lid = (u16)port_attr.sm_lid; - sport->lid = (u16)port_attr.lid; + sport->sm_lid = port_attr.sm_lid; + sport->lid = port_attr.lid; ret = ib_query_gid(sport->sdev->device, sport->port, 0, &sport->gid, NULL); diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.h b/drivers/infiniband/ulp/srpt/ib_srpt.h index 581878782854..580bb75a8815 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.h +++ b/drivers/infiniband/ulp/srpt/ib_srpt.h @@ -322,8 +322,8 @@ struct srpt_port { bool enabled; u8 port_guid[64]; u8 port; - u16 sm_lid; - u16 lid; + u32 sm_lid; + u32 lid; union ib_gid gid; struct work_struct work; struct se_portal_group port_tpg_1;