> -----Original Message-----
> From: Xing, Beilei
> Sent: Friday, September 29, 2017 1:19 PM
> To: Wu, Jingjing <[email protected]>
> Cc: Chilikin, Andrey <[email protected]>; [email protected]
> Subject: [PATCH v6 2/8] net/i40e: update ptype and pctype info
>
> Update new packet type and new pctype info when downloading
> profile.
>
> Signed-off-by: Beilei Xing <[email protected]>
[......]
> + ret = rte_pmd_i40e_ptype_mapping_update(port_id, ptype_mapping,
> + ptype_num, 0);
> + if (ret) {
> + PMD_DRV_LOG(ERR, "Failed to update mapping table.");
> + rte_free(ptype_mapping);
> + rte_free(ptype);
> + return -1;
> + }
> +
> + rte_free(ptype_mapping);
> + rte_free(ptype);
> + return 0;
Minor comments, how about:
if (ret)
PMD_DRV_LOG(ERR, "Failed to update mapping table.");
rte_free(ptype_mapping);
rte_free(ptype);
return ret;
Reviewed-by: Jingjing Wu <[email protected]>