mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-08-13 18:44:04 +00:00
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>
This commit is contained in:
parent
dd81ee04ed
commit
72b365e8e0
@ -223,7 +223,7 @@ int rtnl_dump_filter_l(struct rtnl_handle *rth,
|
||||
.msg_iov = &iov,
|
||||
.msg_iovlen = 1,
|
||||
};
|
||||
char buf[16384];
|
||||
char buf[32768];
|
||||
int dump_intr = 0;
|
||||
|
||||
iov.iov_base = buf;
|
||||
|
Loading…
Reference in New Issue
Block a user