Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
80b43de8
Commit
80b43de8
authored
Aug 17, 2011
by
Roland Dreier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branches 'ipoib' and 'iser' into for-next
parents
22cfb0bf
200ae1a0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
drivers/infiniband/ulp/iser/iscsi_iser.c
drivers/infiniband/ulp/iser/iscsi_iser.c
+7
-3
drivers/infiniband/ulp/iser/iscsi_iser.h
drivers/infiniband/ulp/iser/iscsi_iser.h
+1
-1
drivers/infiniband/ulp/iser/iser_initiator.c
drivers/infiniband/ulp/iser/iser_initiator.c
+1
-1
No files found.
drivers/infiniband/ulp/iser/iscsi_iser.c
View file @
80b43de8
...
@@ -101,13 +101,17 @@ iscsi_iser_recv(struct iscsi_conn *conn,
...
@@ -101,13 +101,17 @@ iscsi_iser_recv(struct iscsi_conn *conn,
/* verify PDU length */
/* verify PDU length */
datalen
=
ntoh24
(
hdr
->
dlength
);
datalen
=
ntoh24
(
hdr
->
dlength
);
if
(
datalen
!=
rx_data_len
)
{
if
(
datalen
>
rx_data_len
||
(
datalen
+
4
)
<
rx_data_len
)
{
printk
(
KERN_ERR
"iscsi_iser: datalen %d (hdr) != %d (IB)
\n
"
,
iser_err
(
"wrong datalen %d (hdr), %d (IB)
\n
"
,
datalen
,
rx_data_len
);
datalen
,
rx_data_len
);
rc
=
ISCSI_ERR_DATALEN
;
rc
=
ISCSI_ERR_DATALEN
;
goto
error
;
goto
error
;
}
}
if
(
datalen
!=
rx_data_len
)
iser_dbg
(
"aligned datalen (%d) hdr, %d (IB)
\n
"
,
datalen
,
rx_data_len
);
/* read AHS */
/* read AHS */
ahslen
=
hdr
->
hlength
*
4
;
ahslen
=
hdr
->
hlength
*
4
;
...
...
drivers/infiniband/ulp/iser/iscsi_iser.h
View file @
80b43de8
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
} while (0)
} while (0)
#define SHIFT_4K 12
#define SHIFT_4K 12
#define SIZE_4K (1UL << SHIFT_4K)
#define SIZE_4K (1UL
L
<< SHIFT_4K)
#define MASK_4K (~(SIZE_4K-1))
#define MASK_4K (~(SIZE_4K-1))
/* support up to 512KB in one RDMA */
/* support up to 512KB in one RDMA */
...
...
drivers/infiniband/ulp/iser/iser_initiator.c
View file @
80b43de8
...
@@ -412,7 +412,7 @@ int iser_send_control(struct iscsi_conn *conn,
...
@@ -412,7 +412,7 @@ int iser_send_control(struct iscsi_conn *conn,
memcpy
(
iser_conn
->
ib_conn
->
login_buf
,
task
->
data
,
memcpy
(
iser_conn
->
ib_conn
->
login_buf
,
task
->
data
,
task
->
data_count
);
task
->
data_count
);
tx_dsg
->
addr
=
iser_conn
->
ib_conn
->
login_dma
;
tx_dsg
->
addr
=
iser_conn
->
ib_conn
->
login_dma
;
tx_dsg
->
length
=
data_seg_len
;
tx_dsg
->
length
=
task
->
data_count
;
tx_dsg
->
lkey
=
device
->
mr
->
lkey
;
tx_dsg
->
lkey
=
device
->
mr
->
lkey
;
mdesc
->
num_sge
=
2
;
mdesc
->
num_sge
=
2
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment