MINOR: cfgparse: use hap_cpuset for parse_cpu_set
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 14 Apr 2021 14:16:03 +0000 (16:16 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 23 Apr 2021 14:06:49 +0000 (16:06 +0200)
commitc90932bc8ee97f100964e63cda773d10ed846579
treed1fe2eb03f553924683e8bd804710be3cf2f0998
parentf75c640f7b58de309daa2a95d99abd10ee5be494
MINOR: cfgparse: use hap_cpuset for parse_cpu_set

Replace the unsigned long parameter by a hap_cpuset. This allows to
address CPU with index greater than LONGBITS.

This function is used to parse the 'cpu-map' statement. However at the
moment, the result is casted back to a long to store it in the global
structure. The next step is to replace ulong in in cpu_map in the
global structure with hap_cpuset.
include/haproxy/cfgparse.h
src/cfgparse-global.c
src/cfgparse.c