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
6cbd01f1
Commit
6cbd01f1
authored
Jan 10, 2004
by
Matt Mackall
Committed by
Stephen Hemminger
Jan 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] netpoll: fix compilation with CONFIG_NETPOLL_RX
Fix compilation without CONFIG_NETPOLL_RX
parent
e8bdd5df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
net/core/netpoll.c
net/core/netpoll.c
+4
-0
No files found.
net/core/netpoll.c
View file @
6cbd01f1
...
@@ -588,7 +588,9 @@ int netpoll_setup(struct netpoll *np)
...
@@ -588,7 +588,9 @@ int netpoll_setup(struct netpoll *np)
if
(
np
->
rx_hook
)
{
if
(
np
->
rx_hook
)
{
unsigned
long
flags
;
unsigned
long
flags
;
#ifdef CONFIG_NETPOLL_RX
np
->
dev
->
netpoll_rx
=
1
;
np
->
dev
->
netpoll_rx
=
1
;
#endif
spin_lock_irqsave
(
&
rx_list_lock
,
flags
);
spin_lock_irqsave
(
&
rx_list_lock
,
flags
);
list_add
(
&
np
->
rx_list
,
&
rx_list
);
list_add
(
&
np
->
rx_list
,
&
rx_list
);
...
@@ -608,7 +610,9 @@ void netpoll_cleanup(struct netpoll *np)
...
@@ -608,7 +610,9 @@ void netpoll_cleanup(struct netpoll *np)
spin_lock_irqsave
(
&
rx_list_lock
,
flags
);
spin_lock_irqsave
(
&
rx_list_lock
,
flags
);
list_del
(
&
np
->
rx_list
);
list_del
(
&
np
->
rx_list
);
#ifdef CONFIG_NETPOLL_RX
np
->
dev
->
netpoll_rx
=
0
;
np
->
dev
->
netpoll_rx
=
0
;
#endif
spin_unlock_irqrestore
(
&
rx_list_lock
,
flags
);
spin_unlock_irqrestore
(
&
rx_list_lock
,
flags
);
}
}
...
...
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