diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2017-02-15 09:39:54 +0100 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2017-02-15 11:04:10 +0100 |
commit | 54ef207ac8f7a17d677082157a29f4df8499dc81 (patch) | |
tree | 38ce4d1b10a554617818bb313331482a37156828 /net/xfrm | |
parent | 1e29537034e388c7e72eac43cfcda1d23131623b (diff) | |
download | op-kernel-dev-54ef207ac8f7a17d677082157a29f4df8499dc81.zip op-kernel-dev-54ef207ac8f7a17d677082157a29f4df8499dc81.tar.gz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_input.c b/net/xfrm/xfrm_input.c index 86f8a8d..d2ff712 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; |