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
5c313e9a
Commit
5c313e9a
authored
Jun 09, 2009
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
phonet: Use frag list abstraction interfaces.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
343a9972
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
net/phonet/pep-gprs.c
net/phonet/pep-gprs.c
+2
-2
net/phonet/pep.c
net/phonet/pep.c
+2
-2
No files found.
net/phonet/pep-gprs.c
View file @
5c313e9a
...
@@ -115,10 +115,10 @@ static int gprs_recv(struct gprs_dev *gp, struct sk_buff *skb)
...
@@ -115,10 +115,10 @@ static int gprs_recv(struct gprs_dev *gp, struct sk_buff *skb)
rskb
->
truesize
+=
rskb
->
len
;
rskb
->
truesize
+=
rskb
->
len
;
/* Avoid nested fragments */
/* Avoid nested fragments */
for
(
fs
=
skb_shinfo
(
skb
)
->
frag_list
;
fs
;
fs
=
fs
->
next
)
skb_walk_frags
(
skb
,
fs
)
flen
+=
fs
->
len
;
flen
+=
fs
->
len
;
skb
->
next
=
skb_shinfo
(
skb
)
->
frag_list
;
skb
->
next
=
skb_shinfo
(
skb
)
->
frag_list
;
skb_
shinfo
(
skb
)
->
frag_list
=
NULL
;
skb_
frag_list_init
(
skb
)
;
skb
->
len
-=
flen
;
skb
->
len
-=
flen
;
skb
->
data_len
-=
flen
;
skb
->
data_len
-=
flen
;
skb
->
truesize
-=
flen
;
skb
->
truesize
-=
flen
;
...
...
net/phonet/pep.c
View file @
5c313e9a
...
@@ -940,10 +940,10 @@ int pep_write(struct sock *sk, struct sk_buff *skb)
...
@@ -940,10 +940,10 @@ int pep_write(struct sock *sk, struct sk_buff *skb)
rskb
->
truesize
+=
rskb
->
len
;
rskb
->
truesize
+=
rskb
->
len
;
/* Avoid nested fragments */
/* Avoid nested fragments */
for
(
fs
=
skb_shinfo
(
skb
)
->
frag_list
;
fs
;
fs
=
fs
->
next
)
skb_walk_frags
(
skb
,
fs
)
flen
+=
fs
->
len
;
flen
+=
fs
->
len
;
skb
->
next
=
skb_shinfo
(
skb
)
->
frag_list
;
skb
->
next
=
skb_shinfo
(
skb
)
->
frag_list
;
skb_
shinfo
(
skb
)
->
frag_list
=
NULL
;
skb_
frag_list_init
(
skb
)
;
skb
->
len
-=
flen
;
skb
->
len
-=
flen
;
skb
->
data_len
-=
flen
;
skb
->
data_len
-=
flen
;
skb
->
truesize
-=
flen
;
skb
->
truesize
-=
flen
;
...
...
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