Home
last modified time | relevance | path

Searched refs:test (Results 1 – 22 of 22) sorted by relevance

/net/mptcp/
Dtoken_test.c6 static struct mptcp_subflow_request_sock *build_req_sock(struct kunit *test) in build_req_sock() argument
10 req = kunit_kzalloc(test, sizeof(struct mptcp_subflow_request_sock), in build_req_sock()
12 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, req); in build_req_sock()
18 static void mptcp_token_test_req_basic(struct kunit *test) in mptcp_token_test_req_basic() argument
20 struct mptcp_subflow_request_sock *req = build_req_sock(test); in mptcp_token_test_req_basic()
23 KUNIT_ASSERT_EQ(test, 0, in mptcp_token_test_req_basic()
25 KUNIT_EXPECT_NE(test, 0, (int)req->token); in mptcp_token_test_req_basic()
26 KUNIT_EXPECT_PTR_EQ(test, null_msk, mptcp_token_get_sock(&init_net, req->token)); in mptcp_token_test_req_basic()
32 static struct inet_connection_sock *build_icsk(struct kunit *test) in build_icsk() argument
36 icsk = kunit_kzalloc(test, sizeof(struct inet_connection_sock), in build_icsk()
[all …]
Dcrypto_test.c33 static void mptcp_crypto_test_basic(struct kunit *test) in mptcp_crypto_test_basic() argument
56 KUNIT_EXPECT_STREQ(test, &hmac_hex[0], tests[i].result); in mptcp_crypto_test_basic()
DKconfig31 Only useful for kernel devs running KUnit test harness and are not
/net/handshake/
Dhandshake-test.c127 static void handshake_req_alloc_case(struct kunit *test) in handshake_req_alloc_case() argument
129 const struct handshake_req_alloc_test_param *param = test->param_value; in handshake_req_alloc_case()
139 KUNIT_EXPECT_NOT_NULL(test, result); in handshake_req_alloc_case()
141 KUNIT_EXPECT_NULL(test, result); in handshake_req_alloc_case()
146 static void handshake_req_submit_test1(struct kunit *test) in handshake_req_submit_test1() argument
154 KUNIT_ASSERT_EQ(test, err, 0); in handshake_req_submit_test1()
160 KUNIT_EXPECT_EQ(test, result, -EINVAL); in handshake_req_submit_test1()
165 static void handshake_req_submit_test2(struct kunit *test) in handshake_req_submit_test2() argument
172 KUNIT_ASSERT_NOT_NULL(test, req); in handshake_req_submit_test2()
178 KUNIT_EXPECT_EQ(test, result, -EINVAL); in handshake_req_submit_test2()
[all …]
/net/core/
Ddev_addr_lists_test.c34 static int dev_addr_test_init(struct kunit *test) in dev_addr_test_init() argument
41 KUNIT_ASSERT_TRUE(test, !!netdev); in dev_addr_test_init()
43 test->priv = netdev; in dev_addr_test_init()
49 KUNIT_FAIL(test, "Can't register netdev %d", err); in dev_addr_test_init()
56 static void dev_addr_test_exit(struct kunit *test) in dev_addr_test_exit() argument
58 struct net_device *netdev = test->priv; in dev_addr_test_exit()
65 static void dev_addr_test_basic(struct kunit *test) in dev_addr_test_basic() argument
67 struct net_device *netdev = test->priv; in dev_addr_test_basic()
70 KUNIT_EXPECT_TRUE(test, !!netdev->dev_addr); in dev_addr_test_basic()
74 KUNIT_EXPECT_MEMEQ(test, netdev->dev_addr, addr, sizeof(addr)); in dev_addr_test_basic()
[all …]
/net/sunrpc/auth_gss/
Dgss_krb5_test.c43 static void kdf_case(struct kunit *test) in kdf_case() argument
45 const struct gss_krb5_test_param *param = test->param_value; in kdf_case()
53 kunit_skip(test, "Encryption type is not available"); in kdf_case()
55 derivedkey.data = kunit_kzalloc(test, param->expected_result->len, in kdf_case()
57 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, derivedkey.data); in kdf_case()
63 KUNIT_ASSERT_EQ(test, err, 0); in kdf_case()
66 KUNIT_EXPECT_EQ_MSG(test, in kdf_case()
72 static void checksum_case(struct kunit *test) in checksum_case() argument
74 const struct gss_krb5_test_param *param = test->param_value; in checksum_case()
87 kunit_skip(test, "Encryption type is not available"); in checksum_case()
[all …]
Dsvcauth_gss.c814 struct auth_domain *test; in svcauth_gss_register_pseudoflavor() local
827 test = auth_domain_lookup(name, &new->h); in svcauth_gss_register_pseudoflavor()
828 if (test != &new->h) { in svcauth_gss_register_pseudoflavor()
832 auth_domain_put(test); in svcauth_gss_register_pseudoflavor()
835 return test; in svcauth_gss_register_pseudoflavor()
/net/mctp/test/
Droute-test.c63 static void mctp_test_route_destroy(struct kunit *test, in mctp_test_route_destroy() argument
77 KUNIT_ASSERT_EQ_MSG(test, refs, 1, "route ref imbalance"); in mctp_test_route_destroy()
129 static void mctp_test_fragment(struct kunit *test) in mctp_test_fragment() argument
138 params = test->param_value; in mctp_test_fragment()
148 KUNIT_ASSERT_TRUE(test, skb); in mctp_test_fragment()
151 KUNIT_ASSERT_TRUE(test, rt); in mctp_test_fragment()
154 KUNIT_EXPECT_FALSE(test, rc); in mctp_test_fragment()
158 KUNIT_EXPECT_EQ(test, n, params->n_frags); in mctp_test_fragment()
178 KUNIT_EXPECT_EQ(test, hdr2->ver, hdr.ver); in mctp_test_fragment()
179 KUNIT_EXPECT_EQ(test, hdr2->src, hdr.src); in mctp_test_fragment()
[all …]
/net/bpf/
Dtest_run.c440 void __user *data_out = u64_to_user_ptr(kattr->test.data_out); in bpf_test_finish()
447 if (kattr->test.data_size_out && in bpf_test_finish()
448 copy_size > kattr->test.data_size_out) { in bpf_test_finish()
449 copy_size = kattr->test.data_size_out; in bpf_test_finish()
489 if (copy_to_user(&uattr->test.data_size_out, &size, sizeof(size))) in bpf_test_finish()
491 if (copy_to_user(&uattr->test.retval, &retval, sizeof(retval))) in bpf_test_finish()
493 if (copy_to_user(&uattr->test.duration, &duration, sizeof(duration))) in bpf_test_finish()
629 void __user *data_in = u64_to_user_ptr(kattr->test.data_in); in BTF_ID_FLAGS()
660 if (kattr->test.flags || kattr->test.cpu || kattr->test.batch_size) in bpf_prog_test_run_tracing()
691 if (copy_to_user(&uattr->test.retval, &retval, sizeof(retval))) in bpf_prog_test_run_tracing()
[all …]
Dbpf_dummy_struct_ops.c28 size_in = kattr->test.ctx_size_in; in dummy_ops_init_args()
36 ctx_in = u64_to_user_ptr(kattr->test.ctx_in); in dummy_ops_init_args()
65 dummy_ops_test_ret_fn test = (void *)image; in dummy_ops_call_op() local
71 return test(state, args->args[1], args->args[2], in dummy_ops_call_op()
133 if (put_user(prog_ret, &uattr->test.retval)) in bpf_struct_ops_test_run()
/net/bridge/
Dbr_mrp_netlink.c209 struct br_mrp_start_test test; in br_mrp_start_test_parse() local
226 memset(&test, 0x0, sizeof(test)); in br_mrp_start_test_parse()
228 test.ring_id = nla_get_u32(tb[IFLA_BRIDGE_MRP_START_TEST_RING_ID]); in br_mrp_start_test_parse()
229 test.interval = nla_get_u32(tb[IFLA_BRIDGE_MRP_START_TEST_INTERVAL]); in br_mrp_start_test_parse()
230 test.max_miss = nla_get_u32(tb[IFLA_BRIDGE_MRP_START_TEST_MAX_MISS]); in br_mrp_start_test_parse()
231 test.period = nla_get_u32(tb[IFLA_BRIDGE_MRP_START_TEST_PERIOD]); in br_mrp_start_test_parse()
232 test.monitor = false; in br_mrp_start_test_parse()
235 test.monitor = in br_mrp_start_test_parse()
238 return br_mrp_start_test(br, &test); in br_mrp_start_test_parse()
329 struct br_mrp_start_in_test test; in br_mrp_start_in_test_parse() local
[all …]
Dbr_mrp_switchdev.c106 struct switchdev_obj_ring_test_mrp test = { in br_mrp_switchdev_send_ring_test() local
119 return br_mrp_switchdev_port_obj(br, &test.obj, interval != 0); in br_mrp_switchdev_send_ring_test()
199 struct switchdev_obj_in_test_mrp test = { in br_mrp_switchdev_send_in_test() local
211 return br_mrp_switchdev_port_obj(br, &test.obj, interval != 0); in br_mrp_switchdev_send_in_test()
Dbr_mrp.c703 struct br_mrp_start_test *test) in br_mrp_start_test() argument
705 struct br_mrp *mrp = br_mrp_find_id(br, test->ring_id); in br_mrp_start_test()
714 support = br_mrp_switchdev_send_ring_test(br, mrp, test->interval, in br_mrp_start_test()
715 test->max_miss, test->period, in br_mrp_start_test()
716 test->monitor); in br_mrp_start_test()
723 mrp->test_interval = test->interval; in br_mrp_start_test()
724 mrp->test_end = jiffies + usecs_to_jiffies(test->period); in br_mrp_start_test()
725 mrp->test_max_miss = test->max_miss; in br_mrp_start_test()
726 mrp->test_monitor = test->monitor; in br_mrp_start_test()
729 usecs_to_jiffies(test->interval)); in br_mrp_start_test()
Dbr_private_mrp.h75 int br_mrp_start_test(struct net_bridge *br, struct br_mrp_start_test *test);
79 struct br_mrp_start_in_test *test);
/net/bluetooth/
DKconfig129 When the Bluetooth subsystem is built as module, then the test
131 subsystem is compiled into the kernel image, then the test cases
135 bool "ECDH test cases"
138 Run test cases for ECDH cryptographic functionality used by the
142 bool "SMP test cases"
145 Run test cases for SMP cryptographic functionality, including both
/net/rxrpc/
DKconfig71 tristate "RxRPC test service"
/net/ethtool/
Dioctl.c1901 struct ethtool_test test; in ethtool_self_test() local
1914 if (copy_from_user(&test, useraddr, sizeof(test))) in ethtool_self_test()
1917 test.len = test_len; in ethtool_self_test()
1923 ops->self_test(dev, &test, data); in ethtool_self_test()
1927 if (copy_to_user(useraddr, &test, sizeof(test))) in ethtool_self_test()
1929 useraddr += sizeof(test); in ethtool_self_test()
1930 if (copy_to_user(useraddr, data, array_size(test.len, sizeof(u64)))) in ethtool_self_test()
/net/sunrpc/
DKconfig84 kernel devs running KUnit test harness and are not for inclusion
/net/rds/
Dconnection.c76 #define rds_conn_info_set(var, test, suffix) do { \ argument
77 if (test) \
/net/devlink/
Dhealth.c1347 if (!reporter->ops->test) in devlink_nl_cmd_health_reporter_test_doit()
1350 return reporter->ops->test(reporter, info->extack); in devlink_nl_cmd_health_reporter_test_doit()
/net/
DKconfig90 kernel devs running KUnit test harness and are not for inclusion
/net/netfilter/
DKconfig1232 This match allows you to test and assign userspace-defined labels names
1678 test whether the results are in any of a set of specified ranges.