summaryrefslogtreecommitdiffstats
path: root/net/xfrm
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2017-02-15 09:39:54 +0100
committerSteffen Klassert <steffen.klassert@secunet.com>2017-02-15 11:04:10 +0100
commit54ef207ac8f7a17d677082157a29f4df8499dc81 (patch)
tree38ce4d1b10a554617818bb313331482a37156828 /net/xfrm
parent1e29537034e388c7e72eac43cfcda1d23131623b (diff)
downloadlinux-54ef207ac8f7a17d677082157a29f4df8499dc81.tar.bz2
xfrm: Extend the sec_path for IPsec offloading
We need to keep per packet offloading informations across the layers. So we extend the sec_path to carry these for the input and output offload codepath. Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm')
-rw-r--r--net/xfrm/xfrm_input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_input.c b/net/xfrm/xfrm_input.c
index 86f8a8de5252..d2ff71230864 100644
--- a/net/xfrm/xfrm_input.c
+++ b/net/xfrm/xfrm_input.c
@@ -105,6 +105,8 @@ struct sec_path *secpath_dup(struct sec_path *src)
return NULL;
sp->len = 0;
+ sp->olen = 0;
+
if (src) {
int i;