Whamcloud - gitweb
LU-9121 lnet: Add the ioctl handler for "add policy" 93/40193/1
authorSonia Sharma <sharmaso@whamcloud.com>
Tue, 19 Mar 2019 23:14:13 +0000 (19:14 -0400)
committerAmir Shehata <ashehata@whamcloud.com>
Thu, 8 Oct 2020 21:27:29 +0000 (14:27 -0700)
commit5d141f437dbaadff5dc8da7343518484dce70728
treefe25f03238462b7a63ea494a8d1159602a6e6973
parent202f560085a8b595874e01de9afd3ea66744516a
LU-9121 lnet: Add the ioctl handler for "add policy"

The ioctl handler for "add policy" de-marshals the
udsp rules passed from userspace and then add the
rules if there is no copy of the same rules already
added. Apply the rules to the existing LNet
constructs.

Change-Id: Ia76ecdea6de94e1dbcfe71bfcb5a1753fb3c874d
Test-Parameters: trivial testlist=lnet-selftest,sanity-lnet
Signed-off-by: Sonia Sharma <sharmaso@whamcloud.com>
Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/34514
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
lnet/include/uapi/linux/lnet/libcfs_ioctl.h
lnet/lnet/api-ni.c