Lines Matching refs:test
147 static void gso_test_func(struct kunit *test) in gso_test_func() argument
156 tcase = test->param_value; in gso_test_func()
159 KUNIT_ASSERT_NOT_NULL(test, page); in gso_test_func()
161 KUNIT_ASSERT_NOT_NULL(test, skb); in gso_test_func()
170 KUNIT_ASSERT_NOT_NULL(test, page); in gso_test_func()
178 KUNIT_ASSERT_LE(test, pg_off, PAGE_SIZE); in gso_test_func()
193 KUNIT_ASSERT_NOT_NULL(test, page); in gso_test_func()
198 KUNIT_ASSERT_NOT_NULL(test, frag_skb); in gso_test_func()
231 KUNIT_FAIL(test, "segs error %pe", segs); in gso_test_func()
234 KUNIT_FAIL(test, "no segments"); in gso_test_func()
242 KUNIT_ASSERT_EQ(test, cur->len, sizeof(hdr) + tcase->segs[i]); in gso_test_func()
245 KUNIT_ASSERT_PTR_EQ(test, skb_mac_header(cur), cur->data); in gso_test_func()
246 KUNIT_ASSERT_PTR_EQ(test, skb_network_header(cur), cur->data + sizeof(hdr)); in gso_test_func()
249 KUNIT_ASSERT_EQ(test, memcmp(skb_mac_header(cur), hdr, sizeof(hdr)), 0); in gso_test_func()
253 KUNIT_ASSERT_PTR_EQ(test, cur, last); in gso_test_func()
258 KUNIT_ASSERT_EQ(test, i, tcase->nr_segs); in gso_test_func()
352 static void ip_tunnel_flags_test_run(struct kunit *test) in ip_tunnel_flags_test_run() argument
354 const struct ip_tunnel_flags_test *t = test->param_value; in ip_tunnel_flags_test_run()
364 KUNIT_ASSERT_EQ(test, t->exp_comp, in ip_tunnel_flags_test_run()
366 KUNIT_ASSERT_EQ(test, (__force u16)t->exp_val, in ip_tunnel_flags_test_run()
370 KUNIT_ASSERT_TRUE(test, __ipt_flag_op(bitmap_equal, exp, out)); in ip_tunnel_flags_test_run()