Re: [PATCH iproute2 0/2] malloc correct buff at run time

2017-09-08 Thread Michal Kubecek
On Fri, Sep 08, 2017 at 06:14:55PM +0800, Hangbin Liu wrote: > With commit 72b365e8e0fd ("libnetlink: Double the dump buffer size") and > 460c03f3f3cc ("iplink: double the buffer size also in iplink_get()"), we > extend the buffer size to avoid truncated message with large numbers of > VFs. But

[PATCH iproute2 0/2] malloc correct buff at run time

2017-09-08 Thread Hangbin Liu
With commit 72b365e8e0fd ("libnetlink: Double the dump buffer size") and 460c03f3f3cc ("iplink: double the buffer size also in iplink_get()"), we extend the buffer size to avoid truncated message with large numbers of VFs. But just as Michal said, this is not future-proof since the NIC number is