]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
xfrm: copy_to_user_state fetch offloaded SA packets/bytes statistics
authorRaed Salem <raeds@nvidia.com>
Tue, 14 Mar 2023 08:58:40 +0000 (10:58 +0200)
committerLeon Romanovsky <leon@kernel.org>
Mon, 20 Mar 2023 09:29:37 +0000 (11:29 +0200)
commitc9fa320b00cff04980b8514d497068e59a8ee131
tree446cd59e391423fb1648dfef557633e9b259a5ed
parente0aeb9b90acf6ee7c2d11141522ffbb5481734d3
xfrm: copy_to_user_state fetch offloaded SA packets/bytes statistics

Both in RX and TX, the traffic that performs IPsec packet offload
transformation is accounted by HW only. Consequently, the HW should
be queried for packets/bytes statistics when user asks for such
transformation data.

Signed-off-by: Raed Salem <raeds@nvidia.com>
Link: https://lore.kernel.org/r/d90ec74186452b1509ee94875d942cb777b7181e.1678714336.git.leon@kernel.org
Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
net/xfrm/xfrm_user.c