git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/ionic: split up queue-completion queue structure
[dpdk.git]
/
drivers
/
net
/
ipn3ke
/
ipn3ke_ethdev.c
diff --git
a/drivers/net/ipn3ke/ipn3ke_ethdev.c
b/drivers/net/ipn3ke/ipn3ke_ethdev.c
index
027be29
..
f8e751c
100644
(file)
--- a/
drivers/net/ipn3ke/ipn3ke_ethdev.c
+++ b/
drivers/net/ipn3ke/ipn3ke_ethdev.c
@@
-11,7
+11,7
@@
#include <rte_mbuf.h>
#include <rte_sched.h>
#include <rte_mbuf.h>
#include <rte_sched.h>
-#include <
rte_
ethdev_driver.h>
+#include <ethdev_driver.h>
#include <rte_io.h>
#include <rte_rawdev.h>
#include <rte_io.h>
#include <rte_rawdev.h>
@@
-562,10
+562,8
@@
static int ipn3ke_vswitch_remove(struct rte_afu_device *afu_dev)
afu_dev->device.name, i);
ethdev = rte_eth_dev_allocated(afu_dev->device.name);
afu_dev->device.name, i);
ethdev = rte_eth_dev_allocated(afu_dev->device.name);
- if (!ethdev)
- return -ENODEV;
-
- rte_eth_dev_destroy(ethdev, ipn3ke_rpst_uninit);
+ if (ethdev != NULL)
+ rte_eth_dev_destroy(ethdev, ipn3ke_rpst_uninit);
}
ret = rte_eth_switch_domain_free(hw->switch_domain_id);
}
ret = rte_eth_switch_domain_free(hw->switch_domain_id);