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
cbdba97a
Commit
cbdba97a
authored
Feb 05, 2013
by
Roland Dreier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branches 'ipoib', 'mlx4' and 'qib' into for-next
parents
7e5a90c2
f97b4b5d
d359f354
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
drivers/infiniband/hw/qib/qib_qp.c
drivers/infiniband/hw/qib/qib_qp.c
+3
-8
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/main.c
+1
-1
No files found.
drivers/infiniband/hw/qib/qib_qp.c
View file @
cbdba97a
...
...
@@ -263,20 +263,15 @@ static void remove_qp(struct qib_ibdev *dev, struct qib_qp *qp)
struct
qib_qp
__rcu
**
qpp
;
qpp
=
&
dev
->
qp_table
[
n
];
q
=
rcu_dereference_protected
(
*
qpp
,
lockdep_is_held
(
&
dev
->
qpt_lock
))
;
for
(;
q
;
qpp
=
&
q
->
next
)
{
for
(;
(
q
=
rcu_dereference_protected
(
*
qpp
,
lockdep_is_held
(
&
dev
->
qpt_lock
)))
!=
NULL
;
qpp
=
&
q
->
next
)
if
(
q
==
qp
)
{
atomic_dec
(
&
qp
->
refcount
);
*
qpp
=
qp
->
next
;
rcu_assign_pointer
(
qp
->
next
,
NULL
);
q
=
rcu_dereference_protected
(
*
qpp
,
lockdep_is_held
(
&
dev
->
qpt_lock
));
break
;
}
q
=
rcu_dereference_protected
(
*
qpp
,
lockdep_is_held
(
&
dev
->
qpt_lock
));
}
}
spin_unlock_irqrestore
(
&
dev
->
qpt_lock
,
flags
);
...
...
drivers/net/ethernet/mellanox/mlx4/main.c
View file @
cbdba97a
...
...
@@ -380,7 +380,7 @@ static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap)
}
}
if
((
dev
_cap
->
flags
&
if
((
dev
->
caps
.
flags
&
(
MLX4_DEV_CAP_FLAG_64B_CQE
|
MLX4_DEV_CAP_FLAG_64B_EQE
))
&&
mlx4_is_master
(
dev
))
dev
->
caps
.
function_caps
|=
MLX4_FUNC_CAP_64B_EQE_CQE
;
...
...
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