inetpeer.h (9938b04472d5c59f8bd8152a548533a8599596a2) inetpeer.h (1cc9a98b59ba92fece1277f76aa43e05f34936a6)
1/*
2 * INETPEER - A storage for permanent information about peers
3 *
4 * Authors: Andrey V. Savochkin <saw@msu.ru>
5 */
6
7#ifndef _NET_INETPEER_H
8#define _NET_INETPEER_H

--- 32 unchanged lines hidden (view full) ---

41 u32 metrics[RTAX_MAX];
42 u32 rate_tokens; /* rate limiting for ICMP */
43 unsigned long rate_last;
44 union {
45 struct list_head gc_list;
46 struct rcu_head gc_rcu;
47 };
48 /*
1/*
2 * INETPEER - A storage for permanent information about peers
3 *
4 * Authors: Andrey V. Savochkin <saw@msu.ru>
5 */
6
7#ifndef _NET_INETPEER_H
8#define _NET_INETPEER_H

--- 32 unchanged lines hidden (view full) ---

41 u32 metrics[RTAX_MAX];
42 u32 rate_tokens; /* rate limiting for ICMP */
43 unsigned long rate_last;
44 union {
45 struct list_head gc_list;
46 struct rcu_head gc_rcu;
47 };
48 /*
49 * Once inet_peer is queued for deletion (refcnt == -1), following field
49 * Once inet_peer is queued for deletion (refcnt == 0), following field
50 * is not available: rid
51 * We can share memory with rcu_head to help keep inet_peer small.
52 */
53 union {
54 struct {
55 atomic_t rid; /* Frag reception counter */
56 };
57 struct rcu_head rcu;
58 struct inet_peer *gc_next;
59 };
60
61 /* following fields might be frequently dirtied */
62 __u32 dtime; /* the time of last use of not referenced entries */
50 * is not available: rid
51 * We can share memory with rcu_head to help keep inet_peer small.
52 */
53 union {
54 struct {
55 atomic_t rid; /* Frag reception counter */
56 };
57 struct rcu_head rcu;
58 struct inet_peer *gc_next;
59 };
60
61 /* following fields might be frequently dirtied */
62 __u32 dtime; /* the time of last use of not referenced entries */
63 atomic_t refcnt;
63 refcount_t refcnt;
64};
65
66struct inet_peer_base {
67 struct inet_peer __rcu *root;
68 seqlock_t lock;
69 int total;
70};
71

--- 86 unchanged lines hidden ---
64};
65
66struct inet_peer_base {
67 struct inet_peer __rcu *root;
68 seqlock_t lock;
69 int total;
70};
71

--- 86 unchanged lines hidden ---