Setting the socket buffer size to 8KiB is completely stupid.
It seems I originally though it'd be smaller by default for
some reason, the real issue there was something else but we
never got rid of this setting. Remove it.
Reviewed-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://patch.msgid.link/20250828130632.1170501-2-johannes@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
{
nl_handle_destroy(h);
}
-
-static inline int nl_socket_set_buffer_size(struct nl_sock *sk,
- int rxbuf, int txbuf)
-{
- return nl_set_buffer_size(sk, rxbuf, txbuf);
-}
#endif /* CONFIG_LIBNL20 && CONFIG_LIBNL30 */
int iw_debug = 0;
goto out_handle_destroy;
}
- nl_socket_set_buffer_size(state->nl_sock, 8192, 8192);
-
/* try to set NETLINK_EXT_ACK to 1, ignoring errors */
err = 1;
setsockopt(nl_socket_get_fd(state->nl_sock), SOL_NETLINK,