diff options
| author | Michal Marek <mmarek@suse.cz> | 2010-10-27 18:15:57 -0400 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2010-10-27 18:15:57 -0400 |
| commit | b74b953b998bcc2db91b694446f3a2619ec32de6 (patch) | |
| tree | 6ce24caabd730f6ae9287ed0676ec32e6ff31e9d /include/net/flow.h | |
| parent | abb438526201c6a79949ad45375c051b6681c253 (diff) | |
| parent | f6f94e2ab1b33f0082ac22d71f66385a60d8157f (diff) | |
Merge commit 'v2.6.36' into kbuild/misc
Update to be able to fix a recent change to scripts/basic/docproc.c
(commit eda603f).
Diffstat (limited to 'include/net/flow.h')
| -rw-r--r-- | include/net/flow.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/include/net/flow.h b/include/net/flow.h index 809970b7dfee..bb08692a20b0 100644 --- a/include/net/flow.h +++ b/include/net/flow.h | |||
| @@ -86,11 +86,26 @@ struct flowi { | |||
| 86 | 86 | ||
| 87 | struct net; | 87 | struct net; |
| 88 | struct sock; | 88 | struct sock; |
| 89 | typedef int (*flow_resolve_t)(struct net *net, struct flowi *key, u16 family, | 89 | struct flow_cache_ops; |
| 90 | u8 dir, void **objp, atomic_t **obj_refp); | 90 | |
| 91 | struct flow_cache_object { | ||
| 92 | const struct flow_cache_ops *ops; | ||
| 93 | }; | ||
| 94 | |||
| 95 | struct flow_cache_ops { | ||
| 96 | struct flow_cache_object *(*get)(struct flow_cache_object *); | ||
| 97 | int (*check)(struct flow_cache_object *); | ||
| 98 | void (*delete)(struct flow_cache_object *); | ||
| 99 | }; | ||
| 100 | |||
| 101 | typedef struct flow_cache_object *(*flow_resolve_t)( | ||
| 102 | struct net *net, struct flowi *key, u16 family, | ||
| 103 | u8 dir, struct flow_cache_object *oldobj, void *ctx); | ||
| 104 | |||
| 105 | extern struct flow_cache_object *flow_cache_lookup( | ||
| 106 | struct net *net, struct flowi *key, u16 family, | ||
| 107 | u8 dir, flow_resolve_t resolver, void *ctx); | ||
| 91 | 108 | ||
| 92 | extern void *flow_cache_lookup(struct net *net, struct flowi *key, u16 family, | ||
| 93 | u8 dir, flow_resolve_t resolver); | ||
| 94 | extern void flow_cache_flush(void); | 109 | extern void flow_cache_flush(void); |
| 95 | extern atomic_t flow_cache_genid; | 110 | extern atomic_t flow_cache_genid; |
| 96 | 111 | ||
