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
Kirill Smelkov
linux
Commits
391e5c22
Commit
391e5c22
authored
Jul 12, 2012
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipv4: Remove tb_peers from fib_table.
No longer used. Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
10b0a773
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
include/net/ip_fib.h
include/net/ip_fib.h
+0
-1
net/ipv4/fib_trie.c
net/ipv4/fib_trie.c
+0
-3
No files found.
include/net/ip_fib.h
View file @
391e5c22
...
@@ -162,7 +162,6 @@ struct fib_table {
...
@@ -162,7 +162,6 @@ struct fib_table {
u32
tb_id
;
u32
tb_id
;
int
tb_default
;
int
tb_default
;
int
tb_num_default
;
int
tb_num_default
;
struct
inet_peer_base
tb_peers
;
unsigned
long
tb_data
[
0
];
unsigned
long
tb_data
[
0
];
};
};
...
...
net/ipv4/fib_trie.c
View file @
391e5c22
...
@@ -1843,8 +1843,6 @@ int fib_table_flush(struct fib_table *tb)
...
@@ -1843,8 +1843,6 @@ int fib_table_flush(struct fib_table *tb)
if
(
ll
&&
hlist_empty
(
&
ll
->
list
))
if
(
ll
&&
hlist_empty
(
&
ll
->
list
))
trie_leaf_remove
(
t
,
ll
);
trie_leaf_remove
(
t
,
ll
);
inetpeer_invalidate_tree
(
&
tb
->
tb_peers
);
pr_debug
(
"trie_flush found=%d
\n
"
,
found
);
pr_debug
(
"trie_flush found=%d
\n
"
,
found
);
return
found
;
return
found
;
}
}
...
@@ -1993,7 +1991,6 @@ struct fib_table *fib_trie_table(u32 id)
...
@@ -1993,7 +1991,6 @@ struct fib_table *fib_trie_table(u32 id)
tb
->
tb_id
=
id
;
tb
->
tb_id
=
id
;
tb
->
tb_default
=
-
1
;
tb
->
tb_default
=
-
1
;
tb
->
tb_num_default
=
0
;
tb
->
tb_num_default
=
0
;
inet_peer_base_init
(
&
tb
->
tb_peers
);
t
=
(
struct
trie
*
)
tb
->
tb_data
;
t
=
(
struct
trie
*
)
tb
->
tb_data
;
memset
(
t
,
0
,
sizeof
(
*
t
));
memset
(
t
,
0
,
sizeof
(
*
t
));
...
...
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