Lines Matching defs:skb_count
232 unsigned int skb_count;
283 if (unlikely(!nc->skb_count)) {
284 nc->skb_count = kmem_cache_alloc_bulk(net_hotdata.skbuff_cache,
288 if (unlikely(!nc->skb_count)) {
294 skb = nc->skb_cache[--nc->skb_count];
324 if (nc->skb_count >= n)
328 bulk = min(NAPI_SKB_CACHE_SIZE - nc->skb_count, NAPI_SKB_CACHE_BULK);
329 nc->skb_count += kmem_cache_alloc_bulk(net_hotdata.skbuff_cache,
331 &nc->skb_cache[nc->skb_count]);
332 if (likely(nc->skb_count >= n))
338 n - nc->skb_count, &skbs[nc->skb_count]);
339 if (likely(nc->skb_count >= n))
343 total -= n - nc->skb_count;
344 n = nc->skb_count;
347 for (u32 base = nc->skb_count - n, i = 0; i < n; i++) {
356 nc->skb_count -= n;
1211 unsigned int skb_count;
1226 sa->skb_array[sa->skb_count++] = skb;
1228 if (unlikely(sa->skb_count == KFREE_SKB_BULK_SIZE)) {
1231 sa->skb_count = 0;
1240 sa.skb_count = 0;
1253 if (sa.skb_count)
1254 kmem_cache_free_bulk(net_hotdata.skbuff_cache, sa.skb_count, sa.skb_array);
1426 nc->skb_cache[nc->skb_count++] = skb;
1428 if (unlikely(nc->skb_count == NAPI_SKB_CACHE_SIZE)) {
1435 nc->skb_count = NAPI_SKB_CACHE_HALF;