Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
iproute2.5568
iplink-double-the-buffer-size-also-in-iplink_ge...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File iplink-double-the-buffer-size-also-in-iplink_get.patch of Package iproute2.5568
From: Michal Kubecek <mkubecek@suse.cz> Date: Fri, 1 Sep 2017 17:55:04 +0200 Subject: iplink: double the buffer size also in iplink_get() Patch-mainline: Submitted - 2017-09-01 References: bsc#1056261 Commit 72b365e8e0fd ("libnetlink: Double the dump buffer size") increased the buffer size for "ip link show" command to 32 KB to handle NICs with large number of VFs. With "dev" filter, a different code path is taken and iplink_get() still uses only 16 KB buffer. The size of 32768 is not very future-proof as NICs supporting 120-128 VFs are already in use so that single RTM_NEWLINK message in the dump can exceed 30000 bytes. But it's what rtnl_talk() and rtnl_dump_filter_l() use so let's be consistent. Once this proves insufficient, all three sizes should be increased. Signed-off-by: Michal Kubecek <mkubecek@suse.cz> --- ip/iplink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip/iplink.c b/ip/iplink.c index 89b2b564c154..ce0b28708ddd 100644 --- a/ip/iplink.c +++ b/ip/iplink.c @@ -820,7 +820,7 @@ int iplink_get(unsigned int flags, char *name, __u32 filt_mask) struct iplink_req req; struct { struct nlmsghdr n; - char buf[16384]; + char buf[32768]; } answer; memset(&req, 0, sizeof(req)); -- 2.14.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor