diff options
| author | Leon Romanovsky <[email protected]> | 2023-10-03 17:57:20 +0000 |
|---|---|---|
| committer | Saeed Mahameed <[email protected]> | 2024-02-06 00:45:49 +0000 |
| commit | fd2bc4195d5107f88c1b90e1ec935888ccbfc5c0 (patch) | |
| tree | 5501447fa7eed70a98da74dd193f6a7ce1d2134c /net/xfrm/xfrm_user.c | |
| parent | netdevsim: add Makefile for selftests (diff) | |
| download | kernel-fd2bc4195d5107f88c1b90e1ec935888ccbfc5c0.tar.gz kernel-fd2bc4195d5107f88c1b90e1ec935888ccbfc5c0.zip | |
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 <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'net/xfrm/xfrm_user.c')
| -rw-r--r-- | net/xfrm/xfrm_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index ad01997c3aa9..dc4f9b8d7cb0 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c @@ -902,7 +902,7 @@ static void copy_to_user_state(struct xfrm_state *x, struct xfrm_usersa_info *p) memcpy(&p->sel, &x->sel, sizeof(p->sel)); memcpy(&p->lft, &x->lft, sizeof(p->lft)); if (x->xso.dev) - xfrm_dev_state_update_curlft(x); + xfrm_dev_state_update_stats(x); memcpy(&p->curlft, &x->curlft, sizeof(p->curlft)); put_unaligned(x->stats.replay_window, &p->stats.replay_window); put_unaligned(x->stats.replay, &p->stats.replay); |
