diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2007-02-09 09:24:29 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-02-11 02:19:16 -0500 |
commit | f7d57453d20e27de69ecafd121005e9d13a0f427 (patch) | |
tree | 68fc3b10116cbd4e20411a08fd7f6cc2510c3442 /net/atm/mpoa_caches.h | |
parent | ed4477b96049fe2908c63f854bf8e37c6df4a635 (diff) |
[NET] ATM: Fix whitespace errors.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/mpoa_caches.h')
-rw-r--r-- | net/atm/mpoa_caches.h | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/net/atm/mpoa_caches.h b/net/atm/mpoa_caches.h index 84de977def2e..8e5f78cf0be1 100644 --- a/net/atm/mpoa_caches.h +++ b/net/atm/mpoa_caches.h | |||
@@ -12,66 +12,66 @@ struct mpoa_client; | |||
12 | void atm_mpoa_init_cache(struct mpoa_client *mpc); | 12 | void atm_mpoa_init_cache(struct mpoa_client *mpc); |
13 | 13 | ||
14 | typedef struct in_cache_entry { | 14 | typedef struct in_cache_entry { |
15 | struct in_cache_entry *next; | 15 | struct in_cache_entry *next; |
16 | struct in_cache_entry *prev; | 16 | struct in_cache_entry *prev; |
17 | struct timeval tv; | 17 | struct timeval tv; |
18 | struct timeval reply_wait; | 18 | struct timeval reply_wait; |
19 | struct timeval hold_down; | 19 | struct timeval hold_down; |
20 | uint32_t packets_fwded; | 20 | uint32_t packets_fwded; |
21 | uint16_t entry_state; | 21 | uint16_t entry_state; |
22 | uint32_t retry_time; | 22 | uint32_t retry_time; |
23 | uint32_t refresh_time; | 23 | uint32_t refresh_time; |
24 | uint32_t count; | 24 | uint32_t count; |
25 | struct atm_vcc *shortcut; | 25 | struct atm_vcc *shortcut; |
26 | uint8_t MPS_ctrl_ATM_addr[ATM_ESA_LEN]; | 26 | uint8_t MPS_ctrl_ATM_addr[ATM_ESA_LEN]; |
27 | struct in_ctrl_info ctrl_info; | 27 | struct in_ctrl_info ctrl_info; |
28 | atomic_t use; | 28 | atomic_t use; |
29 | } in_cache_entry; | 29 | } in_cache_entry; |
30 | 30 | ||
31 | struct in_cache_ops{ | 31 | struct in_cache_ops{ |
32 | in_cache_entry *(*add_entry)(__be32 dst_ip, | 32 | in_cache_entry *(*add_entry)(__be32 dst_ip, |
33 | struct mpoa_client *client); | 33 | struct mpoa_client *client); |
34 | in_cache_entry *(*get)(__be32 dst_ip, struct mpoa_client *client); | 34 | in_cache_entry *(*get)(__be32 dst_ip, struct mpoa_client *client); |
35 | in_cache_entry *(*get_with_mask)(__be32 dst_ip, | 35 | in_cache_entry *(*get_with_mask)(__be32 dst_ip, |
36 | struct mpoa_client *client, | 36 | struct mpoa_client *client, |
37 | __be32 mask); | 37 | __be32 mask); |
38 | in_cache_entry *(*get_by_vcc)(struct atm_vcc *vcc, | 38 | in_cache_entry *(*get_by_vcc)(struct atm_vcc *vcc, |
39 | struct mpoa_client *client); | 39 | struct mpoa_client *client); |
40 | void (*put)(in_cache_entry *entry); | 40 | void (*put)(in_cache_entry *entry); |
41 | void (*remove_entry)(in_cache_entry *delEntry, | 41 | void (*remove_entry)(in_cache_entry *delEntry, |
42 | struct mpoa_client *client ); | 42 | struct mpoa_client *client ); |
43 | int (*cache_hit)(in_cache_entry *entry, | 43 | int (*cache_hit)(in_cache_entry *entry, |
44 | struct mpoa_client *client); | 44 | struct mpoa_client *client); |
45 | void (*clear_count)(struct mpoa_client *client); | 45 | void (*clear_count)(struct mpoa_client *client); |
46 | void (*check_resolving)(struct mpoa_client *client); | 46 | void (*check_resolving)(struct mpoa_client *client); |
47 | void (*refresh)(struct mpoa_client *client); | 47 | void (*refresh)(struct mpoa_client *client); |
48 | void (*destroy_cache)(struct mpoa_client *mpc); | 48 | void (*destroy_cache)(struct mpoa_client *mpc); |
49 | }; | 49 | }; |
50 | 50 | ||
51 | typedef struct eg_cache_entry{ | 51 | typedef struct eg_cache_entry{ |
52 | struct eg_cache_entry *next; | 52 | struct eg_cache_entry *next; |
53 | struct eg_cache_entry *prev; | 53 | struct eg_cache_entry *prev; |
54 | struct timeval tv; | 54 | struct timeval tv; |
55 | uint8_t MPS_ctrl_ATM_addr[ATM_ESA_LEN]; | 55 | uint8_t MPS_ctrl_ATM_addr[ATM_ESA_LEN]; |
56 | struct atm_vcc *shortcut; | 56 | struct atm_vcc *shortcut; |
57 | uint32_t packets_rcvd; | 57 | uint32_t packets_rcvd; |
58 | uint16_t entry_state; | 58 | uint16_t entry_state; |
59 | __be32 latest_ip_addr; /* The src IP address of the last packet */ | 59 | __be32 latest_ip_addr; /* The src IP address of the last packet */ |
60 | struct eg_ctrl_info ctrl_info; | 60 | struct eg_ctrl_info ctrl_info; |
61 | atomic_t use; | 61 | atomic_t use; |
62 | } eg_cache_entry; | 62 | } eg_cache_entry; |
63 | 63 | ||
64 | struct eg_cache_ops{ | 64 | struct eg_cache_ops{ |
65 | eg_cache_entry *(*add_entry)(struct k_message *msg, struct mpoa_client *client); | 65 | eg_cache_entry *(*add_entry)(struct k_message *msg, struct mpoa_client *client); |
66 | eg_cache_entry *(*get_by_cache_id)(__be32 cache_id, struct mpoa_client *client); | 66 | eg_cache_entry *(*get_by_cache_id)(__be32 cache_id, struct mpoa_client *client); |
67 | eg_cache_entry *(*get_by_tag)(__be32 cache_id, struct mpoa_client *client); | 67 | eg_cache_entry *(*get_by_tag)(__be32 cache_id, struct mpoa_client *client); |
68 | eg_cache_entry *(*get_by_vcc)(struct atm_vcc *vcc, struct mpoa_client *client); | 68 | eg_cache_entry *(*get_by_vcc)(struct atm_vcc *vcc, struct mpoa_client *client); |
69 | eg_cache_entry *(*get_by_src_ip)(__be32 ipaddr, struct mpoa_client *client); | 69 | eg_cache_entry *(*get_by_src_ip)(__be32 ipaddr, struct mpoa_client *client); |
70 | void (*put)(eg_cache_entry *entry); | 70 | void (*put)(eg_cache_entry *entry); |
71 | void (*remove_entry)(eg_cache_entry *entry, struct mpoa_client *client); | 71 | void (*remove_entry)(eg_cache_entry *entry, struct mpoa_client *client); |
72 | void (*update)(eg_cache_entry *entry, uint16_t holding_time); | 72 | void (*update)(eg_cache_entry *entry, uint16_t holding_time); |
73 | void (*clear_expired)(struct mpoa_client *client); | 73 | void (*clear_expired)(struct mpoa_client *client); |
74 | void (*destroy_cache)(struct mpoa_client *mpc); | 74 | void (*destroy_cache)(struct mpoa_client *mpc); |
75 | }; | 75 | }; |
76 | 76 | ||
77 | 77 | ||
@@ -85,7 +85,7 @@ struct eg_cache_ops{ | |||
85 | /* VCC states */ | 85 | /* VCC states */ |
86 | 86 | ||
87 | #define OPEN 1 | 87 | #define OPEN 1 |
88 | #define CLOSED 0 | 88 | #define CLOSED 0 |
89 | 89 | ||
90 | /* Egress cache entry states */ | 90 | /* Egress cache entry states */ |
91 | 91 | ||