summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorNikhil Agarwal <nikhil.agarwal@freescale.com>2013-08-28 12:23:01 (GMT)
committerRivera Jose-B46482 <German.Rivera@freescale.com>2013-09-04 15:08:34 (GMT)
commitb9769b184dd20cc0cf300d2f5790b40569548b97 (patch)
tree97aee693c7d291f4f63ae5fe81a50aa6b3176752 /net
parent4442f3df52447fb6fdf0acead421c42647226e7d (diff)
downloadlinux-fsl-qoriq-b9769b184dd20cc0cf300d2f5790b40569548b97.tar.xz
ASF:IPSEC: Fix for OUT SA not offloaded in case of dynamic rekeying.
Signed-off-by: Nikhil Agarwal <nikhil.agarwal@freescale.com> Change-Id: Ibbbaf9bbacf43532c57341a4ef87995c5f1c6053 Reviewed-on: http://git.am.freescale.net:8181/4286 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Malik Sandeep-B02416 <Sandeep.Malik@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
Diffstat (limited to 'net')
-rw-r--r--net/xfrm/xfrm_output.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c
index 3476a27..73e1128 100644
--- a/net/xfrm/xfrm_output.c
+++ b/net/xfrm/xfrm_output.c
@@ -55,6 +55,9 @@ static int xfrm_output_one(struct sk_buff *skb, int err)
}
#ifdef CONFIG_AS_FASTPATH
+ if (!x->asf_sa_cookie && asf_cb_fns.ipsec_enc_hook)
+ asf_cb_fns.ipsec_enc_hook(NULL, x, NULL, skb->skb_iif);
+
if (x->asf_sa_cookie && asf_cb_fns.ipsec_encrypt_n_send) {
err = -EINPROGRESS;
if (!asf_cb_fns.ipsec_encrypt_n_send(skb, x))