diff options
author | Antony Antony | 2021-12-17 18:02:09 +0100 |
---|---|---|
committer | Steffen Klassert | 2021-12-23 09:32:50 +0100 |
commit | af734a26a1a95a9fda51f2abb0c22a7efcafd5ca (patch) | |
tree | e0a3eaba4f479b796f5b1c7eb9a27af522c09a4e /net/xfrm/xfrm_output.c | |
parent | ac1077e92825bb0ffeee8550a41771df772214ce (diff) |
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_output.c')
-rw-r--r-- | net/xfrm/xfrm_output.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c index 229544bc70c2..3585bfc302f9 100644 --- a/net/xfrm/xfrm_output.c +++ b/net/xfrm/xfrm_output.c @@ -533,6 +533,7 @@ static int xfrm_output_one(struct sk_buff *skb, int err) x->curlft.bytes += skb->len; x->curlft.packets++; + x->curlft.use_time = ktime_get_real_seconds(); spin_unlock_bh(&x->lock); |