* [PATCH RFC ipsec-next] xfrm: update SA curlft.use_time
[not found] <YanYgmJwrC3REnKc@AntonyAntony.local>
@ 2021-12-08 21:24 ` Antony Antony
2021-12-17 17:02 ` [PATCH " Antony Antony
1 sibling, 0 replies; 3+ messages in thread
From: Antony Antony @ 2021-12-08 21:24 UTC (permalink / raw)
To: Steffen Klassert
Cc: Antony Antony, Herbert Xu, David S. Miller, Jakub Kicinski,
netdev, Tobias Brunner
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>
---
net/xfrm/xfrm_input.c | 1 +
net/xfrm/xfrm_output.c | 1 +
2 files changed, 2 insertions(+)
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 @@ 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);
diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c
index f165ffc77078..38f62f5c69d8 100644
--- a/net/xfrm/xfrm_output.c
+++ b/net/xfrm/xfrm_output.c
@@ -536,6 +536,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);
--
2.30.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH ipsec-next] xfrm: update SA curlft.use_time
[not found] <YanYgmJwrC3REnKc@AntonyAntony.local>
2021-12-08 21:24 ` [PATCH RFC ipsec-next] xfrm: update SA curlft.use_time Antony Antony
@ 2021-12-17 17:02 ` Antony Antony
2021-12-29 10:17 ` Steffen Klassert
1 sibling, 1 reply; 3+ messages in thread
From: Antony Antony @ 2021-12-17 17:02 UTC (permalink / raw)
To: Steffen Klassert
Cc: Antony Antony, Herbert Xu, David S. Miller, Jakub Kicinski, netdev
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>
---
net/xfrm/xfrm_input.c | 1 +
net/xfrm/xfrm_output.c | 1 +
2 files changed, 2 insertions(+)
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 @@ 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);
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);
--
2.30.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH ipsec-next] xfrm: update SA curlft.use_time
2021-12-17 17:02 ` [PATCH " Antony Antony
@ 2021-12-29 10:17 ` Steffen Klassert
0 siblings, 0 replies; 3+ messages in thread
From: Steffen Klassert @ 2021-12-29 10:17 UTC (permalink / raw)
To: Antony Antony; +Cc: Herbert Xu, David S. Miller, Jakub Kicinski, netdev
On Fri, Dec 17, 2021 at 06:02:09PM +0100, Antony Antony wrote:
> 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>
Applied, thanks Antony!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-12-29 10:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <YanYgmJwrC3REnKc@AntonyAntony.local>
2021-12-08 21:24 ` [PATCH RFC ipsec-next] xfrm: update SA curlft.use_time Antony Antony
2021-12-17 17:02 ` [PATCH " Antony Antony
2021-12-29 10:17 ` Steffen Klassert
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.