mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
udev/net: fix ReceivePacketSteeringCPUMask=disable assignment
Follow-up for 0f30bf5886
.
If 'mask' is newly allocated, previously the value was ignored.
This commit is contained in:
parent
5bafe8d1e7
commit
7e66e053d4
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user