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/cnxk: update ethertype for mixed IPsec tunnel versions
[dpdk.git]
/
drivers
/
net
/
null
/
rte_eth_null.c
diff --git
a/drivers/net/null/rte_eth_null.c
b/drivers/net/null/rte_eth_null.c
index
84c1d0c
..
508bafc
100644
(file)
--- a/
drivers/net/null/rte_eth_null.c
+++ b/
drivers/net/null/rte_eth_null.c
@@
-4,8
+4,8
@@
*/
#include <rte_mbuf.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_memcpy.h>
#include <rte_bus_vdev.h>
#include <rte_malloc.h>
#include <rte_memcpy.h>
#include <rte_bus_vdev.h>
@@
-73,7
+73,7
@@
static struct rte_eth_link pmd_link = {
.link_autoneg = ETH_LINK_FIXED,
};
.link_autoneg = ETH_LINK_FIXED,
};
-RTE_LOG_REGISTER
(eth_null_logtype, pmd.net.null
, NOTICE);
+RTE_LOG_REGISTER
_DEFAULT(eth_null_logtype
, NOTICE);
#define PMD_LOG(level, fmt, args...) \
rte_log(RTE_LOG_ ## level, eth_null_logtype, \
#define PMD_LOG(level, fmt, args...) \
rte_log(RTE_LOG_ ## level, eth_null_logtype, \
@@
-193,13
+193,15
@@
eth_dev_start(struct rte_eth_dev *dev)
return 0;
}
return 0;
}
-static
void
+static
int
eth_dev_stop(struct rte_eth_dev *dev)
{
if (dev == NULL)
eth_dev_stop(struct rte_eth_dev *dev)
{
if (dev == NULL)
- return;
+ return
0
;
dev->data->dev_link.link_status = ETH_LINK_DOWN;
dev->data->dev_link.link_status = ETH_LINK_DOWN;
+
+ return 0;
}
static int
}
static int
@@
-548,7
+550,7
@@
eth_dev_null_create(struct rte_vdev_device *dev, struct pmd_options *args)
data->mac_addrs = &internals->eth_addr;
data->promiscuous = 1;
data->all_multicast = 1;
data->mac_addrs = &internals->eth_addr;
data->promiscuous = 1;
data->all_multicast = 1;
- 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;