Lines Matching refs:segs
52 const unsigned int *segs; member
61 .segs = (const unsigned int[]) { GSO_TEST_SIZE },
68 .segs = (const unsigned int[]) { GSO_TEST_SIZE, GSO_TEST_SIZE, 1 },
77 .segs = (const unsigned int[]) { GSO_TEST_SIZE, GSO_TEST_SIZE, 1 },
85 .segs = (const unsigned int[]) { GSO_TEST_SIZE, GSO_TEST_SIZE, 2 },
94 .segs = (const unsigned int[]) { 2 * GSO_TEST_SIZE, 3 },
104 .segs = (const unsigned int[]) { GSO_TEST_SIZE, GSO_TEST_SIZE, GSO_TEST_SIZE },
112 .segs = (const unsigned int[]) { GSO_TEST_SIZE, GSO_TEST_SIZE },
122 .segs = (const unsigned int[]) { GSO_TEST_SIZE, GSO_TEST_SIZE, GSO_TEST_SIZE, 3 },
136 .segs = (const unsigned int[]) { 100, 200, 300, 400 },
150 struct sk_buff *skb, *segs, *cur, *next, *last; in gso_test_func() local
229 segs = skb_segment(skb, features); in gso_test_func()
230 if (IS_ERR(segs)) { in gso_test_func()
231 KUNIT_FAIL(test, "segs error %pe", segs); in gso_test_func()
233 } else if (!segs) { in gso_test_func()
238 last = segs->prev; in gso_test_func()
239 for (cur = segs, i = 0; cur; cur = next, i++) { in gso_test_func()
242 KUNIT_ASSERT_EQ(test, cur->len, sizeof(hdr) + tcase->segs[i]); in gso_test_func()