Skip to content

Commit

Permalink
network: bump netlink receive buffer size to 128M
Browse files Browse the repository at this point in the history
Prompted by #14417.
  • Loading branch information
yuwata authored and poettering committed Jan 2, 2020
1 parent 1415734 commit 48d0248
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/network/networkd-manager.c
Expand Up @@ -38,8 +38,8 @@
#include "udev-util.h"
#include "virt.h"

/* use 8 MB for receive socket kernel queue. */
#define RCVBUF_SIZE (8*1024*1024)
/* use 128 MB for receive socket kernel queue. */
#define RCVBUF_SIZE (128*1024*1024)

static int log_message_warning_errno(sd_netlink_message *m, int err, const char *msg) {
const char *err_msg = NULL;
Expand Down
2 changes: 1 addition & 1 deletion units/systemd-networkd.socket
Expand Up @@ -15,7 +15,7 @@ DefaultDependencies=no
Before=sockets.target

[Socket]
ReceiveBuffer=8M
ReceiveBuffer=128M
ListenNetlink=route 1361
PassCredentials=yes

Expand Down

0 comments on commit 48d0248

Please sign in to comment.