Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
45dd75d8
Commit
45dd75d8
authored
Aug 19, 2008
by
Roland Dreier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branches 'ipath' and 'ipoib' into for-linus
parents
24babade
a77a57a1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
11 deletions
+18
-11
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_main.c
+9
-10
drivers/infiniband/ulp/ipoib/ipoib_multicast.c
drivers/infiniband/ulp/ipoib/ipoib_multicast.c
+9
-1
No files found.
drivers/infiniband/ulp/ipoib/ipoib_main.c
View file @
45dd75d8
...
...
@@ -156,14 +156,8 @@ static int ipoib_stop(struct net_device *dev)
netif_stop_queue
(
dev
);
/*
* Now flush workqueue to make sure a scheduled task doesn't
* bring our internal state back up.
*/
flush_workqueue
(
ipoib_workqueue
);
ipoib_ib_dev_down
(
dev
,
1
);
ipoib_ib_dev_stop
(
dev
,
1
);
ipoib_ib_dev_down
(
dev
,
0
);
ipoib_ib_dev_stop
(
dev
,
0
);
if
(
!
test_bit
(
IPOIB_FLAG_SUBINTERFACE
,
&
priv
->
flags
))
{
struct
ipoib_dev_priv
*
cpriv
;
...
...
@@ -1314,7 +1308,7 @@ sysfs_failed:
register_failed:
ib_unregister_event_handler
(
&
priv
->
event_handler
);
flush_
scheduled_work
(
);
flush_
workqueue
(
ipoib_workqueue
);
event_failed:
ipoib_dev_cleanup
(
priv
->
dev
);
...
...
@@ -1373,7 +1367,12 @@ static void ipoib_remove_one(struct ib_device *device)
list_for_each_entry_safe
(
priv
,
tmp
,
dev_list
,
list
)
{
ib_unregister_event_handler
(
&
priv
->
event_handler
);
flush_scheduled_work
();
rtnl_lock
();
dev_change_flags
(
priv
->
dev
,
priv
->
dev
->
flags
&
~
IFF_UP
);
rtnl_unlock
();
flush_workqueue
(
ipoib_workqueue
);
unregister_netdev
(
priv
->
dev
);
ipoib_dev_cleanup
(
priv
->
dev
);
...
...
drivers/infiniband/ulp/ipoib/ipoib_multicast.c
View file @
45dd75d8
...
...
@@ -392,8 +392,16 @@ static int ipoib_mcast_join_complete(int status,
&
priv
->
mcast_task
,
0
);
mutex_unlock
(
&
mcast_mutex
);
if
(
mcast
==
priv
->
broadcast
)
if
(
mcast
==
priv
->
broadcast
)
{
/*
* Take RTNL lock here to avoid racing with
* ipoib_stop() and turning the carrier back
* on while a device is being removed.
*/
rtnl_lock
();
netif_carrier_on
(
dev
);
rtnl_unlock
();
}
return
0
;
}
...
...
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