X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=app%2Ftest%2Fvirtual_pmd.c;h=2c24c9b3f524f0c80cc825caa149755d3354a68d;hb=5364a1ce30dfbf2a8acc41bb64cae4cdfeff4735;hp=4bd4d1c9ada415cbb3fa35138619f5da746414f1;hpb=b142387b07600c320683255d237b9109299883d5;p=dpdk.git diff --git a/app/test/virtual_pmd.c b/app/test/virtual_pmd.c index 4bd4d1c9ad..2c24c9b3f5 100644 --- 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; } -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; @@ -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); + + return 0; } static int