mirror of
https://github.com/torvalds/linux
synced 2026-07-21 17:50:43 +09:00
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>