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
60659823
Commit
60659823
authored
Jan 26, 2011
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetpeer: Add metrics storage to inetpeer entries.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
62fa8a84
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
include/net/inetpeer.h
include/net/inetpeer.h
+4
-2
No files found.
include/net/inetpeer.h
View file @
60659823
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
#include <linux/init.h>
#include <linux/init.h>
#include <linux/jiffies.h>
#include <linux/jiffies.h>
#include <linux/spinlock.h>
#include <linux/spinlock.h>
#include <linux/rtnetlink.h>
#include <net/ipv6.h>
#include <net/ipv6.h>
#include <asm/atomic.h>
#include <asm/atomic.h>
...
@@ -33,8 +34,8 @@ struct inet_peer {
...
@@ -33,8 +34,8 @@ struct inet_peer {
atomic_t
refcnt
;
atomic_t
refcnt
;
/*
/*
* Once inet_peer is queued for deletion (refcnt == -1), following fields
* Once inet_peer is queued for deletion (refcnt == -1), following fields
* are not available: rid, ip_id_count, tcp_ts, tcp_ts_stamp
* are not available: rid, ip_id_count, tcp_ts, tcp_ts_stamp
, metrics
* We can share memory with rcu_head to
keep inet_peer small
* We can share memory with rcu_head to
help keep inet_peer small.
*/
*/
union
{
union
{
struct
{
struct
{
...
@@ -42,6 +43,7 @@ struct inet_peer {
...
@@ -42,6 +43,7 @@ struct inet_peer {
atomic_t
ip_id_count
;
/* IP ID for the next packet */
atomic_t
ip_id_count
;
/* IP ID for the next packet */
__u32
tcp_ts
;
__u32
tcp_ts
;
__u32
tcp_ts_stamp
;
__u32
tcp_ts_stamp
;
u32
metrics
[
RTAX_MAX
];
};
};
struct
rcu_head
rcu
;
struct
rcu_head
rcu
;
};
};
...
...
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