Fix two bugs of error process logic. Fixes: 19bd7cce5705 ("net/nfp: support different configuration BAR size") Fixes: 636e133ec891 ("net/nfp: update Tx and Rx for multiple PF") Cc: peng.zh...@corigine.com Cc: sta...@dpdk.org
Signed-off-by: Chaoyong He <chaoyong...@corigine.com> Reviewed-by: Peng Zhang <peng.zh...@corigine.com> --- drivers/net/nfp/nfp_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/nfp/nfp_ethdev.c b/drivers/net/nfp/nfp_ethdev.c index b9cb9fc652..cbd1deffb4 100644 --- a/drivers/net/nfp/nfp_ethdev.c +++ b/drivers/net/nfp/nfp_ethdev.c @@ -2549,7 +2549,7 @@ nfp_pf_init(struct rte_pci_device *pci_dev) ret = nfp_net_vf_config_init(pf_dev); if (ret != 0) { PMD_INIT_LOG(ERR, "Failed to init VF config."); - goto vf_cfg_tbl_cleanup; + goto mac_stats_cleanup; } hw_priv->is_pf = true; @@ -2557,7 +2557,7 @@ nfp_pf_init(struct rte_pci_device *pci_dev) if (!nfp_net_recv_pkt_meta_check_register(hw_priv)) { PMD_INIT_LOG(ERR, "PF register meta check function failed."); ret = -EIO; - goto hw_priv_free; + goto vf_cfg_tbl_cleanup; } /* -- 2.43.5