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
d894b915
Commit
d894b915
authored
Feb 24, 2004
by
Chas Williams
Committed by
Patrick McHardy
Feb 24, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ATM]: use clip_tbl instead of clp_tbl_hook (from Francois Romieu <romieu@fr.zoreil.com>)
parent
6cd2c39a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
net/atm/clip.c
net/atm/clip.c
+4
-10
No files found.
net/atm/clip.c
View file @
d894b915
...
@@ -885,7 +885,7 @@ static void *arp_get_idx(struct arp_state *state, loff_t l)
...
@@ -885,7 +885,7 @@ static void *arp_get_idx(struct arp_state *state, loff_t l)
if
(
v
)
if
(
v
)
goto
done
;
goto
done
;
}
}
state
->
n
=
clip_tbl
_hook
->
hash_buckets
[
state
->
bucket
+
1
];
state
->
n
=
clip_tbl
.
hash_buckets
[
state
->
bucket
+
1
];
}
}
done:
done:
return
v
;
return
v
;
...
@@ -896,18 +896,12 @@ static void *arp_seq_start(struct seq_file *seq, loff_t *pos)
...
@@ -896,18 +896,12 @@ static void *arp_seq_start(struct seq_file *seq, loff_t *pos)
struct
arp_state
*
state
=
seq
->
private
;
struct
arp_state
*
state
=
seq
->
private
;
void
*
ret
=
(
void
*
)
1
;
void
*
ret
=
(
void
*
)
1
;
if
(
!
clip_tbl_hook
)
{
read_lock_bh
(
&
clip_tbl
.
lock
);
state
->
bucket
=
-
1
;
goto
out
;
}
read_lock_bh
(
&
clip_tbl_hook
->
lock
);
state
->
bucket
=
0
;
state
->
bucket
=
0
;
state
->
n
=
clip_tbl
_hook
->
hash_buckets
[
0
];
state
->
n
=
clip_tbl
.
hash_buckets
[
0
];
state
->
vcc
=
(
void
*
)
1
;
state
->
vcc
=
(
void
*
)
1
;
if
(
*
pos
)
if
(
*
pos
)
ret
=
arp_get_idx
(
state
,
*
pos
);
ret
=
arp_get_idx
(
state
,
*
pos
);
out:
return
ret
;
return
ret
;
}
}
...
@@ -916,7 +910,7 @@ static void arp_seq_stop(struct seq_file *seq, void *v)
...
@@ -916,7 +910,7 @@ static void arp_seq_stop(struct seq_file *seq, void *v)
struct
arp_state
*
state
=
seq
->
private
;
struct
arp_state
*
state
=
seq
->
private
;
if
(
state
->
bucket
!=
-
1
)
if
(
state
->
bucket
!=
-
1
)
read_unlock_bh
(
&
clip_tbl
_hook
->
lock
);
read_unlock_bh
(
&
clip_tbl
.
lock
);
}
}
static
void
*
arp_seq_next
(
struct
seq_file
*
seq
,
void
*
v
,
loff_t
*
pos
)
static
void
*
arp_seq_next
(
struct
seq_file
*
seq
,
void
*
v
,
loff_t
*
pos
)
...
...
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