Re: [PATCH net-next v2] netlink: Trim skb to alloc size to avoid MSG_TRUNC

2015-10-18 Thread David Miller
From: Ronen Arad Date: Thu, 15 Oct 2015 01:55:17 -0700 > netlink_dump() allocates skb based on the calculated min_dump_alloc or > a per socket max_recvmsg_len. > min_alloc_size is maximum space required for any single netdev > attributes as calculated by rtnl_calcit(). > max_recvmsg_len tracks th

[PATCH net-next v2] netlink: Trim skb to alloc size to avoid MSG_TRUNC

2015-10-15 Thread Ronen Arad
netlink_dump() allocates skb based on the calculated min_dump_alloc or a per socket max_recvmsg_len. min_alloc_size is maximum space required for any single netdev attributes as calculated by rtnl_calcit(). max_recvmsg_len tracks the user provided buffer to netlink_recvmsg. It is capped at 16KiB. T