diff options
author | 2023-10-03 20:57:20 +0300 | |
---|---|---|
committer | 2024-02-05 16:45:49 -0800 | |
commit | fd2bc4195d5107f88c1b90e1ec935888ccbfc5c0 (patch) | |
tree | 5501447fa7eed70a98da74dd193f6a7ce1d2134c /Documentation | |
parent | netdevsim: add Makefile for selftests (diff) | |
download | linux-fd2bc4195d5107f88c1b90e1ec935888ccbfc5c0.tar.gz linux-fd2bc4195d5107f88c1b90e1ec935888ccbfc5c0.tar.bz2 linux-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 <steffen.klassert@secunet.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/networking/xfrm_device.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/networking/xfrm_device.rst b/Documentation/networking/xfrm_device.rst index 535077cbeb07..bfea9d8579ed 100644 --- a/Documentation/networking/xfrm_device.rst +++ b/Documentation/networking/xfrm_device.rst @@ -71,9 +71,9 @@ Callbacks to implement bool (*xdo_dev_offload_ok) (struct sk_buff *skb, struct xfrm_state *x); void (*xdo_dev_state_advance_esn) (struct xfrm_state *x); + void (*xdo_dev_state_update_stats) (struct xfrm_state *x); /* Solely packet offload callbacks */ - void (*xdo_dev_state_update_curlft) (struct xfrm_state *x); int (*xdo_dev_policy_add) (struct xfrm_policy *x, struct netlink_ext_ack *extack); void (*xdo_dev_policy_delete) (struct xfrm_policy *x); void (*xdo_dev_policy_free) (struct xfrm_policy *x); @@ -191,6 +191,6 @@ xdo_dev_policy_free() on any remaining offloaded states. Outcome of HW handling packets, the XFRM core can't count hard, soft limits. The HW/driver are responsible to perform it and provide accurate data when -xdo_dev_state_update_curlft() is called. In case of one of these limits +xdo_dev_state_update_stats() is called. In case of one of these limits occuried, the driver needs to call to xfrm_state_check_expire() to make sure that XFRM performs rekeying sequence. |