]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - net/xfrm/xfrm_state.c
xfrm: Fix bucket count reported to userspace
authorBenjamin Poirier <bpoirier@suse.com>
Mon, 5 Nov 2018 08:00:53 +0000 (17:00 +0900)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 6 Nov 2018 11:25:47 +0000 (12:25 +0100)
commitca92e173ab34a4f7fc4128bd372bd96f1af6f507
tree1d53ea38238536af72f5703f3c54fbfb7362b32f
parent533555e5cbb6aa2d77598917871ae5b579fe724b
xfrm: Fix bucket count reported to userspace

sadhcnt is reported by `ip -s xfrm state count` as "buckets count", not the
hash mask.

Fixes: 28d8909bc790 ("[XFRM]: Export SAD info.")
Signed-off-by: Benjamin Poirier <bpoirier@suse.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_state.c