net/nfp: fix two bugs of error process logic
Checks
Commit Message
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.zhang@corigine.com
Cc: stable@dpdk.org
Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Peng Zhang <peng.zhang@corigine.com>
---
drivers/net/nfp/nfp_ethdev.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -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;
}
/*