summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-manager.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-11-06 12:39:46 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-11-06 12:39:51 +0100
commiteba449fa81f645657a61ca3e8444aabfb2d858f0 (patch)
tree1d317fa6a83405f039d2abea7628f935ae9b51b8 /src/network/networkd-manager.c
parenttest: add test case for issue #29863 (diff)
downloadsystemd-eba449fa81f645657a61ca3e8444aabfb2d858f0.tar.xz
systemd-eba449fa81f645657a61ca3e8444aabfb2d858f0.zip
sd-device-monitor: unconditionally increase buffer size by sd_device_monitor_new()
As suggested at https://github.com/systemd/systemd/pull/29872#discussion_r1382932633: > socket memory is these days accounted to the process that owns a socket, > hence we shouldn't be too concerned that this might waste memory.
Diffstat (limited to 'src/network/networkd-manager.c')
-rw-r--r--src/network/networkd-manager.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c
index e02d0992b4..1ca1d7abe5 100644
--- a/src/network/networkd-manager.c
+++ b/src/network/networkd-manager.c
@@ -205,10 +205,6 @@ static int manager_connect_udev(Manager *m) {
if (r < 0)
return log_error_errno(r, "Failed to initialize device monitor: %m");
- r = sd_device_monitor_set_receive_buffer_size(m->device_monitor, RCVBUF_SIZE);
- if (r < 0)
- log_warning_errno(r, "Failed to increase buffer size for device monitor, ignoring: %m");
-
r = sd_device_monitor_filter_add_match_subsystem_devtype(m->device_monitor, "net", NULL);
if (r < 0)
return log_error_errno(r, "Could not add device monitor filter for net subsystem: %m");