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
ec5592e9
Commit
ec5592e9
authored
Aug 18, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TG3]: Do tg3_netif_start() under lock.
Signed-off-by:
David S. Miller
<
davem@redhat.com
>
parent
ec4db5af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
drivers/net/tg3.c
drivers/net/tg3.c
+11
-11
No files found.
drivers/net/tg3.c
View file @
ec5592e9
...
...
@@ -2865,11 +2865,11 @@ static void tg3_reset_task(void *_data)
tg3_halt
(
tp
);
tg3_init_hw
(
tp
);
tg3_netif_start
(
tp
);
spin_unlock
(
&
tp
->
tx_lock
);
spin_unlock_irq
(
&
tp
->
lock
);
tg3_netif_start
(
tp
);
if
(
restart_timer
)
mod_timer
(
&
tp
->
timer
,
jiffies
+
1
);
}
...
...
@@ -3229,9 +3229,10 @@ static int tg3_change_mtu(struct net_device *dev, int new_mtu)
tg3_init_hw
(
tp
);
tg3_netif_start
(
tp
);
spin_unlock
(
&
tp
->
tx_lock
);
spin_unlock_irq
(
&
tp
->
lock
);
tg3_netif_start
(
tp
);
return
0
;
}
...
...
@@ -6606,10 +6607,9 @@ static int tg3_set_ringparam(struct net_device *dev, struct ethtool_ringparam *e
tg3_halt
(
tp
);
tg3_init_hw
(
tp
);
netif_wake_queue
(
tp
->
dev
);
tg3_netif_start
(
tp
);
spin_unlock
(
&
tp
->
tx_lock
);
spin_unlock_irq
(
&
tp
->
lock
);
tg3_netif_start
(
tp
);
return
0
;
}
...
...
@@ -6644,9 +6644,9 @@ static int tg3_set_pauseparam(struct net_device *dev, struct ethtool_pauseparam
tp
->
tg3_flags
&=
~
TG3_FLAG_PAUSE_TX
;
tg3_halt
(
tp
);
tg3_init_hw
(
tp
);
tg3_netif_start
(
tp
);
spin_unlock
(
&
tp
->
tx_lock
);
spin_unlock_irq
(
&
tp
->
lock
);
tg3_netif_start
(
tp
);
return
0
;
}
...
...
@@ -8499,11 +8499,11 @@ static int tg3_suspend(struct pci_dev *pdev, u32 state)
tp
->
timer
.
expires
=
jiffies
+
tp
->
timer_offset
;
add_timer
(
&
tp
->
timer
);
spin_unlock
(
&
tp
->
tx_lock
);
spin_unlock_irq
(
&
tp
->
lock
);
netif_device_attach
(
dev
);
tg3_netif_start
(
tp
);
spin_unlock
(
&
tp
->
tx_lock
);
spin_unlock_irq
(
&
tp
->
lock
);
}
return
err
;
...
...
@@ -8536,11 +8536,11 @@ static int tg3_resume(struct pci_dev *pdev)
tg3_enable_ints
(
tp
);
tg3_netif_start
(
tp
);
spin_unlock
(
&
tp
->
tx_lock
);
spin_unlock_irq
(
&
tp
->
lock
);
tg3_netif_start
(
tp
);
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