diff options
author | Leon Romanovsky <leonro@nvidia.com> | 2023-10-03 20:57:20 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2024-02-06 03:45:49 +0300 |
commit | fd2bc4195d5107f88c1b90e1ec935888ccbfc5c0 (patch) | |
tree | 5501447fa7eed70a98da74dd193f6a7ce1d2134c /net/xfrm/xfrm_state.c | |
parent | 8ff25dac88f616ebebb30830e3a20f079d7a30c9 (diff) | |
download | linux-fd2bc4195d5107f88c1b90e1ec935888ccbfc5c0.tar.xz |
xfrm: generalize xdo_dev_state_update_curlft to allow statistics update
In order to allow drivers to fill all statistics, change the name
of xdo_dev_state_update_curlft to be xdo_dev_state_update_stats.
Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'net/xfrm/xfrm_state.c')
-rw-r--r-- | net/xfrm/xfrm_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index bda5327bf34d..d8701b2d0d57 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c @@ -570,7 +570,7 @@ static enum hrtimer_restart xfrm_timer_handler(struct hrtimer *me) int err = 0; spin_lock(&x->lock); - xfrm_dev_state_update_curlft(x); + xfrm_dev_state_update_stats(x); if (x->km.state == XFRM_STATE_DEAD) goto out; @@ -1935,7 +1935,7 @@ EXPORT_SYMBOL(xfrm_state_update); int xfrm_state_check_expire(struct xfrm_state *x) { - xfrm_dev_state_update_curlft(x); + xfrm_dev_state_update_stats(x); if (!READ_ONCE(x->curlft.use_time)) WRITE_ONCE(x->curlft.use_time, ktime_get_real_seconds()); |