]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network/vlan: drop unnecessary restriction for QoS mapping
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 24 May 2023 02:02:36 +0000 (11:02 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 24 May 2023 02:02:39 +0000 (11:02 +0900)
Fixes #27460.

src/network/netdev/vlan.c

index a3d961dac3ca4ac913aa7f7d642f8d79d466bab5..d61e9486abc47917c23b8cdb0d3378361977eb29 100644 (file)
@@ -165,11 +165,6 @@ int config_parse_vlan_qos_maps(
                         continue;
                 }
 
-                if (m->to > m->from || m->to == 0 || m->from == 0) {
-                        log_syntax(unit, LOG_WARNING, filename, line, 0, "Invalid %s, ignoring: %s", lvalue, w);
-                        continue;
-                }
-
                 r = set_ensure_consume(s, &vlan_qos_maps_hash_ops, TAKE_PTR(m));
                 if (r < 0) {
                         log_syntax(unit, LOG_WARNING, filename, line, r, "Failed to store %s, ignoring: %s", lvalue, w);