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
de103342
Commit
de103342
authored
May 28, 2009
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
econet: Use SKB queue and list helpers instead of doing it by-hand.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
bec571ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
+4
-14
net/econet/af_econet.c
net/econet/af_econet.c
+4
-14
No files found.
net/econet/af_econet.c
View file @
de103342
...
@@ -901,15 +901,10 @@ static void aun_tx_ack(unsigned long seq, int result)
...
@@ -901,15 +901,10 @@ static void aun_tx_ack(unsigned long seq, int result)
struct
ec_cb
*
eb
;
struct
ec_cb
*
eb
;
spin_lock_irqsave
(
&
aun_queue_lock
,
flags
);
spin_lock_irqsave
(
&
aun_queue_lock
,
flags
);
skb
=
skb_peek
(
&
aun_queue
);
skb_queue_walk
(
&
aun_queue
,
skb
)
{
while
(
skb
&&
skb
!=
(
struct
sk_buff
*
)
&
aun_queue
)
{
struct
sk_buff
*
newskb
=
skb
->
next
;
eb
=
(
struct
ec_cb
*
)
&
skb
->
cb
;
eb
=
(
struct
ec_cb
*
)
&
skb
->
cb
;
if
(
eb
->
seq
==
seq
)
if
(
eb
->
seq
==
seq
)
goto
foundit
;
goto
foundit
;
skb
=
newskb
;
}
}
spin_unlock_irqrestore
(
&
aun_queue_lock
,
flags
);
spin_unlock_irqrestore
(
&
aun_queue_lock
,
flags
);
printk
(
KERN_DEBUG
"AUN: unknown sequence %ld
\n
"
,
seq
);
printk
(
KERN_DEBUG
"AUN: unknown sequence %ld
\n
"
,
seq
);
...
@@ -982,23 +977,18 @@ static void aun_data_available(struct sock *sk, int slen)
...
@@ -982,23 +977,18 @@ static void aun_data_available(struct sock *sk, int slen)
static
void
ab_cleanup
(
unsigned
long
h
)
static
void
ab_cleanup
(
unsigned
long
h
)
{
{
struct
sk_buff
*
skb
;
struct
sk_buff
*
skb
,
*
n
;
unsigned
long
flags
;
unsigned
long
flags
;
spin_lock_irqsave
(
&
aun_queue_lock
,
flags
);
spin_lock_irqsave
(
&
aun_queue_lock
,
flags
);
skb
=
skb_peek
(
&
aun_queue
);
skb_queue_walk_safe
(
&
aun_queue
,
skb
,
n
)
{
while
(
skb
&&
skb
!=
(
struct
sk_buff
*
)
&
aun_queue
)
{
struct
sk_buff
*
newskb
=
skb
->
next
;
struct
ec_cb
*
eb
=
(
struct
ec_cb
*
)
&
skb
->
cb
;
struct
ec_cb
*
eb
=
(
struct
ec_cb
*
)
&
skb
->
cb
;
if
((
jiffies
-
eb
->
start
)
>
eb
->
timeout
)
if
((
jiffies
-
eb
->
start
)
>
eb
->
timeout
)
{
{
tx_result
(
skb
->
sk
,
eb
->
cookie
,
tx_result
(
skb
->
sk
,
eb
->
cookie
,
ECTYPE_TRANSMIT_NOT_PRESENT
);
ECTYPE_TRANSMIT_NOT_PRESENT
);
skb_unlink
(
skb
,
&
aun_queue
);
skb_unlink
(
skb
,
&
aun_queue
);
kfree_skb
(
skb
);
kfree_skb
(
skb
);
}
}
skb
=
newskb
;
}
}
spin_unlock_irqrestore
(
&
aun_queue_lock
,
flags
);
spin_unlock_irqrestore
(
&
aun_queue_lock
,
flags
);
...
...
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