Re: [net] rtnetlink: fix the wrong minimal dump size getting from rtnl_calcit()

2016-11-23 Thread David Miller
From: Zhang Shengju Date: Tue, 22 Nov 2016 14:14:28 +0800 > For RT netlink, calcit() function should return the minimal size for > netlink dump message. This will make sure that dump message for every > network device can be stored. > > Currently, rtnl_calcit() function doesn't account the size

Re: [net] rtnetlink: fix the wrong minimal dump size getting from rtnl_calcit()

2016-11-23 Thread Roopa Prabhu
On 11/21/16, 10:14 PM, Zhang Shengju wrote: > For RT netlink, calcit() function should return the minimal size for > netlink dump message. This will make sure that dump message for every > network device can be stored. > > Currently, rtnl_calcit() function doesn't account the size of header of > ne

[net] rtnetlink: fix the wrong minimal dump size getting from rtnl_calcit()

2016-11-21 Thread Zhang Shengju
For RT netlink, calcit() function should return the minimal size for netlink dump message. This will make sure that dump message for every network device can be stored. Currently, rtnl_calcit() function doesn't account the size of header of netlink message, this patch will fix it. Signed-off-by: