From: Zhiqi Song songzhiqi1@huawei.com
modify members of struct wd_env_config_per_numa, ctx number's type should be u32 and node's should be int.
Signed-off-by: Zhiqi Song songzhiqi1@huawei.com Tested-by: Wenkai Lin linwenkai6@hisilicon.com --- include/wd_util.h | 14 +++----------- wd_util.c | 4 ++-- 2 files changed, 5 insertions(+), 13 deletions(-)
diff --git a/include/wd_util.h b/include/wd_util.h index 9ef2328..89016ab 100644 --- a/include/wd_util.h +++ b/include/wd_util.h @@ -53,17 +53,9 @@ struct wd_ctx_range {
struct wd_env_config_per_numa { /* Config begin */ - unsigned long node; - unsigned long sync_ctx_num; - unsigned long async_ctx_num; - /* - * Define which polling thread to poll each async ctx, polling thread - * number stars from 0. - * - * async_ctx_poll: 0, 0, 0, 1, 1, means polling thread 0 polls async - * ctx 0, 1, 2, polling thread 1 polls async ctx 3, 4. - */ - unsigned long *async_ctx_poll; + int node; + __u32 sync_ctx_num; + __u32 async_ctx_num;
/* * +---------+-----------------+---------------+ diff --git a/wd_util.c b/wd_util.c index a180451..3ce5f56 100644 --- a/wd_util.c +++ b/wd_util.c @@ -461,9 +461,9 @@ void dump_env_info(struct wd_env_config *config) continue;
ctx_table = config_numa->ctx_table; - WD_ERR("-> %s: %d: sync num: %lu\n", __func__, i, + WD_ERR("-> %s: %d: sync num: %u\n", __func__, i, config_numa->sync_ctx_num); - WD_ERR("-> %s: %d: async num: %lu\n", __func__, i, + WD_ERR("-> %s: %d: async num: %u\n", __func__, i, config_numa->async_ctx_num); for (j = 0; j < CTX_MODE_MAX; j++) for (k = 0; k < config_numa->op_type_num; k++) {