diff options
author | 2019-06-28 15:47:55 +0200 | |
---|---|---|
committer | 2019-08-28 08:28:08 +0000 | |
commit | 9ada1609d84cc954c9235e6bd056850c10dfccc5 (patch) | |
tree | be27eea2041420f194d87df7f6c8053e943dbe47 /VNFs/DPPD-PROX/prox_args.c | |
parent | cefc6fd66b13e3f3a7b9635a8bd474fd329e1d62 (diff) |
Add option to change scheduler policy to SCHED_RR and increase scheduler priority
Set "realtime scheduling=yes" option to change Linux scheduler policy
to SCHED_RR and increase the priority to the maximum possible for the policy.
Change-Id: I3ecef5cbc3816cf2b56364bb4e806ae5ac093c23
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
Diffstat (limited to 'VNFs/DPPD-PROX/prox_args.c')
-rw-r--r-- | VNFs/DPPD-PROX/prox_args.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/VNFs/DPPD-PROX/prox_args.c b/VNFs/DPPD-PROX/prox_args.c index d77eab1a..45996db8 100644 --- a/VNFs/DPPD-PROX/prox_args.c +++ b/VNFs/DPPD-PROX/prox_args.c @@ -1262,6 +1262,9 @@ static int get_core_cfg(unsigned sindex, char *str, void *data) return parse_int(&targ->byte_offset, pkey); } + if (STR_EQ(str, "realtime scheduling")) { + return parse_flag(&lconf->flags, LCONF_FLAG_SCHED_RR, pkey); + } if (STR_EQ(str, "name")) { return parse_str(lconf->name, pkey, sizeof(lconf->name)); } |