1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Adapt CONFIG_NETPRIO_CGROUP in check-config.sh

Fixes: #15572

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
Qiang Huang 2015-08-14 14:38:48 +08:00
parent 650feb29f1
commit 6c4d4c70c6

View file

@ -191,11 +191,17 @@ if [ "$kernelMajor" -lt 3 ] || [ "$kernelMajor" -eq 3 -a "$kernelMinor" -le 18 ]
check_flags RESOURCE_COUNTERS check_flags RESOURCE_COUNTERS
fi fi
if [ "$kernelMajor" -lt 3 ] || [ "$kernelMajor" -eq 3 -a "$kernelMinor" -le 13 ]; then
netprio=NETPRIO_CGROUP
else
netprio=CGROUP_NET_PRIO
fi
flags=( flags=(
BLK_CGROUP IOSCHED_CFQ BLK_CGROUP IOSCHED_CFQ
CGROUP_PERF CGROUP_PERF
CGROUP_HUGETLB CGROUP_HUGETLB
NET_CLS_CGROUP NETPRIO_CGROUP NET_CLS_CGROUP $netprio
CFS_BANDWIDTH FAIR_GROUP_SCHED RT_GROUP_SCHED CFS_BANDWIDTH FAIR_GROUP_SCHED RT_GROUP_SCHED
) )
check_flags "${flags[@]}" check_flags "${flags[@]}"