Skip to content

Commit

Permalink
net/dpaa2: fix unregistering interrupt handler
Browse files Browse the repository at this point in the history
[ upstream commit d192fd3 ]

This patch fixes code that handles unregistering LSC
interrupt handler in dpaa2_dev_stop API.

Fixes: c5acbb5 ("net/dpaa2: support link status event")

Signed-off-by: Vanshika Shukla <vanshika.shukla@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
  • Loading branch information
Vanshika Shukla authored and kevintraynor committed Feb 21, 2022
1 parent 699c30f commit c96ea2b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/net/dpaa2/dpaa2_ethdev.c
Expand Up @@ -1252,7 +1252,12 @@ dpaa2_dev_stop(struct rte_eth_dev *dev)
struct fsl_mc_io *dpni = (struct fsl_mc_io *)dev->process_private;
int ret;
struct rte_eth_link link;
struct rte_intr_handle *intr_handle = dev->intr_handle;
struct rte_device *rdev = dev->device;
struct rte_intr_handle *intr_handle;
struct rte_dpaa2_device *dpaa2_dev;

dpaa2_dev = container_of(rdev, struct rte_dpaa2_device, device);
intr_handle = dpaa2_dev->intr_handle;

PMD_INIT_FUNC_TRACE();

Expand Down

0 comments on commit c96ea2b

Please sign in to comment.