Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
libteam
increase_netlink_recv_buffer.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File increase_netlink_recv_buffer.patch of Package libteam
Index: libteam-1.21/libteam/libteam.c =================================================================== --- libteam-1.21.orig/libteam/libteam.c +++ libteam-1.21/libteam/libteam.c @@ -546,6 +546,11 @@ int team_destroy(struct team_handle *th) #endif /* \endcond */ +/* libnl uses default 32k socket receive buffer size, + * which can get too small. Use 192k for all sockets. + */ +#define NETLINK_RCVBUF 196608 + /** * @param th libteam library context * @param ifindex team device interface index @@ -589,12 +594,12 @@ int team_init(struct team_handle *th, ui return -errno; } - err = nl_socket_set_buffer_size(th->nl_sock, 98304, 0); + err = nl_socket_set_buffer_size(th->nl_sock, NETLINK_RCVBUF, 0); if (err) { err(th, "Failed to set buffer size of netlink sock."); return -nl2syserr(err); } - err = nl_socket_set_buffer_size(th->nl_sock_event, 98304, 0); + err = nl_socket_set_buffer_size(th->nl_sock_event, NETLINK_RCVBUF, 0); if (err) { err(th, "Failed to set buffer size of netlink event sock."); return -nl2syserr(err);
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