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
6fe3ff4b
Commit
6fe3ff4b
authored
Jun 03, 2003
by
Randy Dunlap
Committed by
David S. Miller
Jun 03, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Add IPv6 routing table statistic: fib_discarded_routes.
parent
1882dbed
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
include/net/ip6_fib.h
include/net/ip6_fib.h
+1
-0
net/ipv6/ip6_fib.c
net/ipv6/ip6_fib.c
+1
-0
net/ipv6/route.c
net/ipv6/route.c
+3
-2
No files found.
include/net/ip6_fib.h
View file @
6fe3ff4b
...
...
@@ -114,6 +114,7 @@ struct rt6_statistics {
__u32
fib_rt_alloc
;
/* permanent routes */
__u32
fib_rt_entries
;
/* rt entries in table */
__u32
fib_rt_cache
;
/* cache routes */
__u32
fib_discarded_routes
;
};
#define RTN_TL_ROOT 0x0001
...
...
net/ipv6/ip6_fib.c
View file @
6fe3ff4b
...
...
@@ -896,6 +896,7 @@ static void fib6_del_route(struct fib6_node *fn, struct rt6_info **rtp,
*
rtp
=
rt
->
u
.
next
;
rt
->
rt6i_node
=
NULL
;
rt6_stats
.
fib_rt_entries
--
;
rt6_stats
.
fib_discarded_routes
++
;
/* Adjust walkers */
read_lock
(
&
fib6_walker_lock
);
...
...
net/ipv6/route.c
View file @
6fe3ff4b
...
...
@@ -1786,11 +1786,12 @@ extern struct rt6_statistics rt6_stats;
static
int
rt6_stats_seq_show
(
struct
seq_file
*
seq
,
void
*
v
)
{
seq_printf
(
seq
,
"%04x %04x %04x %04x %04x %04x
\n
"
,
seq_printf
(
seq
,
"%04x %04x %04x %04x %04x %04x
%04x
\n
"
,
rt6_stats
.
fib_nodes
,
rt6_stats
.
fib_route_nodes
,
rt6_stats
.
fib_rt_alloc
,
rt6_stats
.
fib_rt_entries
,
rt6_stats
.
fib_rt_cache
,
atomic_read
(
&
ip6_dst_ops
.
entries
));
atomic_read
(
&
ip6_dst_ops
.
entries
),
rt6_stats
.
fib_discarded_routes
);
return
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