ib_srpt: Port to MOFED 3.0

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6497 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-09-08 16:18:27 +00:00
parent 2b5c929181
commit 68ce2d0ce4
4 changed files with 21 additions and 4 deletions
+5 -1
View File
@@ -701,7 +701,11 @@ static int srpt_refresh_port(struct srpt_port *sport)
sport->sm_lid = port_attr.sm_lid;
sport->lid = port_attr.lid;
ret = ib_query_gid(sport->sdev->device, sport->port, 0, &sport->gid);
ret = ib_query_gid(sport->sdev->device, sport->port, 0, &sport->gid
#ifdef IB_QUERY_GID_HAS_ATTR_ARG
, NULL
#endif
);
if (ret)
goto err_query_port;