diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2011-12-21 22:48:08 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-21 22:48:08 +0100 |
commit | c0ed1c14a72ca9ebacd51fb94a8aca488b0d361e (patch) | |
tree | e689f7fd62e7633b9b254f9a456b65a1150c6e23 /include | |
parent | ipv4: reintroduce route cache garbage collector (diff) | |
download | linux-c0ed1c14a72ca9ebacd51fb94a8aca488b0d361e.tar.xz linux-c0ed1c14a72ca9ebacd51fb94a8aca488b0d361e.zip |
net: Add a flow_cache_flush_deferred function
flow_cach_flush() might sleep but can be called from
atomic context via the xfrm garbage collector. So add
a flow_cache_flush_deferred() function and use this if
the xfrm garbage colector is invoked from within the
packet path.
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Acked-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/flow.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/flow.h b/include/net/flow.h index a09447749e2d..57f15a7f1cdd 100644 --- a/include/net/flow.h +++ b/include/net/flow.h @@ -207,6 +207,7 @@ extern struct flow_cache_object *flow_cache_lookup( u8 dir, flow_resolve_t resolver, void *ctx); extern void flow_cache_flush(void); +extern void flow_cache_flush_deferred(void); extern atomic_t flow_cache_genid; #endif |