mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-08-09 06:14:34 +02:00
checksum-offloads.rst seems like a better place to render the checksum comment than skbuff.rst. Remove the stale references to sections in that comment (it no longer has A, B, C, D, E sections). Reviewed-by: Willem de Bruijn <willemb@google.com> Link: https://patch.msgid.link/20260526160151.2793354-10-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
32 lines
889 B
ReStructuredText
32 lines
889 B
ReStructuredText
.. SPDX-License-Identifier: GPL-2.0
|
|
|
|
struct sk_buff
|
|
==============
|
|
|
|
:c:type:`sk_buff` is the main networking structure representing
|
|
a packet.
|
|
|
|
Basic sk_buff geometry
|
|
----------------------
|
|
|
|
.. kernel-doc:: include/linux/skbuff.h
|
|
:doc: Basic sk_buff geometry
|
|
|
|
Shared skbs and skb clones
|
|
--------------------------
|
|
|
|
:c:member:`sk_buff.users` is a simple refcount allowing multiple entities
|
|
to keep a struct sk_buff alive. skbs with a ``sk_buff.users != 1`` are referred
|
|
to as shared skbs (see skb_shared()).
|
|
|
|
skb_clone() allows for fast duplication of skbs. None of the data buffers
|
|
get copied, but caller gets a new metadata struct (struct sk_buff).
|
|
&skb_shared_info.refcount indicates the number of skbs pointing at the same
|
|
packet data (i.e. clones).
|
|
|
|
dataref and headerless skbs
|
|
---------------------------
|
|
|
|
.. kernel-doc:: include/linux/skbuff.h
|
|
:doc: dataref and headerless skbs
|