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
Kirill Smelkov
linux
Commits
ba826382
Commit
ba826382
authored
Mar 23, 2011
by
Roland Dreier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branches 'misc', 'nes' and 'srp' into for-next
parents
7f9e5c48
748bfd9c
071c7783
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
515 additions
and
250 deletions
+515
-250
drivers/infiniband/hw/nes/nes.c
drivers/infiniband/hw/nes/nes.c
+1
-1
drivers/infiniband/ulp/srp/ib_srp.c
drivers/infiniband/ulp/srp/ib_srp.c
+481
-244
drivers/infiniband/ulp/srp/ib_srp.h
drivers/infiniband/ulp/srp/ib_srp.h
+33
-5
No files found.
drivers/infiniband/hw/nes/nes.c
View file @
ba826382
...
...
@@ -694,7 +694,7 @@ static int __devinit nes_probe(struct pci_dev *pcidev, const struct pci_device_i
nesdev
->
netdev_count
++
;
nesdev
->
nesadapter
->
netdev_count
++
;
printk
(
KERN_
ERR
PFX
"%s: NetEffect RNIC driver successfully loaded.
\n
"
,
printk
(
KERN_
INFO
PFX
"%s: NetEffect RNIC driver successfully loaded.
\n
"
,
pci_name
(
pcidev
));
return
0
;
...
...
drivers/infiniband/ulp/srp/ib_srp.c
View file @
ba826382
This diff is collapsed.
Click to expand it.
drivers/infiniband/ulp/srp/ib_srp.h
View file @
ba826382
...
...
@@ -69,9 +69,13 @@ enum {
SRP_TAG_NO_REQ
=
~
0U
,
SRP_TAG_TSK_MGMT
=
1U
<<
31
,
SRP_FMR_SIZE
=
256
,
SRP_FMR_SIZE
=
512
,
SRP_FMR_MIN_SIZE
=
128
,
SRP_FMR_POOL_SIZE
=
1024
,
SRP_FMR_DIRTY_SIZE
=
SRP_FMR_POOL_SIZE
/
4
SRP_FMR_DIRTY_SIZE
=
SRP_FMR_POOL_SIZE
/
4
,
SRP_MAP_ALLOW_FMR
=
0
,
SRP_MAP_NO_FMR
=
1
,
};
enum
srp_target_state
{
...
...
@@ -93,9 +97,9 @@ struct srp_device {
struct
ib_pd
*
pd
;
struct
ib_mr
*
mr
;
struct
ib_fmr_pool
*
fmr_pool
;
int
fmr_page_shift
;
int
fmr_page_size
;
u64
fmr_page_mask
;
int
fmr_page_size
;
int
fmr_max_size
;
};
struct
srp_host
{
...
...
@@ -112,7 +116,11 @@ struct srp_request {
struct
list_head
list
;
struct
scsi_cmnd
*
scmnd
;
struct
srp_iu
*
cmd
;
struct
ib_pool_fmr
*
fmr
;
struct
ib_pool_fmr
**
fmr_list
;
u64
*
map_page
;
struct
srp_direct_buf
*
indirect_desc
;
dma_addr_t
indirect_dma_addr
;
short
nfmr
;
short
index
;
};
...
...
@@ -130,6 +138,10 @@ struct srp_target_port {
u32
lkey
;
u32
rkey
;
enum
srp_target_state
state
;
unsigned
int
max_iu_len
;
unsigned
int
cmd_sg_cnt
;
unsigned
int
indirect_size
;
bool
allow_ext_sg
;
/* Everything above this point is used in the hot path of
* command processing. Try to keep them packed into cachelines.
...
...
@@ -144,6 +156,7 @@ struct srp_target_port {
struct
Scsi_Host
*
scsi_host
;
char
target_name
[
32
];
unsigned
int
scsi_id
;
unsigned
int
sg_tablesize
;
struct
ib_sa_path_rec
path
;
__be16
orig_dgid
[
8
];
...
...
@@ -179,4 +192,19 @@ struct srp_iu {
enum
dma_data_direction
direction
;
};
struct
srp_map_state
{
struct
ib_pool_fmr
**
next_fmr
;
struct
srp_direct_buf
*
desc
;
u64
*
pages
;
dma_addr_t
base_dma_addr
;
u32
fmr_len
;
u32
total_len
;
unsigned
int
npages
;
unsigned
int
nfmr
;
unsigned
int
ndesc
;
struct
scatterlist
*
unmapped_sg
;
int
unmapped_index
;
dma_addr_t
unmapped_addr
;
};
#endif
/* IB_SRP_H */
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