]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/async/dpdk: Fix the overflow while parsing dpdk coremask
authorChunsong Feng <fengchunsong@huawei.com>
Fri, 29 Nov 2019 05:00:34 +0000 (13:00 +0800)
committerluo rixin <luorixin@huawei.com>
Thu, 19 Dec 2019 00:59:04 +0000 (08:59 +0800)
commit775244af0d2ae1ff6df671f106672c711e3fa7e8
tree9797fc3fa374b19e935d0c7c43d5632ebd1e88c1
parent656c8e8049c2c1acd363143c842c2edf1fe09b64
msg/async/dpdk: Fix the overflow while parsing dpdk coremask

coremask supports up to 256 bits in DPDK19.05, using stoull in
dpdk::eal:init limits coremask up to 64 bits. Parse coremask by hex
character from low to high.

Fixes: https://tracker.ceph.com/issues/43044
Signed-off-by: Hu Ye <yehu5@huawei.com>
Signed-off-by: Chunsong Feng <fengchunsong@huawei.com>
Signed-off-by: luo rixin <luorixin@huawei.com>
src/msg/async/dpdk/dpdk_rte.cc