Message ID | 1479843532-47496-12-git-send-email-dasaratharaman.chandramouli@intel.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index 4dc66ba..0b1f69e 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 5818787..580bb75 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;