summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAnoob Joseph <anoobj@marvell.com>2019-11-11 18:51:14 +0530
committerFerruh Yigit <ferruh.yigit@intel.com>2019-11-20 17:36:05 +0100
commitb26a63510a59e773353a0cb64cbde1b1bcfb410b (patch)
tree395b6e305f5e862a05a0f208790320b0834d7afb /drivers
parent53de676f8bfe3d4beca9ddd05538490ab273157d (diff)
downloaddpdk-b26a63510a59e773353a0cb64cbde1b1bcfb410b.zip
dpdk-b26a63510a59e773353a0cb64cbde1b1bcfb410b.tar.gz
dpdk-b26a63510a59e773353a0cb64cbde1b1bcfb410b.tar.xz
net/octeontx2: fix error handling after CQ init
After otx2_nix_register_cq_irqs() is called and the IRQs are setup, otx2_nix_unregister_cq_irqs() need to be called in the subsequent error exit paths. Fixes: d34db5ccbf30 ("net/octeontx2: fix driver reconfiguration") Cc: stable@dpdk.org Signed-off-by: Anoob Joseph <anoobj@marvell.com> Acked-by: Jerin Jacob <jerinj@marvell.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/octeontx2/otx2_ethdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/octeontx2/otx2_ethdev.c b/drivers/net/octeontx2/otx2_ethdev.c
index c3366de..b783cc2 100644
--- a/drivers/net/octeontx2/otx2_ethdev.c
+++ b/drivers/net/octeontx2/otx2_ethdev.c
@@ -1701,13 +1701,13 @@ otx2_nix_configure(struct rte_eth_dev *eth_dev)
rc = cgx_intlbk_enable(dev, eth_dev->data->dev_conf.lpbk_mode);
if (rc) {
otx2_err("Failed to configure cgx loop back mode rc=%d", rc);
- goto q_irq_fini;
+ goto cq_fini;
}
rc = otx2_nix_rxchan_bpid_cfg(eth_dev, true);
if (rc) {
otx2_err("Failed to configure nix rx chan bpid cfg rc=%d", rc);
- goto q_irq_fini;
+ goto cq_fini;
}
rc = otx2_nix_mc_addr_list_install(eth_dev);