Re: [PATCH net-next v3] netlink: Rightsize IFLA_AF_SPEC size calculation

2015-10-21 Thread David Miller
From: Ronen Arad Date: Mon, 19 Oct 2015 09:23:28 -0700 > if_nlmsg_size() overestimates the minimum allocation size of netlink > dump request (when called from rtnl_calcit()) or the size of the > message (when called from rtnl_getlink()). This is because > ext_filter_mask is not supported by rtnl_

Re: [PATCH net-next v3] netlink: Rightsize IFLA_AF_SPEC size calculation

2015-10-20 Thread Samudrala, Sridhar
On 10/19/2015 9:23 AM, Ronen Arad wrote: if_nlmsg_size() overestimates the minimum allocation size of netlink dump request (when called from rtnl_calcit()) or the size of the message (when called from rtnl_getlink()). This is because ext_filter_mask is not supported by rtnl_link_get_af_size() and

[PATCH net-next v3] netlink: Rightsize IFLA_AF_SPEC size calculation

2015-10-19 Thread Ronen Arad
if_nlmsg_size() overestimates the minimum allocation size of netlink dump request (when called from rtnl_calcit()) or the size of the message (when called from rtnl_getlink()). This is because ext_filter_mask is not supported by rtnl_link_get_af_size() and rtnl_link_get_size(). The over-estimation

Re: [PATCH net-next v3] netlink: Rightsize IFLA_AF_SPEC size calculation

2015-10-15 Thread David Miller
From: Ronen Arad Date: Wed, 14 Oct 2015 22:50:04 -0700 > if_nlmsg_size() overestimates the minimum allocation size of netlink > dump request (when called from rtnl_calcit()) or the size of the > message (when called from rtnl_getlink()). This is because > ext_filter_mask is not supported by rtnl_

[PATCH net-next v3] netlink: Rightsize IFLA_AF_SPEC size calculation

2015-10-14 Thread Ronen Arad
if_nlmsg_size() overestimates the minimum allocation size of netlink dump request (when called from rtnl_calcit()) or the size of the message (when called from rtnl_getlink()). This is because ext_filter_mask is not supported by rtnl_link_get_af_size() and rtnl_link_get_size(). The over-estimation