mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
9f28a2fc0b
commit
c0ed1c14a7
3 changed files with 27 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue