From: Yu Watanabe Date: Sat, 2 Mar 2024 05:45:44 +0000 (+0900) Subject: udev/net: fix ReceivePacketSteeringCPUMask=disable assignment X-Git-Tag: v256-rc1~666^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e66e053d469ed0be1d1cf98229d18d0939dc043;p=thirdparty%2Fsystemd.git udev/net: fix ReceivePacketSteeringCPUMask=disable assignment Follow-up for 0f30bf5886f839984df545df74e9658daf3533d2. If 'mask' is newly allocated, previously the value was ignored. --- diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c index 8eee527bbff..bb26f32974d 100644 --- a/src/udev/net/link-config.c +++ b/src/udev/net/link-config.c @@ -1397,12 +1397,10 @@ int config_parse_rps_cpu_mask( mask = allocated; } - if (streq(rvalue, "disable")) { + if (streq(rvalue, "disable")) cpu_set_reset(mask); - return 0; - } - if (streq(rvalue, "all")) { + else if (streq(rvalue, "all")) { r = cpu_mask_add_all(mask); if (r < 0) { log_syntax(unit, LOG_WARNING, filename, line, r,