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/bnxt: consolidate template table processing
[dpdk.git]
/
drivers
/
net
/
liquidio
/
lio_ethdev.c
diff --git
a/drivers/net/liquidio/lio_ethdev.c
b/drivers/net/liquidio/lio_ethdev.c
index
2258838
..
1a41f27
100644
(file)
--- a/
drivers/net/liquidio/lio_ethdev.c
+++ b/
drivers/net/liquidio/lio_ethdev.c
@@
-1550,11
+1550,14
@@
lio_dev_set_link_down(struct rte_eth_dev *eth_dev)
* @return
* - nothing
*/
* @return
* - nothing
*/
-static
void
+static
int
lio_dev_close(struct rte_eth_dev *eth_dev)
{
struct lio_device *lio_dev = LIO_DEV(eth_dev);
lio_dev_close(struct rte_eth_dev *eth_dev)
{
struct lio_device *lio_dev = LIO_DEV(eth_dev);
+ if (rte_eal_process_type() != RTE_PROC_PRIMARY)
+ return 0;
+
lio_dev_info(lio_dev, "closing port %d\n", eth_dev->data->port_id);
if (lio_dev->intf_open)
lio_dev_info(lio_dev, "closing port %d\n", eth_dev->data->port_id);
if (lio_dev->intf_open)
@@
-1563,7
+1566,7
@@
lio_dev_close(struct rte_eth_dev *eth_dev)
/* Reset ioq regs */
lio_dev->fn_list.setup_device_regs(lio_dev);
/* Reset ioq regs */
lio_dev->fn_list.setup_device_regs(lio_dev);
- if (lio_dev->pci_dev->kdrv == RTE_KDRV_IGB_UIO) {
+ if (lio_dev->pci_dev->kdrv == RTE_
PCI_
KDRV_IGB_UIO) {
cn23xx_vf_ask_pf_to_do_flr(lio_dev);
rte_delay_ms(LIO_PCI_FLR_WAIT);
}
cn23xx_vf_ask_pf_to_do_flr(lio_dev);
rte_delay_ms(LIO_PCI_FLR_WAIT);
}
@@
-1581,6
+1584,8
@@
lio_dev_close(struct rte_eth_dev *eth_dev)
/* Delete all queues */
lio_dev_clear_queues(eth_dev);
/* Delete all queues */
lio_dev_clear_queues(eth_dev);
+
+ return 0;
}
/**
}
/**
@@
-2012,7
+2017,7
@@
lio_first_time_init(struct lio_device *lio_dev,
goto error;
/* Request and wait for device reset. */
goto error;
/* Request and wait for device reset. */
- if (pdev->kdrv == RTE_KDRV_IGB_UIO) {
+ if (pdev->kdrv == RTE_
PCI_
KDRV_IGB_UIO) {
cn23xx_vf_ask_pf_to_do_flr(lio_dev);
/* FLR wait time doubled as a precaution. */
rte_delay_ms(LIO_PCI_FLR_WAIT * 2);
cn23xx_vf_ask_pf_to_do_flr(lio_dev);
/* FLR wait time doubled as a precaution. */
rte_delay_ms(LIO_PCI_FLR_WAIT * 2);