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: log queue counters when tearing down
[dpdk.git]
/
drivers
/
net
/
cxgbe
/
cxgbevf_main.c
diff --git
a/drivers/net/cxgbe/cxgbevf_main.c
b/drivers/net/cxgbe/cxgbevf_main.c
index
9fe0ec6
..
f639612
100644
(file)
--- a/
drivers/net/cxgbe/cxgbevf_main.c
+++ b/
drivers/net/cxgbe/cxgbevf_main.c
@@
-3,8
+3,8
@@
* All rights reserved.
*/
* All rights reserved.
*/
-#include <
rte_
ethdev_driver.h>
-#include <
rte_
ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
#include <rte_malloc.h>
#include "base/common.h"
#include <rte_malloc.h>
#include "base/common.h"
@@
-261,8
+261,6
@@
allocate_mac:
goto out_free;
}
goto out_free;
}
- pi->eth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;
-
if (i > 0) {
/* First port will be notified by upper layer */
rte_eth_dev_probing_finish(eth_dev);
if (i > 0) {
/* First port will be notified by upper layer */
rte_eth_dev_probing_finish(eth_dev);
@@
-278,7
+276,10
@@
allocate_mac:
}
}
}
}
- cxgbe_cfg_queues(adapter->eth_dev);
+ err = cxgbe_cfg_queues(adapter->eth_dev);
+ if (err)
+ goto out_free;
+
cxgbe_print_adapter_info(adapter);
cxgbe_print_port_info(adapter);
cxgbe_print_adapter_info(adapter);
cxgbe_print_port_info(adapter);
@@
-293,6
+294,8
@@
allocate_mac:
return 0;
out_free:
return 0;
out_free:
+ cxgbe_cfg_queues_free(adapter);
+
for_each_port(adapter, i) {
pi = adap2pinfo(adapter, i);
if (pi->viid != 0)
for_each_port(adapter, i) {
pi = adap2pinfo(adapter, i);
if (pi->viid != 0)