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
nexedi
linux
Commits
ba479a78
Commit
ba479a78
authored
Jul 22, 2003
by
Chas Williams
Committed by
David S. Miller
Jul 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ATM]: Timer cleanup in lec.c
parent
4aec72b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
13 deletions
+8
-13
net/atm/lec.c
net/atm/lec.c
+8
-13
No files found.
net/atm/lec.c
View file @
ba479a78
...
@@ -1031,7 +1031,7 @@ static void lane2_associate_ind (struct net_device *dev, u8 *mac_addr,
...
@@ -1031,7 +1031,7 @@ static void lane2_associate_ind (struct net_device *dev, u8 *mac_addr,
#define LEC_ARP_REFRESH_INTERVAL (3*HZ)
#define LEC_ARP_REFRESH_INTERVAL (3*HZ)
static
void
lec_arp_check_expire
(
unsigned
long
data
);
static
void
lec_arp_check_expire
(
unsigned
long
data
);
static
__inline__
void
lec_arp_expire_arp
(
unsigned
long
data
);
static
void
lec_arp_expire_arp
(
unsigned
long
data
);
void
dump_arp_table
(
struct
lec_priv
*
priv
);
void
dump_arp_table
(
struct
lec_priv
*
priv
);
/*
/*
...
@@ -1371,7 +1371,7 @@ lec_arp_destroy(struct lec_priv *priv)
...
@@ -1371,7 +1371,7 @@ lec_arp_destroy(struct lec_priv *priv)
struct
lec_arp_table
*
entry
,
*
next
;
struct
lec_arp_table
*
entry
,
*
next
;
int
i
;
int
i
;
del_timer
(
&
priv
->
lec_arp_timer
);
del_timer
_sync
(
&
priv
->
lec_arp_timer
);
/*
/*
* Remove all entries
* Remove all entries
...
@@ -1386,7 +1386,7 @@ lec_arp_destroy(struct lec_priv *priv)
...
@@ -1386,7 +1386,7 @@ lec_arp_destroy(struct lec_priv *priv)
entry
=
priv
->
lec_arp_empty_ones
;
entry
=
priv
->
lec_arp_empty_ones
;
while
(
entry
)
{
while
(
entry
)
{
next
=
entry
->
next
;
next
=
entry
->
next
;
del_timer
(
&
entry
->
timer
);
del_timer
_sync
(
&
entry
->
timer
);
lec_arp_clear_vccs
(
entry
);
lec_arp_clear_vccs
(
entry
);
kfree
(
entry
);
kfree
(
entry
);
entry
=
next
;
entry
=
next
;
...
@@ -1395,7 +1395,7 @@ lec_arp_destroy(struct lec_priv *priv)
...
@@ -1395,7 +1395,7 @@ lec_arp_destroy(struct lec_priv *priv)
entry
=
priv
->
lec_no_forward
;
entry
=
priv
->
lec_no_forward
;
while
(
entry
)
{
while
(
entry
)
{
next
=
entry
->
next
;
next
=
entry
->
next
;
del_timer
(
&
entry
->
timer
);
del_timer
_sync
(
&
entry
->
timer
);
lec_arp_clear_vccs
(
entry
);
lec_arp_clear_vccs
(
entry
);
kfree
(
entry
);
kfree
(
entry
);
entry
=
next
;
entry
=
next
;
...
@@ -1404,7 +1404,7 @@ lec_arp_destroy(struct lec_priv *priv)
...
@@ -1404,7 +1404,7 @@ lec_arp_destroy(struct lec_priv *priv)
entry
=
priv
->
mcast_fwds
;
entry
=
priv
->
mcast_fwds
;
while
(
entry
)
{
while
(
entry
)
{
next
=
entry
->
next
;
next
=
entry
->
next
;
del_timer
(
&
entry
->
timer
);
/* No timer, LANEv2 7.1.20 and 2.3.5.3 */
lec_arp_clear_vccs
(
entry
);
lec_arp_clear_vccs
(
entry
);
kfree
(
entry
);
kfree
(
entry
);
entry
=
next
;
entry
=
next
;
...
@@ -1478,8 +1478,6 @@ lec_arp_expire_arp(unsigned long data)
...
@@ -1478,8 +1478,6 @@ lec_arp_expire_arp(unsigned long data)
entry
=
(
struct
lec_arp_table
*
)
data
;
entry
=
(
struct
lec_arp_table
*
)
data
;
del_timer
(
&
entry
->
timer
);
DPRINTK
(
"lec_arp_expire_arp
\n
"
);
DPRINTK
(
"lec_arp_expire_arp
\n
"
);
if
(
entry
->
status
==
ESI_ARP_PENDING
)
{
if
(
entry
->
status
==
ESI_ARP_PENDING
)
{
if
(
entry
->
no_tries
<=
entry
->
priv
->
max_retry_count
)
{
if
(
entry
->
no_tries
<=
entry
->
priv
->
max_retry_count
)
{
...
@@ -1489,8 +1487,7 @@ lec_arp_expire_arp(unsigned long data)
...
@@ -1489,8 +1487,7 @@ lec_arp_expire_arp(unsigned long data)
send_to_lecd
(
entry
->
priv
,
l_arp_xmt
,
entry
->
mac_addr
,
NULL
,
NULL
);
send_to_lecd
(
entry
->
priv
,
l_arp_xmt
,
entry
->
mac_addr
,
NULL
,
NULL
);
entry
->
no_tries
++
;
entry
->
no_tries
++
;
}
}
entry
->
timer
.
expires
=
jiffies
+
(
1
*
HZ
);
mod_timer
(
&
entry
->
timer
,
jiffies
+
(
1
*
HZ
));
add_timer
(
&
entry
->
timer
);
}
}
}
}
...
@@ -1562,8 +1559,6 @@ lec_arp_check_expire(unsigned long data)
...
@@ -1562,8 +1559,6 @@ lec_arp_check_expire(unsigned long data)
unsigned
long
time_to_check
;
unsigned
long
time_to_check
;
int
i
;
int
i
;
del_timer
(
&
priv
->
lec_arp_timer
);
DPRINTK
(
"lec_arp_check_expire %p,%d
\n
"
,
priv
,
DPRINTK
(
"lec_arp_check_expire %p,%d
\n
"
,
priv
,
atomic_read
(
&
priv
->
lec_arp_users
));
atomic_read
(
&
priv
->
lec_arp_users
));
DPRINTK
(
"expire: eo:%p nf:%p
\n
"
,
priv
->
lec_arp_empty_ones
,
DPRINTK
(
"expire: eo:%p nf:%p
\n
"
,
priv
->
lec_arp_empty_ones
,
...
@@ -1621,8 +1616,8 @@ lec_arp_check_expire(unsigned long data)
...
@@ -1621,8 +1616,8 @@ lec_arp_check_expire(unsigned long data)
}
}
lec_arp_put
(
priv
);
lec_arp_put
(
priv
);
}
}
priv
->
lec_arp_timer
.
expires
=
jiffies
+
LEC_ARP_REFRESH_INTERVAL
;
add_timer
(
&
priv
->
lec_arp_timer
);
mod_timer
(
&
priv
->
lec_arp_timer
,
jiffies
+
LEC_ARP_REFRESH_INTERVAL
);
}
}
/*
/*
* Try to find vcc where mac_address is attached.
* Try to find vcc where mac_address is attached.
...
...
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