mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
network: refuse to set 0 for rx or tx queue
Man page says that the valid value is 1-4096.
This commit is contained in:
parent
0b5dc24953
commit
f7d0ea5b6f
@ -1221,7 +1221,7 @@ int config_parse_rx_tx_queues(
|
||||
log_syntax(unit, LOG_WARNING, filename, line, r, "Failed to parse %s=, ignoring assignment: %s.", lvalue, rvalue);
|
||||
return 0;
|
||||
}
|
||||
if (k > 4096) {
|
||||
if (k == 0 || k > 4096) {
|
||||
log_syntax(unit, LOG_WARNING, filename, line, 0, "Invalid %s=, ignoring assignment: %s.", lvalue, rvalue);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user