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
3a3eae0d
Commit
3a3eae0d
authored
Aug 12, 2008
by
Roland Dreier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branches 'ehca' and 'ipoib' into for-linus
parents
6773f079
b1404069
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
drivers/infiniband/ulp/ipoib/ipoib_cm.c
drivers/infiniband/ulp/ipoib/ipoib_cm.c
+12
-5
No files found.
drivers/infiniband/ulp/ipoib/ipoib_cm.c
View file @
3a3eae0d
...
...
@@ -202,7 +202,7 @@ static void ipoib_cm_free_rx_ring(struct net_device *dev,
dev_kfree_skb_any
(
rx_ring
[
i
].
skb
);
}
k
free
(
rx_ring
);
v
free
(
rx_ring
);
}
static
void
ipoib_cm_start_rx_drain
(
struct
ipoib_dev_priv
*
priv
)
...
...
@@ -352,9 +352,14 @@ static int ipoib_cm_nonsrq_init_rx(struct net_device *dev, struct ib_cm_id *cm_i
int
ret
;
int
i
;
rx
->
rx_ring
=
kcalloc
(
ipoib_recvq_size
,
sizeof
*
rx
->
rx_ring
,
GFP_KERNEL
);
if
(
!
rx
->
rx_ring
)
rx
->
rx_ring
=
vmalloc
(
ipoib_recvq_size
*
sizeof
*
rx
->
rx_ring
);
if
(
!
rx
->
rx_ring
)
{
printk
(
KERN_WARNING
"%s: failed to allocate CM non-SRQ ring (%d entries)
\n
"
,
priv
->
ca
->
name
,
ipoib_recvq_size
);
return
-
ENOMEM
;
}
memset
(
rx
->
rx_ring
,
0
,
ipoib_recvq_size
*
sizeof
*
rx
->
rx_ring
);
t
=
kmalloc
(
sizeof
*
t
,
GFP_KERNEL
);
if
(
!
t
)
{
...
...
@@ -1494,14 +1499,16 @@ static void ipoib_cm_create_srq(struct net_device *dev, int max_sge)
return
;
}
priv
->
cm
.
srq_ring
=
kzalloc
(
ipoib_recvq_size
*
sizeof
*
priv
->
cm
.
srq_ring
,
GFP_KERNEL
);
priv
->
cm
.
srq_ring
=
vmalloc
(
ipoib_recvq_size
*
sizeof
*
priv
->
cm
.
srq_ring
);
if
(
!
priv
->
cm
.
srq_ring
)
{
printk
(
KERN_WARNING
"%s: failed to allocate CM SRQ ring (%d entries)
\n
"
,
priv
->
ca
->
name
,
ipoib_recvq_size
);
ib_destroy_srq
(
priv
->
cm
.
srq
);
priv
->
cm
.
srq
=
NULL
;
return
;
}
memset
(
priv
->
cm
.
srq_ring
,
0
,
ipoib_recvq_size
*
sizeof
*
priv
->
cm
.
srq_ring
);
}
int
ipoib_cm_dev_init
(
struct
net_device
*
dev
)
...
...
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