Lines Matching refs:segs
49 const unsigned int *segs;
58 .segs = (const unsigned int[]) { GSO_TEST_SIZE },
65 .segs = (const unsigned int[]) { GSO_TEST_SIZE, GSO_TEST_SIZE, 1 },
74 .segs = (const unsigned int[]) { GSO_TEST_SIZE, GSO_TEST_SIZE, 1 },
82 .segs = (const unsigned int[]) { GSO_TEST_SIZE, GSO_TEST_SIZE, 2 },
91 .segs = (const unsigned int[]) { 2 * GSO_TEST_SIZE, 3 },
101 .segs = (const unsigned int[]) { GSO_TEST_SIZE, GSO_TEST_SIZE, GSO_TEST_SIZE },
109 .segs = (const unsigned int[]) { GSO_TEST_SIZE, GSO_TEST_SIZE },
119 .segs = (const unsigned int[]) { GSO_TEST_SIZE, GSO_TEST_SIZE, GSO_TEST_SIZE, 3 },
133 .segs = (const unsigned int[]) { 100, 200, 300, 400 },
147 struct sk_buff *skb, *segs, *cur, *next, *last;
226 segs = skb_segment(skb, features);
227 if (IS_ERR(segs)) {
228 KUNIT_FAIL(test, "segs error %pe", segs);
230 } else if (!segs) {
235 last = segs->prev;
236 for (cur = segs, i = 0; cur; cur = next, i++) {
239 KUNIT_ASSERT_EQ(test, cur->len, sizeof(hdr) + tcase->segs[i]);
241 /* segs have skb->data pointing to the mac header */
245 /* header was copied to all segs */
248 /* last seg can be found through segs->prev pointer */