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
5272a288
Commit
5272a288
authored
Oct 02, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/sctp/inqueue.c: Convert to work queue.
parent
d7d2454a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
net/sctp/inqueue.c
net/sctp/inqueue.c
+3
-7
No files found.
net/sctp/inqueue.c
View file @
5272a288
...
...
@@ -54,10 +54,7 @@ void sctp_inqueue_init(sctp_inqueue_t *queue)
queue
->
in_progress
=
NULL
;
/* Create a task for delivering data. */
INIT_LIST_HEAD
(
&
queue
->
immediate
.
list
);
queue
->
immediate
.
sync
=
0
;
queue
->
immediate
.
routine
=
NULL
;
queue
->
immediate
.
data
=
NULL
;
INIT_WORK
(
&
queue
->
immediate
,
NULL
,
NULL
);
queue
->
malloced
=
0
;
}
...
...
@@ -109,7 +106,7 @@ void sctp_push_inqueue(sctp_inqueue_t *q, sctp_chunk_t *packet)
* on the BH related data structures.
*/
skb_queue_tail
(
&
(
q
->
in
),
(
struct
sk_buff
*
)
packet
);
q
->
immediate
.
routine
(
q
->
immediate
.
data
);
q
->
immediate
.
func
(
q
->
immediate
.
data
);
}
/* Extract a chunk from an SCTP inqueue.
...
...
@@ -193,7 +190,6 @@ sctp_chunk_t *sctp_pop_inqueue(sctp_inqueue_t *queue)
void
sctp_inqueue_set_th_handler
(
sctp_inqueue_t
*
q
,
void
(
*
callback
)(
void
*
),
void
*
arg
)
{
q
->
immediate
.
routine
=
callback
;
q
->
immediate
.
data
=
arg
;
INIT_WORK
(
&
q
->
immediate
,
callback
,
arg
);
}
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