xfrm: update x->lastused for every packet
authorAntony Antony <antony.antony@secunet.com>
Fri, 21 Oct 2022 13:42:01 +0000 (15:42 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 25 Oct 2022 08:24:08 +0000 (10:24 +0200)
commitf7fe25a6f00522791cce38bac552d295339d0c79
tree3f6b2255d928958a669fcb6ace19a3d2b6a083d0
parente91001bae0d1725d9a49b5bfb5f46f6d1ca6bf1d
xfrm: update x->lastused for every packet

x->lastused was only updated for outgoing mobile IPv6 packet.
With this fix update it for every, in and out, packet.

This is useful to check if the a SA is still in use, or when was
the last time an SA was used. lastused time of in SA can used
to check IPsec path is functional.

Signed-off-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_input.c
net/xfrm/xfrm_output.c