diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2023-04-17 10:32:39 -0400 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-04-19 18:48:48 -0700 |
commit | 88232ec1ec5ecf4aa5de439cff3d5e2b7adcac93 (patch) | |
tree | 3b7255875d4f657e0cf0e3087ecab918f3d01ba3 /net/handshake/handshake.h | |
parent | 2fd5532044a89d2403b543520b4902e196f7d165 (diff) | |
download | linux-88232ec1ec5ecf4aa5de439cff3d5e2b7adcac93.tar.gz |
net/handshake: Add Kunit tests for the handshake consumer API
These verify the API contracts and help exercise lifetime rules for
consumer sockets and handshake_req structures.
One way to run these tests:
./tools/testing/kunit/kunit.py run --kunitconfig ./net/handshake/.kunitconfig
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/handshake/handshake.h')
-rw-r--r-- | net/handshake/handshake.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/handshake/handshake.h b/net/handshake/handshake.h index 52568dbe24f1..4dac965c99df 100644 --- a/net/handshake/handshake.h +++ b/net/handshake/handshake.h @@ -49,6 +49,7 @@ enum hr_flags_bits { struct handshake_proto { int hp_handler_class; size_t hp_privsize; + unsigned long hp_flags; int (*hp_accept)(struct handshake_req *req, struct genl_info *info, int fd); @@ -58,6 +59,10 @@ struct handshake_proto { void (*hp_destroy)(struct handshake_req *req); }; +enum hp_flags_bits { + HANDSHAKE_F_PROTO_NOTIFY, +}; + /* netlink.c */ int handshake_genl_notify(struct net *net, const struct handshake_proto *proto, gfp_t flags); |