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
f5c1b335
Commit
f5c1b335
authored
Apr 06, 2004
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr s2io] NAPI build fixes
parent
3bcba888
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
drivers/net/s2io.c
drivers/net/s2io.c
+7
-0
No files found.
drivers/net/s2io.c
View file @
f5c1b335
...
...
@@ -2406,11 +2406,16 @@ static irqreturn_t s2io_isr(int irq, void *dev_id, struct pt_regs *regs)
* reallocate the buffers.
*/
#if 1
{
int
i
;
for
(
i
=
0
;
i
<
config
->
RxRingNum
;
i
++
)
{
int
rxb_size
=
atomic_read
(
&
sp
->
rx_bufs_left
[
i
]);
int
level
=
rx_buffer_level
(
sp
,
rxb_size
,
i
);
if
((
level
==
PANIC
)
&&
(
!
TASKLET_IN_USE
))
{
int
ret
;
DBG_PRINT
(
ERR_DBG
,
"%s: Rx BD hit "
,
dev
->
name
);
DBG_PRINT
(
ERR_DBG
,
"PANIC levels
\n
"
);
if
((
ret
=
fill_rx_buffers
(
sp
,
i
))
==
-
ENOMEM
)
{
...
...
@@ -2430,6 +2435,8 @@ static irqreturn_t s2io_isr(int irq, void *dev_id, struct pt_regs *regs)
}
}
}
#else
tasklet_schedule
(
&
sp
->
task
);
#endif
...
...
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