summaryrefslogtreecommitdiff
path: root/net/ipv4/xfrm4_input.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-11-19 18:50:17 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-28 14:53:54 -0800
commit1bf06cd2e338fd6fc29169d30eaf0df982338285 (patch)
tree351bf1c8e5063fdfb8c820470972169d398729fe /net/ipv4/xfrm4_input.c
parent60d5fcfb19d8a958fc563e52240cd05ec23f36c9 (diff)
downloadlinux-stable-1bf06cd2e338fd6fc29169d30eaf0df982338285.tar.gz
linux-stable-1bf06cd2e338fd6fc29169d30eaf0df982338285.tar.bz2
linux-stable-1bf06cd2e338fd6fc29169d30eaf0df982338285.zip
[IPSEC]: Add async resume support on input
This patch adds support for async resumptions on input. To do so, the transform would return -EINPROGRESS and subsequently invoke the function xfrm_input_resume to resume processing. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/xfrm4_input.c')
-rw-r--r--net/ipv4/xfrm4_input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/xfrm4_input.c b/net/ipv4/xfrm4_input.c
index 662d1e86cfbf..d5890c84a492 100644
--- a/net/ipv4/xfrm4_input.c
+++ b/net/ipv4/xfrm4_input.c
@@ -59,6 +59,9 @@ int xfrm4_transport_finish(struct sk_buff *skb, int async)
xfrm4_rcv_encap_finish);
return 0;
#else
+ if (async)
+ return xfrm4_rcv_encap_finish(skb);
+
return -iph->protocol;
#endif
}