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/txgbe: add PHY init
[dpdk.git]
/
app
/
test
/
virtual_pmd.c
diff --git
a/app/test/virtual_pmd.c
b/app/test/virtual_pmd.c
index
4bd4d1c
..
2c24c9b
100644
(file)
--- a/
app/test/virtual_pmd.c
+++ b/
app/test/virtual_pmd.c
@@
-48,7
+48,7
@@
virtual_ethdev_start_fail(struct rte_eth_dev *eth_dev __rte_unused)
return -1;
}
return -1;
}
-static
void
virtual_ethdev_stop(struct rte_eth_dev *eth_dev __rte_unused)
+static
int
virtual_ethdev_stop(struct rte_eth_dev *eth_dev __rte_unused)
{
void *pkt = NULL;
struct virtual_ethdev_private *prv = eth_dev->data->dev_private;
{
void *pkt = NULL;
struct virtual_ethdev_private *prv = eth_dev->data->dev_private;
@@
-60,6
+60,8
@@
static void virtual_ethdev_stop(struct rte_eth_dev *eth_dev __rte_unused)
while (rte_ring_dequeue(prv->tx_queue, &pkt) != -ENOENT)
rte_pktmbuf_free(pkt);
while (rte_ring_dequeue(prv->tx_queue, &pkt) != -ENOENT)
rte_pktmbuf_free(pkt);
+
+ return 0;
}
static int
}
static int