]> git.ipfire.org Git - thirdparty/iproute2.git/commit
rdma: Add copy-on-fork to get sys command
authorGal Pressman <galpress@amazon.com>
Thu, 29 Apr 2021 06:48:03 +0000 (09:48 +0300)
committerDavid Ahern <dsahern@kernel.org>
Mon, 3 May 2021 14:43:13 +0000 (14:43 +0000)
commitbce424786969241d9f01913e5b9ed07c6ba74be9
tree7c11da18f978ce8a46c744425c1dd5e5ff23f7b7
parent212e2c1d0cb27f0d1f87b9cc6454b8afbeb2d467
rdma: Add copy-on-fork to get sys command

The new attribute indicates that the kernel copies DMA pages on fork,
hence fork support through madvise and MADV_DONTFORK is not needed.

If the attribute is not reported (expected on older kernels),
copy-on-fork is disabled.

Example:
$ rdma sys
netns shared copy-on-fork on

Signed-off-by: Gal Pressman <galpress@amazon.com>
Acked-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
rdma/sys.c