diff options
author | Antony Antony <antony.antony@secunet.com> | 2021-12-17 18:02:09 +0100 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2021-12-23 09:32:50 +0100 |
commit | af734a26a1a95a9fda51f2abb0c22a7efcafd5ca (patch) | |
tree | e0a3eaba4f479b796f5b1c7eb9a27af522c09a4e /net/xfrm/xfrm_input.c | |
parent | net: xfrm: drop check of pols[0] for the second time (diff) | |
download | linux-af734a26a1a95a9fda51f2abb0c22a7efcafd5ca.tar.xz linux-af734a26a1a95a9fda51f2abb0c22a7efcafd5ca.zip |
xfrm: update SA curlft.use_time
SA use_time was only updated once, for the first packet.
with this fix update the use_time for every packet.
Signed-off-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_input.c')
-rw-r--r-- | net/xfrm/xfrm_input.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_input.c b/net/xfrm/xfrm_input.c index 70a8c36f0ba6..144238a50f3d 100644 --- a/net/xfrm/xfrm_input.c +++ b/net/xfrm/xfrm_input.c @@ -669,6 +669,7 @@ resume: x->curlft.bytes += skb->len; x->curlft.packets++; + x->curlft.use_time = ktime_get_real_seconds(); spin_unlock(&x->lock); |