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
event/cnxk: support vectorized Rx event fast path
[dpdk.git]
/
drivers
/
net
/
softnic
/
rte_eth_softnic.c
diff --git
a/drivers/net/softnic/rte_eth_softnic.c
b/drivers/net/softnic/rte_eth_softnic.c
index
e942df7
..
f640232
100644
(file)
--- a/
drivers/net/softnic/rte_eth_softnic.c
+++ b/
drivers/net/softnic/rte_eth_softnic.c
@@
-6,8
+6,8
@@
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.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_bus_vdev.h>
#include <rte_kvargs.h>
#include <rte_malloc.h>
#include <rte_bus_vdev.h>
#include <rte_kvargs.h>
@@
-80,7
+80,7
@@
static const struct softnic_conn_params conn_params_default = {
.msg_handle_arg = NULL,
};
.msg_handle_arg = NULL,
};
-RTE_LOG_REGISTER
(pmd_softnic_logtype, pmd.net.softnic
, NOTICE);
+RTE_LOG_REGISTER
_DEFAULT(pmd_softnic_logtype
, NOTICE);
#define PMD_LOG(level, fmt, args...) \
rte_log(RTE_LOG_ ## level, pmd_softnic_logtype, \
#define PMD_LOG(level, fmt, args...) \
rte_log(RTE_LOG_ ## level, pmd_softnic_logtype, \
@@
-178,7
+178,7
@@
pmd_dev_start(struct rte_eth_dev *dev)
return 0;
}
return 0;
}
-static
void
+static
int
pmd_dev_stop(struct rte_eth_dev *dev)
{
struct pmd_internals *p = dev->data->dev_private;
pmd_dev_stop(struct rte_eth_dev *dev)
{
struct pmd_internals *p = dev->data->dev_private;
@@
-199,6
+199,8
@@
pmd_dev_stop(struct rte_eth_dev *dev)
tm_hierarchy_free(p);
softnic_mtr_free(p);
tm_hierarchy_free(p);
softnic_mtr_free(p);
+
+ return 0;
}
static void
}
static void
@@
-246,18
+248,11
@@
pmd_link_update(struct rte_eth_dev *dev __rte_unused,
}
static int
}
static int
-pmd_filter_ctrl(struct rte_eth_dev *dev __rte_unused,
- enum rte_filter_type filter_type,
- enum rte_filter_op filter_op,
- void *arg)
+pmd_flow_ops_get(struct rte_eth_dev *dev __rte_unused,
+ const struct rte_flow_ops **ops)
{
{
- if (filter_type == RTE_ETH_FILTER_GENERIC &&
- filter_op == RTE_ETH_FILTER_GET) {
- *(const void **)arg = &pmd_flow_ops;
- return 0;
- }
-
- return -ENOTSUP;
+ *ops = &pmd_flow_ops;
+ return 0;
}
static int
}
static int
@@
-285,7
+280,7
@@
static const struct eth_dev_ops pmd_ops = {
.dev_infos_get = pmd_dev_infos_get,
.rx_queue_setup = pmd_rx_queue_setup,
.tx_queue_setup = pmd_tx_queue_setup,
.dev_infos_get = pmd_dev_infos_get,
.rx_queue_setup = pmd_rx_queue_setup,
.tx_queue_setup = pmd_tx_queue_setup,
- .f
ilter_ctrl = pmd_filter_ctrl
,
+ .f
low_ops_get = pmd_flow_ops_get
,
.tm_ops_get = pmd_tm_ops_get,
.mtr_ops_get = pmd_mtr_ops_get,
};
.tm_ops_get = pmd_tm_ops_get,
.mtr_ops_get = pmd_mtr_ops_get,
};