numam-dpdk/examples/qos_sched
Megha Ajmera 9c9fad3dfa examples/qos_sched: fix core mask overflow
Masking of core mask was incorrect. Instead of using 1U for shifting, it
should be using 1LU as the result is assigned to uint64.

CID 375859: Potentially overflowing expression "1U << app_main_core" with
type "unsigned int" (32 bits, unsigned) is evaluated using 32-bit
arithmetic, and then used in a context that expects an expression of
type "uint64_t" (64 bits, unsigned).

Coverity issue: 375859
Fixes: de3cfa2c98 ("sched: initial import")
Cc: stable@dpdk.org

Signed-off-by: Megha Ajmera <megha.ajmera@intel.com>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
2022-02-25 10:39:26 +01:00
..
app_thread.c examples/qos_sched: add subport config flexibility 2019-10-25 17:53:26 +02:00
args.c examples/qos_sched: fix core mask overflow 2022-02-25 10:39:26 +01:00
cfg_file.c examples/qos_sched: support PIE congestion management 2021-11-04 15:43:24 +01:00
cfg_file.h examples/qos_sched: support PIE congestion management 2021-11-04 15:43:24 +01:00
cmdline.c fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
init.c sched: enable traffic class oversubscription unconditionally 2022-02-24 23:44:21 +01:00
main.c examples: add eal cleanup to examples 2021-04-21 20:21:25 +02:00
main.h examples/qos_sched: support PIE congestion management 2021-11-04 15:43:24 +01:00
Makefile examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
meson.build examples: reduce indentation in build files 2021-04-21 14:04:09 +02:00
profile_ov.cfg examples/qos_sched: fix subport configuration 2020-11-20 12:50:41 +01:00
profile.cfg examples/qos_sched: support PIE congestion management 2021-11-04 15:43:24 +01:00
stats.c sched: add 64-bit values 2019-10-25 18:07:26 +02:00