summaryrefslogtreecommitdiff
path: root/src/core/load-fragment.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-10 17:03:00 +0100
committerLennart Poettering <lennart@poettering.net>2016-02-10 17:03:00 +0100
commit926db6521b16f5fbf9c532142fd243ee6cea4ca8 (patch)
tree28e2251855f8423da5c779f3d7eb327ba1045550 /src/core/load-fragment.c
parent688bb89de5de1d98284737e3c6e815c07a2d39c2 (diff)
parent50f48ad37aad99c54de4db34b07c3825cdedcf41 (diff)
Merge pull request #2574 from zonque/netclass-remove
cgroup: remove support for NetClass= directive
Diffstat (limited to 'src/core/load-fragment.c')
-rw-r--r--src/core/load-fragment.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c
index e0c318c110..b3dec7b8cc 100644
--- a/src/core/load-fragment.c
+++ b/src/core/load-fragment.c
@@ -3162,47 +3162,6 @@ int config_parse_blockio_bandwidth(
return 0;
}
-int config_parse_netclass(
- const char *unit,
- const char *filename,
- unsigned line,
- const char *section,
- unsigned section_line,
- const char *lvalue,
- int ltype,
- const char *rvalue,
- void *data,
- void *userdata) {
-
- CGroupContext *c = data;
- unsigned v;
- int r;
-
- assert(filename);
- assert(lvalue);
- assert(rvalue);
-
- if (streq(rvalue, "auto")) {
- c->netclass_type = CGROUP_NETCLASS_TYPE_AUTO;
- return 0;
- }
-
- r = safe_atou32(rvalue, &v);
- if (r < 0) {
- log_syntax(unit, LOG_ERR, filename, line, r, "Netclass '%s' invalid. Ignoring.", rvalue);
- return 0;
- }
-
- if (v > CGROUP_NETCLASS_FIXED_MAX)
- log_syntax(unit, LOG_ERR, filename, line, 0,
- "Fixed netclass %" PRIu32 " out of allowed range (0-%d). Applying anyway.", v, (uint32_t) CGROUP_NETCLASS_FIXED_MAX);
-
- c->netclass_id = v;
- c->netclass_type = CGROUP_NETCLASS_TYPE_FIXED;
-
- return 0;
-}
-
DEFINE_CONFIG_PARSE_ENUM(config_parse_job_mode, job_mode, JobMode, "Failed to parse job mode");
int config_parse_job_mode_isolate(