Skip to content

Commit

Permalink
net/ipn3ke: fix representor name
Browse files Browse the repository at this point in the history
[ upstream commit f66141886fec510764d7be89a2787e8931a00b77 ]

The device name used in rte_eth_dev_allocated() function
is afu device name instead of representor name, this patch
correct it.

Fixes: c01c748 ("net/ipn3ke: add new driver")

Signed-off-by: Wei Huang <wei.huang@intel.com>
Acked-by: Rosen Xu <rosen.xu@intel.com>
  • Loading branch information
weihuan2 authored and bluca committed Mar 21, 2023
1 parent 943d18f commit 8c1fc00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ipn3ke/ipn3ke_ethdev.c
Expand Up @@ -561,7 +561,7 @@ static int ipn3ke_vswitch_remove(struct rte_afu_device *afu_dev)
snprintf(name, sizeof(name), "net_%s_representor_%d",
afu_dev->device.name, i);

ethdev = rte_eth_dev_allocated(afu_dev->device.name);
ethdev = rte_eth_dev_allocated(name);
if (ethdev != NULL)
rte_eth_dev_destroy(ethdev, ipn3ke_rpst_uninit);
}
Expand Down

0 comments on commit 8c1fc00

Please sign in to comment.