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
c32ba3f9
Commit
c32ba3f9
authored
Jun 09, 2009
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appletalk: Use frag list abstraction interfaces.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
a5bd8a13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
17 deletions
+14
-17
net/appletalk/ddp.c
net/appletalk/ddp.c
+14
-17
No files found.
net/appletalk/ddp.c
View file @
c32ba3f9
...
@@ -939,6 +939,7 @@ static unsigned long atalk_sum_skb(const struct sk_buff *skb, int offset,
...
@@ -939,6 +939,7 @@ static unsigned long atalk_sum_skb(const struct sk_buff *skb, int offset,
int
len
,
unsigned
long
sum
)
int
len
,
unsigned
long
sum
)
{
{
int
start
=
skb_headlen
(
skb
);
int
start
=
skb_headlen
(
skb
);
struct
sk_buff
*
frag_iter
;
int
i
,
copy
;
int
i
,
copy
;
/* checksum stuff in header space */
/* checksum stuff in header space */
...
@@ -977,26 +978,22 @@ static unsigned long atalk_sum_skb(const struct sk_buff *skb, int offset,
...
@@ -977,26 +978,22 @@ static unsigned long atalk_sum_skb(const struct sk_buff *skb, int offset,
start
=
end
;
start
=
end
;
}
}
if
(
skb_shinfo
(
skb
)
->
frag_list
)
{
skb_walk_frags
(
skb
,
frag_iter
)
{
struct
sk_buff
*
list
=
skb_shinfo
(
skb
)
->
frag_list
;
int
end
;
for
(;
list
;
list
=
list
->
next
)
{
int
end
;
WARN_ON
(
start
>
offset
+
len
);
WARN_ON
(
start
>
offset
+
len
);
end
=
start
+
list
->
len
;
end
=
start
+
frag_iter
->
len
;
if
((
copy
=
end
-
offset
)
>
0
)
{
if
((
copy
=
end
-
offset
)
>
0
)
{
if
(
copy
>
len
)
if
(
copy
>
len
)
copy
=
len
;
copy
=
len
;
sum
=
atalk_sum_skb
(
list
,
offset
-
start
,
sum
=
atalk_sum_skb
(
frag_iter
,
offset
-
start
,
copy
,
sum
);
copy
,
sum
);
if
((
len
-=
copy
)
==
0
)
if
((
len
-=
copy
)
==
0
)
return
sum
;
return
sum
;
offset
+=
copy
;
offset
+=
copy
;
}
start
=
end
;
}
}
start
=
end
;
}
}
BUG_ON
(
len
>
0
);
BUG_ON
(
len
>
0
);
...
...
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