Lines Matching defs:frags
45 pgset "frags 5" packet will consist of 5 fragments
292 int frags = nfrags;
295 if (frags > MAX_SKB_FRAGS)
296 frags = MAX_SKB_FRAGS;
297 if (datalen > frags*PAGE_SIZE) {
298 skb_put(skb, datalen-frags*PAGE_SIZE);
299 datalen = frags*PAGE_SIZE;
305 skb_shinfo(skb)->frags[i].page = page;
306 skb_shinfo(skb)->frags[i].page_offset = 0;
307 skb_shinfo(skb)->frags[i].size = (datalen < PAGE_SIZE ? datalen : PAGE_SIZE);
308 datalen -= skb_shinfo(skb)->frags[i].size;
309 skb->len += skb_shinfo(skb)->frags[i].size;
310 skb->data_len += skb_shinfo(skb)->frags[i].size;
315 while (i < frags) {
321 rem = skb_shinfo(skb)->frags[i-1].size/2;
325 skb_shinfo(skb)->frags[i-1].size -= rem;
327 skb_shinfo(skb)->frags[i] = skb_shinfo(skb)->frags[i-1];
328 get_page(skb_shinfo(skb)->frags[i].page);
329 skb_shinfo(skb)->frags[i].page = skb_shinfo(skb)->frags[i-1].page;
330 skb_shinfo(skb)->frags[i].page_offset += skb_shinfo(skb)->frags[i-1].size;
331 skb_shinfo(skb)->frags[i].size = rem;
479 p += sprintf(p, "Params: count=%u pkt_size=%u frags %d ipg %u odev \"%s\" dst %s dstmac ",
601 if(!strcmp(name, "frags")) {
605 sprintf(pg_result, "OK: frags=%u", nfrags);