Commit af734a26 authored by Antony Antony's avatar Antony Antony Committed by Steffen Klassert
Browse files

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: default avatarAntony Antony <antony.antony@secunet.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent ac1077e9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -669,6 +669,7 @@ int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type)

		x->curlft.bytes += skb->len;
		x->curlft.packets++;
		x->curlft.use_time = ktime_get_real_seconds();

		spin_unlock(&x->lock);

+1 −0
Original line number Diff line number Diff line
@@ -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);