mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 22:26:23 +00:00
ib_srpt: Build fix for r4984
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4992 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -703,6 +703,7 @@ static int srpt_refresh_port(struct srpt_port *sport)
|
||||
|
||||
TRACE_ENTRY();
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37) /* commit a3f5adaf4 */
|
||||
switch (rdma_port_get_link_layer(sport->sdev->device, sport->port)) {
|
||||
case IB_LINK_LAYER_UNSPECIFIED:
|
||||
case IB_LINK_LAYER_INFINIBAND:
|
||||
@@ -711,6 +712,7 @@ static int srpt_refresh_port(struct srpt_port *sport)
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
memset(&port_modify, 0, sizeof(port_modify));
|
||||
port_modify.set_port_cap_mask = IB_PORT_DEVICE_MGMT_SUP;
|
||||
|
||||
Reference in New Issue
Block a user