From 2c1d03ac383c1a4380aa540a29d95c1b788d2439 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Thu, 21 Sep 2017 14:36:12 +0200 Subject: ipcpd: Use the kernel scheduler for QoS This revises the sdu_scheduler of the normal IPCP to create a scheduler thread per QoS cube and let the kernel scheduler schedule them based on a priority. Priorities can be set at build time in a range of 0-100, which will be mapped onto a suitable priority for the kernel scheduler. The current scheduler policy is fixed to SCHED_RR since it is the most suitable scheduler defined by POSIX. --- src/ipcpd/config.h.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ipcpd/config.h.in') diff --git a/src/ipcpd/config.h.in b/src/ipcpd/config.h.in index 6fb409b7..04be22ba 100644 --- a/src/ipcpd/config.h.in +++ b/src/ipcpd/config.h.in @@ -36,7 +36,9 @@ #define IPCP_ADD_THREADS @IPCP_ADD_THREADS@ /* normal IPCP */ -#define IPCP_SCHED_THREADS @IPCP_SCHED_THREADS@ +#define QOS_PRIO_BE @IPCP_QOS_CUBE_BE_PRIO@ +#define QOS_PRIO_VIDEO @IPCP_QOS_CUBE_VIDEO_PRIO@ +#define QOS_PRIO_VOICE @IPCP_QOS_CUBE_VOICE_PRIO@ #define PFT_SIZE @PFT_SIZE@ /* shim-udp */ -- cgit v1.2.3