Lines Matching refs:skb_count
231 unsigned int skb_count; member
282 if (unlikely(!nc->skb_count)) { in napi_skb_cache_get()
283 nc->skb_count = kmem_cache_alloc_bulk(net_hotdata.skbuff_cache, in napi_skb_cache_get()
287 if (unlikely(!nc->skb_count)) { in napi_skb_cache_get()
293 skb = nc->skb_cache[--nc->skb_count]; in napi_skb_cache_get()
323 if (nc->skb_count >= n) in napi_skb_cache_get_bulk()
327 bulk = min(NAPI_SKB_CACHE_SIZE - nc->skb_count, NAPI_SKB_CACHE_BULK); in napi_skb_cache_get_bulk()
328 nc->skb_count += kmem_cache_alloc_bulk(net_hotdata.skbuff_cache, in napi_skb_cache_get_bulk()
330 &nc->skb_cache[nc->skb_count]); in napi_skb_cache_get_bulk()
331 if (likely(nc->skb_count >= n)) in napi_skb_cache_get_bulk()
337 n - nc->skb_count, &skbs[nc->skb_count]); in napi_skb_cache_get_bulk()
338 if (likely(nc->skb_count >= n)) in napi_skb_cache_get_bulk()
342 total -= n - nc->skb_count; in napi_skb_cache_get_bulk()
343 n = nc->skb_count; in napi_skb_cache_get_bulk()
346 for (u32 base = nc->skb_count - n, i = 0; i < n; i++) { in napi_skb_cache_get_bulk()
355 nc->skb_count -= n; in napi_skb_cache_get_bulk()
1210 unsigned int skb_count; member
1225 sa->skb_array[sa->skb_count++] = skb; in kfree_skb_add_bulk()
1227 if (unlikely(sa->skb_count == KFREE_SKB_BULK_SIZE)) { in kfree_skb_add_bulk()
1230 sa->skb_count = 0; in kfree_skb_add_bulk()
1239 sa.skb_count = 0; in kfree_skb_list_reason()
1252 if (sa.skb_count) in kfree_skb_list_reason()
1253 kmem_cache_free_bulk(net_hotdata.skbuff_cache, sa.skb_count, sa.skb_array); in kfree_skb_list_reason()
1425 nc->skb_cache[nc->skb_count++] = skb; in napi_skb_cache_put()
1427 if (unlikely(nc->skb_count == NAPI_SKB_CACHE_SIZE)) { in napi_skb_cache_put()
1434 nc->skb_count = NAPI_SKB_CACHE_HALF; in napi_skb_cache_put()