Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
debian-packages
lustre-release
Commits
96a46ae5
Commit
96a46ae5
authored
21 years ago
by
Eric Barton
Browse files
Options
Downloads
Patches
Plain Diff
. fixed ia64 format warnings
parent
ef5e7173
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lnet/ulnds/connection.c
+7
-7
7 additions, 7 deletions
lnet/ulnds/connection.c
lnet/ulnds/socklnd/connection.c
+7
-7
7 additions, 7 deletions
lnet/ulnds/socklnd/connection.c
lustre/portals/unals/connection.c
+7
-7
7 additions, 7 deletions
lustre/portals/unals/connection.c
with
21 additions
and
21 deletions
lnet/ulnds/connection.c
+
7
−
7
View file @
96a46ae5
...
@@ -234,18 +234,18 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
...
@@ -234,18 +234,18 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
/* Assume sufficient socket buffering for this message */
/* Assume sufficient socket buffering for this message */
rc
=
syscall
(
SYS_write
,
sockfd
,
&
hdr
,
sizeof
(
hdr
));
rc
=
syscall
(
SYS_write
,
sockfd
,
&
hdr
,
sizeof
(
hdr
));
if
(
rc
<=
0
)
{
if
(
rc
<=
0
)
{
CERROR
(
"Error %d sending HELLO to
%llx
\n
"
,
rc
,
*
nid
);
CERROR
(
"Error %d sending HELLO to
"
LPX64
"
\n
"
,
rc
,
*
nid
);
return
(
rc
);
return
(
rc
);
}
}
rc
=
syscall
(
SYS_read
,
sockfd
,
hmv
,
sizeof
(
*
hmv
));
rc
=
syscall
(
SYS_read
,
sockfd
,
hmv
,
sizeof
(
*
hmv
));
if
(
rc
<=
0
)
{
if
(
rc
<=
0
)
{
CERROR
(
"Error %d reading HELLO from
%llx
\n
"
,
rc
,
*
nid
);
CERROR
(
"Error %d reading HELLO from
"
LPX64
"
\n
"
,
rc
,
*
nid
);
return
(
rc
);
return
(
rc
);
}
}
if
(
hmv
->
magic
!=
__le32_to_cpu
(
PORTALS_PROTO_MAGIC
))
{
if
(
hmv
->
magic
!=
__le32_to_cpu
(
PORTALS_PROTO_MAGIC
))
{
CERROR
(
"Bad magic %#08x (%#08x expected) from
%llx
\n
"
,
CERROR
(
"Bad magic %#08x (%#08x expected) from
"
LPX64
"
\n
"
,
__cpu_to_le32
(
hmv
->
magic
),
PORTALS_PROTO_MAGIC
,
*
nid
);
__cpu_to_le32
(
hmv
->
magic
),
PORTALS_PROTO_MAGIC
,
*
nid
);
return
(
-
EPROTO
);
return
(
-
EPROTO
);
}
}
...
@@ -253,7 +253,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
...
@@ -253,7 +253,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
if
(
hmv
->
version_major
!=
__cpu_to_le16
(
PORTALS_PROTO_VERSION_MAJOR
)
||
if
(
hmv
->
version_major
!=
__cpu_to_le16
(
PORTALS_PROTO_VERSION_MAJOR
)
||
hmv
->
version_minor
!=
__cpu_to_le16
(
PORTALS_PROTO_VERSION_MINOR
))
{
hmv
->
version_minor
!=
__cpu_to_le16
(
PORTALS_PROTO_VERSION_MINOR
))
{
CERROR
(
"Incompatible protocol version %d.%d (%d.%d expected)"
CERROR
(
"Incompatible protocol version %d.%d (%d.%d expected)"
" from
%llx
\n
"
,
" from
"
LPX64
"
\n
"
,
__le16_to_cpu
(
hmv
->
version_major
),
__le16_to_cpu
(
hmv
->
version_major
),
__le16_to_cpu
(
hmv
->
version_minor
),
__le16_to_cpu
(
hmv
->
version_minor
),
PORTALS_PROTO_VERSION_MAJOR
,
PORTALS_PROTO_VERSION_MAJOR
,
...
@@ -270,7 +270,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
...
@@ -270,7 +270,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
rc
=
syscall
(
SYS_read
,
sockfd
,
hmv
+
1
,
sizeof
(
hdr
)
-
sizeof
(
*
hmv
));
rc
=
syscall
(
SYS_read
,
sockfd
,
hmv
+
1
,
sizeof
(
hdr
)
-
sizeof
(
*
hmv
));
if
(
rc
<=
0
)
{
if
(
rc
<=
0
)
{
CERROR
(
"Error %d reading rest of HELLO hdr from
%llx
\n
"
,
CERROR
(
"Error %d reading rest of HELLO hdr from
"
LPX64
"
\n
"
,
rc
,
*
nid
);
rc
,
*
nid
);
return
(
rc
);
return
(
rc
);
}
}
...
@@ -279,7 +279,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
...
@@ -279,7 +279,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
if
(
hdr
.
type
!=
__cpu_to_le32
(
PTL_MSG_HELLO
)
||
if
(
hdr
.
type
!=
__cpu_to_le32
(
PTL_MSG_HELLO
)
||
hdr
.
payload_length
!=
__cpu_to_le32
(
0
))
{
hdr
.
payload_length
!=
__cpu_to_le32
(
0
))
{
CERROR
(
"Expecting a HELLO hdr with 0 payload,"
CERROR
(
"Expecting a HELLO hdr with 0 payload,"
" but got type %d with %d payload from
%llx
\n
"
,
" but got type %d with %d payload from
"
LPX64
"
\n
"
,
__le32_to_cpu
(
hdr
.
type
),
__le32_to_cpu
(
hdr
.
type
),
__le32_to_cpu
(
hdr
.
payload_length
),
*
nid
);
__le32_to_cpu
(
hdr
.
payload_length
),
*
nid
);
return
(
-
EPROTO
);
return
(
-
EPROTO
);
...
@@ -293,7 +293,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
...
@@ -293,7 +293,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
if
(
*
nid
==
PTL_NID_ANY
)
{
/* don't know peer's nid yet */
if
(
*
nid
==
PTL_NID_ANY
)
{
/* don't know peer's nid yet */
*
nid
=
__le64_to_cpu
(
hdr
.
src_nid
);
*
nid
=
__le64_to_cpu
(
hdr
.
src_nid
);
}
else
if
(
*
nid
!=
__le64_to_cpu
(
hdr
.
src_nid
))
{
}
else
if
(
*
nid
!=
__le64_to_cpu
(
hdr
.
src_nid
))
{
CERROR
(
"Connected to nid
%llx
, but expecting
%llx
\n
"
,
CERROR
(
"Connected to nid
"
LPX64
"
, but expecting
"
LPX64
"
\n
"
,
__le64_to_cpu
(
hdr
.
src_nid
),
*
nid
);
__le64_to_cpu
(
hdr
.
src_nid
),
*
nid
);
return
(
-
EPROTO
);
return
(
-
EPROTO
);
}
}
...
...
This diff is collapsed.
Click to expand it.
lnet/ulnds/socklnd/connection.c
+
7
−
7
View file @
96a46ae5
...
@@ -234,18 +234,18 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
...
@@ -234,18 +234,18 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
/* Assume sufficient socket buffering for this message */
/* Assume sufficient socket buffering for this message */
rc
=
syscall
(
SYS_write
,
sockfd
,
&
hdr
,
sizeof
(
hdr
));
rc
=
syscall
(
SYS_write
,
sockfd
,
&
hdr
,
sizeof
(
hdr
));
if
(
rc
<=
0
)
{
if
(
rc
<=
0
)
{
CERROR
(
"Error %d sending HELLO to
%llx
\n
"
,
rc
,
*
nid
);
CERROR
(
"Error %d sending HELLO to
"
LPX64
"
\n
"
,
rc
,
*
nid
);
return
(
rc
);
return
(
rc
);
}
}
rc
=
syscall
(
SYS_read
,
sockfd
,
hmv
,
sizeof
(
*
hmv
));
rc
=
syscall
(
SYS_read
,
sockfd
,
hmv
,
sizeof
(
*
hmv
));
if
(
rc
<=
0
)
{
if
(
rc
<=
0
)
{
CERROR
(
"Error %d reading HELLO from
%llx
\n
"
,
rc
,
*
nid
);
CERROR
(
"Error %d reading HELLO from
"
LPX64
"
\n
"
,
rc
,
*
nid
);
return
(
rc
);
return
(
rc
);
}
}
if
(
hmv
->
magic
!=
__le32_to_cpu
(
PORTALS_PROTO_MAGIC
))
{
if
(
hmv
->
magic
!=
__le32_to_cpu
(
PORTALS_PROTO_MAGIC
))
{
CERROR
(
"Bad magic %#08x (%#08x expected) from
%llx
\n
"
,
CERROR
(
"Bad magic %#08x (%#08x expected) from
"
LPX64
"
\n
"
,
__cpu_to_le32
(
hmv
->
magic
),
PORTALS_PROTO_MAGIC
,
*
nid
);
__cpu_to_le32
(
hmv
->
magic
),
PORTALS_PROTO_MAGIC
,
*
nid
);
return
(
-
EPROTO
);
return
(
-
EPROTO
);
}
}
...
@@ -253,7 +253,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
...
@@ -253,7 +253,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
if
(
hmv
->
version_major
!=
__cpu_to_le16
(
PORTALS_PROTO_VERSION_MAJOR
)
||
if
(
hmv
->
version_major
!=
__cpu_to_le16
(
PORTALS_PROTO_VERSION_MAJOR
)
||
hmv
->
version_minor
!=
__cpu_to_le16
(
PORTALS_PROTO_VERSION_MINOR
))
{
hmv
->
version_minor
!=
__cpu_to_le16
(
PORTALS_PROTO_VERSION_MINOR
))
{
CERROR
(
"Incompatible protocol version %d.%d (%d.%d expected)"
CERROR
(
"Incompatible protocol version %d.%d (%d.%d expected)"
" from
%llx
\n
"
,
" from
"
LPX64
"
\n
"
,
__le16_to_cpu
(
hmv
->
version_major
),
__le16_to_cpu
(
hmv
->
version_major
),
__le16_to_cpu
(
hmv
->
version_minor
),
__le16_to_cpu
(
hmv
->
version_minor
),
PORTALS_PROTO_VERSION_MAJOR
,
PORTALS_PROTO_VERSION_MAJOR
,
...
@@ -270,7 +270,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
...
@@ -270,7 +270,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
rc
=
syscall
(
SYS_read
,
sockfd
,
hmv
+
1
,
sizeof
(
hdr
)
-
sizeof
(
*
hmv
));
rc
=
syscall
(
SYS_read
,
sockfd
,
hmv
+
1
,
sizeof
(
hdr
)
-
sizeof
(
*
hmv
));
if
(
rc
<=
0
)
{
if
(
rc
<=
0
)
{
CERROR
(
"Error %d reading rest of HELLO hdr from
%llx
\n
"
,
CERROR
(
"Error %d reading rest of HELLO hdr from
"
LPX64
"
\n
"
,
rc
,
*
nid
);
rc
,
*
nid
);
return
(
rc
);
return
(
rc
);
}
}
...
@@ -279,7 +279,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
...
@@ -279,7 +279,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
if
(
hdr
.
type
!=
__cpu_to_le32
(
PTL_MSG_HELLO
)
||
if
(
hdr
.
type
!=
__cpu_to_le32
(
PTL_MSG_HELLO
)
||
hdr
.
payload_length
!=
__cpu_to_le32
(
0
))
{
hdr
.
payload_length
!=
__cpu_to_le32
(
0
))
{
CERROR
(
"Expecting a HELLO hdr with 0 payload,"
CERROR
(
"Expecting a HELLO hdr with 0 payload,"
" but got type %d with %d payload from
%llx
\n
"
,
" but got type %d with %d payload from
"
LPX64
"
\n
"
,
__le32_to_cpu
(
hdr
.
type
),
__le32_to_cpu
(
hdr
.
type
),
__le32_to_cpu
(
hdr
.
payload_length
),
*
nid
);
__le32_to_cpu
(
hdr
.
payload_length
),
*
nid
);
return
(
-
EPROTO
);
return
(
-
EPROTO
);
...
@@ -293,7 +293,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
...
@@ -293,7 +293,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
if
(
*
nid
==
PTL_NID_ANY
)
{
/* don't know peer's nid yet */
if
(
*
nid
==
PTL_NID_ANY
)
{
/* don't know peer's nid yet */
*
nid
=
__le64_to_cpu
(
hdr
.
src_nid
);
*
nid
=
__le64_to_cpu
(
hdr
.
src_nid
);
}
else
if
(
*
nid
!=
__le64_to_cpu
(
hdr
.
src_nid
))
{
}
else
if
(
*
nid
!=
__le64_to_cpu
(
hdr
.
src_nid
))
{
CERROR
(
"Connected to nid
%llx
, but expecting
%llx
\n
"
,
CERROR
(
"Connected to nid
"
LPX64
"
, but expecting
"
LPX64
"
\n
"
,
__le64_to_cpu
(
hdr
.
src_nid
),
*
nid
);
__le64_to_cpu
(
hdr
.
src_nid
),
*
nid
);
return
(
-
EPROTO
);
return
(
-
EPROTO
);
}
}
...
...
This diff is collapsed.
Click to expand it.
lustre/portals/unals/connection.c
+
7
−
7
View file @
96a46ae5
...
@@ -234,18 +234,18 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
...
@@ -234,18 +234,18 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
/* Assume sufficient socket buffering for this message */
/* Assume sufficient socket buffering for this message */
rc
=
syscall
(
SYS_write
,
sockfd
,
&
hdr
,
sizeof
(
hdr
));
rc
=
syscall
(
SYS_write
,
sockfd
,
&
hdr
,
sizeof
(
hdr
));
if
(
rc
<=
0
)
{
if
(
rc
<=
0
)
{
CERROR
(
"Error %d sending HELLO to
%llx
\n
"
,
rc
,
*
nid
);
CERROR
(
"Error %d sending HELLO to
"
LPX64
"
\n
"
,
rc
,
*
nid
);
return
(
rc
);
return
(
rc
);
}
}
rc
=
syscall
(
SYS_read
,
sockfd
,
hmv
,
sizeof
(
*
hmv
));
rc
=
syscall
(
SYS_read
,
sockfd
,
hmv
,
sizeof
(
*
hmv
));
if
(
rc
<=
0
)
{
if
(
rc
<=
0
)
{
CERROR
(
"Error %d reading HELLO from
%llx
\n
"
,
rc
,
*
nid
);
CERROR
(
"Error %d reading HELLO from
"
LPX64
"
\n
"
,
rc
,
*
nid
);
return
(
rc
);
return
(
rc
);
}
}
if
(
hmv
->
magic
!=
__le32_to_cpu
(
PORTALS_PROTO_MAGIC
))
{
if
(
hmv
->
magic
!=
__le32_to_cpu
(
PORTALS_PROTO_MAGIC
))
{
CERROR
(
"Bad magic %#08x (%#08x expected) from
%llx
\n
"
,
CERROR
(
"Bad magic %#08x (%#08x expected) from
"
LPX64
"
\n
"
,
__cpu_to_le32
(
hmv
->
magic
),
PORTALS_PROTO_MAGIC
,
*
nid
);
__cpu_to_le32
(
hmv
->
magic
),
PORTALS_PROTO_MAGIC
,
*
nid
);
return
(
-
EPROTO
);
return
(
-
EPROTO
);
}
}
...
@@ -253,7 +253,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
...
@@ -253,7 +253,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
if
(
hmv
->
version_major
!=
__cpu_to_le16
(
PORTALS_PROTO_VERSION_MAJOR
)
||
if
(
hmv
->
version_major
!=
__cpu_to_le16
(
PORTALS_PROTO_VERSION_MAJOR
)
||
hmv
->
version_minor
!=
__cpu_to_le16
(
PORTALS_PROTO_VERSION_MINOR
))
{
hmv
->
version_minor
!=
__cpu_to_le16
(
PORTALS_PROTO_VERSION_MINOR
))
{
CERROR
(
"Incompatible protocol version %d.%d (%d.%d expected)"
CERROR
(
"Incompatible protocol version %d.%d (%d.%d expected)"
" from
%llx
\n
"
,
" from
"
LPX64
"
\n
"
,
__le16_to_cpu
(
hmv
->
version_major
),
__le16_to_cpu
(
hmv
->
version_major
),
__le16_to_cpu
(
hmv
->
version_minor
),
__le16_to_cpu
(
hmv
->
version_minor
),
PORTALS_PROTO_VERSION_MAJOR
,
PORTALS_PROTO_VERSION_MAJOR
,
...
@@ -270,7 +270,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
...
@@ -270,7 +270,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
rc
=
syscall
(
SYS_read
,
sockfd
,
hmv
+
1
,
sizeof
(
hdr
)
-
sizeof
(
*
hmv
));
rc
=
syscall
(
SYS_read
,
sockfd
,
hmv
+
1
,
sizeof
(
hdr
)
-
sizeof
(
*
hmv
));
if
(
rc
<=
0
)
{
if
(
rc
<=
0
)
{
CERROR
(
"Error %d reading rest of HELLO hdr from
%llx
\n
"
,
CERROR
(
"Error %d reading rest of HELLO hdr from
"
LPX64
"
\n
"
,
rc
,
*
nid
);
rc
,
*
nid
);
return
(
rc
);
return
(
rc
);
}
}
...
@@ -279,7 +279,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
...
@@ -279,7 +279,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
if
(
hdr
.
type
!=
__cpu_to_le32
(
PTL_MSG_HELLO
)
||
if
(
hdr
.
type
!=
__cpu_to_le32
(
PTL_MSG_HELLO
)
||
hdr
.
payload_length
!=
__cpu_to_le32
(
0
))
{
hdr
.
payload_length
!=
__cpu_to_le32
(
0
))
{
CERROR
(
"Expecting a HELLO hdr with 0 payload,"
CERROR
(
"Expecting a HELLO hdr with 0 payload,"
" but got type %d with %d payload from
%llx
\n
"
,
" but got type %d with %d payload from
"
LPX64
"
\n
"
,
__le32_to_cpu
(
hdr
.
type
),
__le32_to_cpu
(
hdr
.
type
),
__le32_to_cpu
(
hdr
.
payload_length
),
*
nid
);
__le32_to_cpu
(
hdr
.
payload_length
),
*
nid
);
return
(
-
EPROTO
);
return
(
-
EPROTO
);
...
@@ -293,7 +293,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
...
@@ -293,7 +293,7 @@ tcpnal_hello (int sockfd, ptl_nid_t *nid, int type, __u64 incarnation)
if
(
*
nid
==
PTL_NID_ANY
)
{
/* don't know peer's nid yet */
if
(
*
nid
==
PTL_NID_ANY
)
{
/* don't know peer's nid yet */
*
nid
=
__le64_to_cpu
(
hdr
.
src_nid
);
*
nid
=
__le64_to_cpu
(
hdr
.
src_nid
);
}
else
if
(
*
nid
!=
__le64_to_cpu
(
hdr
.
src_nid
))
{
}
else
if
(
*
nid
!=
__le64_to_cpu
(
hdr
.
src_nid
))
{
CERROR
(
"Connected to nid
%llx
, but expecting
%llx
\n
"
,
CERROR
(
"Connected to nid
"
LPX64
"
, but expecting
"
LPX64
"
\n
"
,
__le64_to_cpu
(
hdr
.
src_nid
),
*
nid
);
__le64_to_cpu
(
hdr
.
src_nid
),
*
nid
);
return
(
-
EPROTO
);
return
(
-
EPROTO
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment