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
/
af_packet
/
rte_eth_af_packet.c
diff --git
a/drivers/net/af_packet/rte_eth_af_packet.c
b/drivers/net/af_packet/rte_eth_af_packet.c
index
12c202c
..
bfe5a0a
100644
(file)
--- a/
drivers/net/af_packet/rte_eth_af_packet.c
+++ b/
drivers/net/af_packet/rte_eth_af_packet.c
@@
-8,8
+8,8
@@
#include <rte_string_fns.h>
#include <rte_mbuf.h>
#include <rte_string_fns.h>
#include <rte_mbuf.h>
-#include <
rte_
ethdev_driver.h>
-#include <
rte_
ethdev_vdev.h>
+#include <ethdev_driver.h>
+#include <ethdev_vdev.h>
#include <rte_malloc.h>
#include <rte_kvargs.h>
#include <rte_bus_vdev.h>
#include <rte_malloc.h>
#include <rte_kvargs.h>
#include <rte_bus_vdev.h>
@@
-272,7
+272,7
@@
eth_dev_start(struct rte_eth_dev *dev)
/*
* This function gets called when the current port gets stopped.
*/
/*
* This function gets called when the current port gets stopped.
*/
-static
void
+static
int
eth_dev_stop(struct rte_eth_dev *dev)
{
unsigned i;
eth_dev_stop(struct rte_eth_dev *dev)
{
unsigned i;
@@
-296,6
+296,7
@@
eth_dev_stop(struct rte_eth_dev *dev)
}
dev->data->dev_link.link_status = ETH_LINK_DOWN;
}
dev->data->dev_link.link_status = ETH_LINK_DOWN;
+ return 0;
}
static int
}
static int
@@
-859,7
+860,7
@@
rte_pmd_init_internals(struct rte_vdev_device *dev,
data->nb_tx_queues = (uint16_t)nb_queues;
data->dev_link = pmd_link;
data->mac_addrs = &(*internals)->eth_addr;
data->nb_tx_queues = (uint16_t)nb_queues;
data->dev_link = pmd_link;
data->mac_addrs = &(*internals)->eth_addr;
- data->dev_flags |= RTE_ETH_DEV_
CLOSE_REMOVE
;
+ data->dev_flags |= RTE_ETH_DEV_
AUTOFILL_QUEUE_XSTATS
;
(*eth_dev)->dev_ops = &ops;
(*eth_dev)->dev_ops = &ops;