Lines Matching refs:skb_count

229 	unsigned int skb_count;  member
280 if (unlikely(!nc->skb_count)) { in napi_skb_cache_get()
281 nc->skb_count = kmem_cache_alloc_bulk(net_hotdata.skbuff_cache, in napi_skb_cache_get()
285 if (unlikely(!nc->skb_count)) { in napi_skb_cache_get()
291 skb = nc->skb_cache[--nc->skb_count]; in napi_skb_cache_get()
321 if (nc->skb_count >= n) in napi_skb_cache_get_bulk()
325 bulk = min(NAPI_SKB_CACHE_SIZE - nc->skb_count, NAPI_SKB_CACHE_BULK); in napi_skb_cache_get_bulk()
326 nc->skb_count += kmem_cache_alloc_bulk(net_hotdata.skbuff_cache, in napi_skb_cache_get_bulk()
328 &nc->skb_cache[nc->skb_count]); in napi_skb_cache_get_bulk()
329 if (likely(nc->skb_count >= n)) in napi_skb_cache_get_bulk()
335 n - nc->skb_count, &skbs[nc->skb_count]); in napi_skb_cache_get_bulk()
336 if (likely(nc->skb_count >= n)) in napi_skb_cache_get_bulk()
340 total -= n - nc->skb_count; in napi_skb_cache_get_bulk()
341 n = nc->skb_count; in napi_skb_cache_get_bulk()
344 for (u32 base = nc->skb_count - n, i = 0; i < n; i++) { in napi_skb_cache_get_bulk()
353 nc->skb_count -= n; in napi_skb_cache_get_bulk()
1221 unsigned int skb_count; member
1236 sa->skb_array[sa->skb_count++] = skb; in kfree_skb_add_bulk()
1238 if (unlikely(sa->skb_count == KFREE_SKB_BULK_SIZE)) { in kfree_skb_add_bulk()
1241 sa->skb_count = 0; in kfree_skb_add_bulk()
1250 sa.skb_count = 0; in kfree_skb_list_reason()
1263 if (sa.skb_count) in kfree_skb_list_reason()
1264 kmem_cache_free_bulk(net_hotdata.skbuff_cache, sa.skb_count, sa.skb_array); in kfree_skb_list_reason()
1436 nc->skb_cache[nc->skb_count++] = skb; in napi_skb_cache_put()
1438 if (unlikely(nc->skb_count == NAPI_SKB_CACHE_SIZE)) { in napi_skb_cache_put()
1445 nc->skb_count = NAPI_SKB_CACHE_HALF; in napi_skb_cache_put()