skbuff.h (736f16de75f9bb32d76f652cb66f04d1bc685057) skbuff.h (4b4f052e2d89c2eb7e13ee28ba9e85f8097aef3d)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Definitions for the 'struct sk_buff' memory handlers.
4 *
5 * Authors:
6 * Alan Cox, <gw4pts@gw4pts.ampr.org>
7 * Florian La Roche, <rzsfl@rz.uni-sb.de>
8 */

--- 410 unchanged lines hidden (view full) ---

419 SKB_DROP_REASON_SKB_UCOPY_FAULT, /* failed to copy data from
420 * user space, e.g., via
421 * zerocopy_sg_from_iter()
422 * or skb_orphan_frags_rx()
423 */
424 SKB_DROP_REASON_DEV_HDR, /* device driver specific
425 * header/metadata is invalid
426 */
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Definitions for the 'struct sk_buff' memory handlers.
4 *
5 * Authors:
6 * Alan Cox, <gw4pts@gw4pts.ampr.org>
7 * Florian La Roche, <rzsfl@rz.uni-sb.de>
8 */

--- 410 unchanged lines hidden (view full) ---

419 SKB_DROP_REASON_SKB_UCOPY_FAULT, /* failed to copy data from
420 * user space, e.g., via
421 * zerocopy_sg_from_iter()
422 * or skb_orphan_frags_rx()
423 */
424 SKB_DROP_REASON_DEV_HDR, /* device driver specific
425 * header/metadata is invalid
426 */
427 /* the device is not ready to xmit/recv due to any of its data
428 * structure that is not up/ready/initialized, e.g., the IFF_UP is
429 * not set, or driver specific tun->tfiles[txq] is not initialized
430 */
431 SKB_DROP_REASON_DEV_READY,
427 SKB_DROP_REASON_FULL_RING, /* ring buffer is full */
432 SKB_DROP_REASON_FULL_RING, /* ring buffer is full */
433 SKB_DROP_REASON_NOMEM, /* error due to OOM */
434 SKB_DROP_REASON_HDR_TRUNC, /* failed to trunc/extract the header
435 * from networking data, e.g., failed
436 * to pull the protocol header from
437 * frags via pskb_may_pull()
438 */
439 SKB_DROP_REASON_TAP_FILTER, /* dropped by (ebpf) filter directly
440 * attached to tun/tap, e.g., via
441 * TUNSETFILTEREBPF
442 */
443 SKB_DROP_REASON_TAP_TXFILTER, /* dropped by tx filter implemented
444 * at tun/tap, e.g., check_filter()
445 */
428 SKB_DROP_REASON_MAX,
429};
430
431/* To allow 64K frame to be packed as single skb without frag_list we
432 * require 64K/PAGE_SIZE pages plus 1 additional page to allow for
433 * buffers which do not start on a page boundary.
434 *
435 * Since GRO uses frags we allocate at least 16 regardless of page

--- 4552 unchanged lines hidden ---
446 SKB_DROP_REASON_MAX,
447};
448
449/* To allow 64K frame to be packed as single skb without frag_list we
450 * require 64K/PAGE_SIZE pages plus 1 additional page to allow for
451 * buffers which do not start on a page boundary.
452 *
453 * Since GRO uses frags we allocate at least 16 regardless of page

--- 4552 unchanged lines hidden ---