Currently, when configuring IRQ maps, we are using rte_zmalloc followed by an immediate rte_free. This is not needed as this memory is not being stored anywhere, so replace it with regular malloc/free.
Signed-off-by: Anatoly Burakov <[email protected]> --- drivers/net/intel/iavf/iavf_vchnl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/intel/iavf/iavf_vchnl.c b/drivers/net/intel/iavf/iavf_vchnl.c index af1f5fbfc0..d0cc8673e1 100644 --- a/drivers/net/intel/iavf/iavf_vchnl.c +++ b/drivers/net/intel/iavf/iavf_vchnl.c @@ -1295,7 +1295,7 @@ iavf_config_irq_map(struct iavf_adapter *adapter) len = sizeof(struct virtchnl_irq_map_info) + sizeof(struct virtchnl_vector_map) * vf->nb_msix; - map_info = rte_zmalloc("map_info", len, 0); + map_info = calloc(1, len); if (!map_info) return -ENOMEM; @@ -1319,7 +1319,7 @@ iavf_config_irq_map(struct iavf_adapter *adapter) if (err) PMD_DRV_LOG(ERR, "fail to execute command OP_CONFIG_IRQ_MAP"); - rte_free(map_info); + free(map_info); return err; } @@ -1337,7 +1337,7 @@ iavf_config_irq_map_lv(struct iavf_adapter *adapter, uint16_t num, len = sizeof(struct virtchnl_queue_vector_maps) + sizeof(struct virtchnl_queue_vector) * (num - 1); - map_info = rte_zmalloc("map_info", len, 0); + map_info = calloc(1, len); if (!map_info) return -ENOMEM; @@ -1360,7 +1360,7 @@ iavf_config_irq_map_lv(struct iavf_adapter *adapter, uint16_t num, if (err) PMD_DRV_LOG(ERR, "fail to execute command OP_MAP_QUEUE_VECTOR"); - rte_free(map_info); + free(map_info); return err; } -- 2.47.3

