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: remove ethernet packing and set two-byte alignment
[dpdk.git]
/
drivers
/
raw
/
dpaa2_cmdif
/
dpaa2_cmdif.c
diff --git
a/drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c
b/drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c
index
469960a
..
3f42da1
100644
(file)
--- a/
drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c
+++ b/
drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c
@@
-26,9
+26,6
@@
int dpaa2_cmdif_logtype;
/* CMDIF driver name */
#define DPAA2_CMDIF_PMD_NAME dpaa2_dpci
/* CMDIF driver name */
#define DPAA2_CMDIF_PMD_NAME dpaa2_dpci
-/* CMDIF driver object */
-static struct rte_vdev_driver dpaa2_cmdif_drv;
-
/*
* This API provides the DPCI device ID in 'attr_value'.
* The device ID shall be passed by GPP to the AIOP using CMDIF commands.
/*
* This API provides the DPCI device ID in 'attr_value'.
* The device ID shall be passed by GPP to the AIOP using CMDIF commands.
@@
-67,8
+64,6
@@
dpaa2_cmdif_enqueue_bufs(struct rte_rawdev *dev,
struct qbman_swp *swp;
int ret;
struct qbman_swp *swp;
int ret;
- DPAA2_CMDIF_FUNC_TRACE();
-
RTE_SET_USED(count);
if (unlikely(!DPAA2_PER_LCORE_DPIO)) {
RTE_SET_USED(count);
if (unlikely(!DPAA2_PER_LCORE_DPIO)) {
@@
-128,8
+123,6
@@
dpaa2_cmdif_dequeue_bufs(struct rte_rawdev *dev,
uint8_t status;
int ret;
uint8_t status;
int ret;
- DPAA2_CMDIF_FUNC_TRACE();
-
RTE_SET_USED(count);
if (unlikely(!DPAA2_PER_LCORE_DPIO)) {
RTE_SET_USED(count);
if (unlikely(!DPAA2_PER_LCORE_DPIO)) {
@@
-211,7
+204,6
@@
dpaa2_cmdif_create(const char *name,
rawdev->dev_ops = &dpaa2_cmdif_ops;
rawdev->device = &vdev->device;
rawdev->dev_ops = &dpaa2_cmdif_ops;
rawdev->device = &vdev->device;
- rawdev->driver_name = vdev->device.driver->name;
/* For secondary processes, the primary has done all the work */
if (rte_eal_process_type() != RTE_PROC_PRIMARY)
/* For secondary processes, the primary has done all the work */
if (rte_eal_process_type() != RTE_PROC_PRIMARY)
@@
-274,6
+266,8
@@
dpaa2_cmdif_remove(struct rte_vdev_device *vdev)
int ret;
name = rte_vdev_device_name(vdev);
int ret;
name = rte_vdev_device_name(vdev);
+ if (name == NULL)
+ return -1;
DPAA2_CMDIF_INFO("Closing %s on NUMA node %d", name, rte_socket_id());
DPAA2_CMDIF_INFO("Closing %s on NUMA node %d", name, rte_socket_id());