Lines Matching refs:tcase
151 const struct gso_test_case *tcase; in gso_test_func() local
156 tcase = test->param_value; in gso_test_func()
160 skb = build_skb(page_address(page), sizeof(hdr) + tcase->linear_len + shinfo_size); in gso_test_func()
162 __skb_put(skb, sizeof(hdr) + tcase->linear_len); in gso_test_func()
166 if (tcase->nr_frags) { in gso_test_func()
171 page_ref_add(page, tcase->nr_frags - 1); in gso_test_func()
173 for (i = 0; i < tcase->nr_frags; i++) { in gso_test_func()
174 skb_fill_page_desc(skb, i, page, pg_off, tcase->frags[i]); in gso_test_func()
175 pg_off += tcase->frags[i]; in gso_test_func()
185 if (tcase->frag_skbs) { in gso_test_func()
189 for (i = 0; i < tcase->nr_frag_skbs; i++) { in gso_test_func()
195 frag_size = tcase->frag_skbs[i]; in gso_test_func()
215 if (tcase->id == GSO_TEST_GSO_BY_FRAGS) in gso_test_func()
220 if (tcase->id == GSO_TEST_GSO_PARTIAL) in gso_test_func()
226 if (tcase->id == GSO_TEST_FRAG_LIST_NON_UNIFORM) in gso_test_func()
242 KUNIT_ASSERT_EQ(test, cur->len, sizeof(hdr) + tcase->segs[i]); in gso_test_func()
258 KUNIT_ASSERT_EQ(test, i, tcase->nr_segs); in gso_test_func()