]> git.proxmox.com Git - mirror_iproute2.git/commit
libnetlink: Double the dump buffer size
authorPhil Sutter <phil@nwl.cc>
Fri, 4 Mar 2016 18:57:28 +0000 (19:57 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 6 Mar 2016 20:51:18 +0000 (12:51 -0800)
commit72b365e8e0fd5efe1d5c05d04c25950736635cfb
treeac191a69ee2d9227a9470fb63aa4c68ba2c8aa8d
parentdd81ee04edc3461653f1254084e2294083ccdca6
libnetlink: Double the dump buffer size

There have been reports about 'ip addr' printing "Message truncated" on
systems with large numbers of VFs. Although I haven't been able to get
my hands on hardware suitable to reproduce this, increasing the dump
buffer has been reported to resolve the issue. For want of a better
idea, just double the buffer size to 32k.

Feels like this opportunistic buffer size selection is rather
workarounding a design flaw in libnetlink or maybe even the netlink
protocol itself.

Signed-off-by: Phil Sutter <phil@nwl.cc>
lib/libnetlink.c