linux/Documentation/userspace-api/netlink
Konstantin Shabanov 55834f0d74 docs: netlink: Correct buffer sizing info
Update the docs to match the code (include/linux/netlink.h):

  /*
   *	skb should fit one page. This choice is good for headerless malloc.
   *	But we should limit to 8K so that userspace does not have to
   *	use enormous buffer sizes on recvmsg() calls just to avoid
   *	MSG_TRUNC when PAGE_SIZE is very large.
  */
  #if PAGE_SIZE < 8192UL
  #define NLMSG_GOODSIZE	SKB_WITH_OVERHEAD(PAGE_SIZE)
  #else
  #define NLMSG_GOODSIZE	SKB_WITH_OVERHEAD(8192UL)
  #endif

Signed-off-by: Konstantin Shabanov <mail@etehtsea.me>
Link: https://patch.msgid.link/20260512103101.1076173-1-mail@etehtsea.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-05-15 15:52:18 -07:00
..
c-code-gen.rst ynl: support enum-cnt-name attribute in legacy definitions 2024-12-05 12:03:03 -08:00
genetlink-legacy.rst ynl: support binary and integer sub-type for indexed-array 2024-04-05 22:32:49 -07:00
index.rst docs: uapi: netlink: update netlink specs link 2025-08-12 07:47:30 +02:00
intro-specs.rst docs: netlink: Couple of intro-specs documentation fixes 2025-11-06 14:50:59 -08:00
intro.rst docs: netlink: Correct buffer sizing info 2026-05-15 15:52:18 -07:00
netlink-raw.rst docs: netlink: netlink-raw.rst: use :ref: instead of :doc: 2025-08-12 07:47:30 +02:00
specs.rst docs: uapi: netlink: update netlink specs link 2025-08-12 07:47:30 +02:00