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
d5e15dc8
Commit
d5e15dc8
authored
Jun 07, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skbuff.c: Fix preempt fix lossage from acme cleanups.
parent
5f6c1284
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
net/core/skbuff.c
net/core/skbuff.c
+6
-0
No files found.
net/core/skbuff.c
View file @
d5e15dc8
...
@@ -115,6 +115,7 @@ static __inline__ struct sk_buff *skb_head_from_pool(void)
...
@@ -115,6 +115,7 @@ static __inline__ struct sk_buff *skb_head_from_pool(void)
unsigned
long
flags
;
unsigned
long
flags
;
local_irq_save
(
flags
);
local_irq_save
(
flags
);
list
=
&
skb_head_pool
[
smp_processor_id
()].
list
;
list
=
&
skb_head_pool
[
smp_processor_id
()].
list
;
if
(
skb_queue_len
(
list
))
if
(
skb_queue_len
(
list
))
...
@@ -130,13 +131,18 @@ static __inline__ void skb_head_to_pool(struct sk_buff *skb)
...
@@ -130,13 +131,18 @@ static __inline__ void skb_head_to_pool(struct sk_buff *skb)
unsigned
long
flags
;
unsigned
long
flags
;
local_irq_save
(
flags
);
local_irq_save
(
flags
);
list
=
&
skb_head_pool
[
smp_processor_id
()].
list
;
list
=
&
skb_head_pool
[
smp_processor_id
()].
list
;
if
(
skb_queue_len
(
list
)
<
sysctl_hot_list_len
)
{
if
(
skb_queue_len
(
list
)
<
sysctl_hot_list_len
)
{
__skb_queue_head
(
list
,
skb
);
__skb_queue_head
(
list
,
skb
);
local_irq_restore
(
flags
);
local_irq_restore
(
flags
);
return
;
}
local_irq_restore
(
flags
);
local_irq_restore
(
flags
);
kmem_cache_free
(
skbuff_head_cache
,
skb
);
}
}
...
...
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