Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Remove old compatibility transitional packages
[deb_dpdk.git]
/
drivers
/
net
/
mpipe
/
mpipe_tilegx.c
diff --git
a/drivers/net/mpipe/mpipe_tilegx.c
b/drivers/net/mpipe/mpipe_tilegx.c
index
adcbc19
..
fbbbb00
100644
(file)
--- a/
drivers/net/mpipe/mpipe_tilegx.c
+++ b/
drivers/net/mpipe/mpipe_tilegx.c
@@
-33,7
+33,7
@@
#include <unistd.h>
#include <rte_eal.h>
#include <unistd.h>
#include <rte_eal.h>
-#include <rte_dev.h>
+#include <rte_
v
dev.h>
#include <rte_eal_memconfig.h>
#include <rte_ethdev.h>
#include <rte_malloc.h>
#include <rte_eal_memconfig.h>
#include <rte_ethdev.h>
#include <rte_malloc.h>
@@
-516,7
+516,7
@@
mpipe_recv_fill_stack(struct mpipe_dev_priv *priv, int count)
int i;
for (i = 0; i < count; i++) {
int i;
for (i = 0; i < count; i++) {
- mbuf =
__
rte_mbuf_raw_alloc(priv->rx_mpool);
+ mbuf = rte_mbuf_raw_alloc(priv->rx_mpool);
if (!mbuf)
break;
mpipe_recv_push(priv, mbuf);
if (!mbuf)
break;
mpipe_recv_push(priv, mbuf);
@@
-1452,7
+1452,7
@@
mpipe_do_recv(struct mpipe_rx_queue *rx_queue, struct rte_mbuf **rx_pkts,
MPIPE_BUF_DEBT_THRESHOLD)
mpipe_local.mbuf_push_debt[in_port]++;
else {
MPIPE_BUF_DEBT_THRESHOLD)
mpipe_local.mbuf_push_debt[in_port]++;
else {
- mbuf =
__
rte_mbuf_raw_alloc(priv->rx_mpool);
+ mbuf = rte_mbuf_raw_alloc(priv->rx_mpool);
if (unlikely(!mbuf)) {
nb_nomem++;
gxio_mpipe_iqueue_drop(iqueue, idesc);
if (unlikely(!mbuf)) {
nb_nomem++;
gxio_mpipe_iqueue_drop(iqueue, idesc);
@@
-1549,7
+1549,7
@@
mpipe_link_mac(const char *ifname, uint8_t *mac)
}
static int
}
static int
-rte_pmd_mpipe_
devinit
(const char *ifname,
+rte_pmd_mpipe_
probe
(const char *ifname,
const char *params __rte_unused)
{
gxio_mpipe_context_t *context;
const char *params __rte_unused)
{
gxio_mpipe_context_t *context;
@@
-1587,7
+1587,7
@@
rte_pmd_mpipe_devinit(const char *ifname,
return -ENODEV;
}
return -ENODEV;
}
- eth_dev = rte_eth_dev_allocate(ifname
, RTE_ETH_DEV_VIRTUAL
);
+ eth_dev = rte_eth_dev_allocate(ifname);
if (!eth_dev) {
RTE_LOG(ERR, PMD, "%s: Failed to allocate device.\n", ifname);
rte_free(priv);
if (!eth_dev) {
RTE_LOG(ERR, PMD, "%s: Failed to allocate device.\n", ifname);
rte_free(priv);
@@
-1623,20
+1623,18
@@
rte_pmd_mpipe_devinit(const char *ifname,
return 0;
}
return 0;
}
-static struct rte_driver pmd_mpipe_xgbe_drv = {
- .name = "xgbe",
- .type = PMD_VDEV,
- .init = rte_pmd_mpipe_devinit,
+static struct rte_vdev_driver pmd_mpipe_xgbe_drv = {
+ .probe = rte_pmd_mpipe_probe,
};
};
-static struct rte_driver pmd_mpipe_gbe_drv = {
- .name = "gbe",
- .type = PMD_VDEV,
- .init = rte_pmd_mpipe_devinit,
+static struct rte_vdev_driver pmd_mpipe_gbe_drv = {
+ .probe = rte_pmd_mpipe_probe,
};
};
-PMD_REGISTER_DRIVER(pmd_mpipe_xgbe_drv);
-PMD_REGISTER_DRIVER(pmd_mpipe_gbe_drv);
+RTE_PMD_REGISTER_VDEV(net_mpipe_xgbe, pmd_mpipe_xgbe_drv);
+RTE_PMD_REGISTER_ALIAS(net_mpipe_xgbe, xgbe);
+RTE_PMD_REGISTER_VDEV(net_mpipe_gbe, pmd_mpipe_gbe_drv);
+RTE_PMD_REGISTER_ALIAS(net_mpipe_gbe, gbe);
static void __attribute__((constructor, used))
mpipe_init_contexts(void)
static void __attribute__((constructor, used))
mpipe_init_contexts(void)