]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev/net: fix ReceivePacketSteeringCPUMask=disable assignment
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 2 Mar 2024 05:45:44 +0000 (14:45 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 2 Mar 2024 05:50:39 +0000 (14:50 +0900)
Follow-up for 0f30bf5886f839984df545df74e9658daf3533d2.

If 'mask' is newly allocated, previously the value was ignored.

src/udev/net/link-config.c

index 8eee527bbff5880b2f91db5423b7e250a28c7ba7..bb26f32974dd23cdbfbee026ccac8cb53b799336 100644 (file)
@@ -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,