···171171172172/*173173 * skb should fit one page. This choice is good for headerless malloc.174174+ * But we should limit to 8K so that userspace does not have to175175+ * use enormous buffer sizes on recvmsg() calls just to avoid176176+ * MSG_TRUNC when PAGE_SIZE is very large.174177 */175175-#define NLMSG_GOODORDER 0176176-#define NLMSG_GOODSIZE (SKB_MAX_ORDER(0, NLMSG_GOODORDER))178178+#if PAGE_SIZE < 8192UL179179+#define NLMSG_GOODSIZE SKB_WITH_OVERHEAD(PAGE_SIZE)180180+#else181181+#define NLMSG_GOODSIZE SKB_WITH_OVERHEAD(8192UL)182182+#endif183183+177184#define NLMSG_DEFAULT_SIZE (NLMSG_GOODSIZE - NLMSG_HDRLEN)178185179186