Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
38ce7c73
Commit
38ce7c73
authored
Sep 23, 2008
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppp_generic: Use skb_peek() in ppp_receive_mp_frame().
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
f72051b0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
drivers/net/ppp_generic.c
drivers/net/ppp_generic.c
+5
-3
No files found.
drivers/net/ppp_generic.c
View file @
38ce7c73
...
@@ -1833,9 +1833,11 @@ ppp_receive_mp_frame(struct ppp *ppp, struct sk_buff *skb, struct channel *pch)
...
@@ -1833,9 +1833,11 @@ ppp_receive_mp_frame(struct ppp *ppp, struct sk_buff *skb, struct channel *pch)
/* If the queue is getting long, don't wait any longer for packets
/* If the queue is getting long, don't wait any longer for packets
before the start of the queue. */
before the start of the queue. */
if
(
skb_queue_len
(
&
ppp
->
mrq
)
>=
PPP_MP_MAX_QLEN
if
(
skb_queue_len
(
&
ppp
->
mrq
)
>=
PPP_MP_MAX_QLEN
)
{
&&
seq_before
(
ppp
->
minseq
,
ppp
->
mrq
.
next
->
sequence
))
struct
sk_buff
*
skb
=
skb_peek
(
&
ppp
->
mrq
);
ppp
->
minseq
=
ppp
->
mrq
.
next
->
sequence
;
if
(
seq_before
(
ppp
->
minseq
,
skb
->
sequence
))
ppp
->
minseq
=
skb
->
sequence
;
}
/* Pull completed packets off the queue and receive them. */
/* Pull completed packets off the queue and receive them. */
while
((
skb
=
ppp_mp_reconstruct
(
ppp
)))
while
((
skb
=
ppp_mp_reconstruct
(
ppp
)))
...
...
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