event/dpaa2: rename info structure
authorHemant Agrawal <hemant.agrawal@nxp.com>
Fri, 21 Sep 2018 11:46:03 +0000 (17:16 +0530)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Mon, 1 Oct 2018 14:46:57 +0000 (16:46 +0200)
This is to keep the dpaa2 driver aligned with dpaa driver.

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/event/dpaa2/dpaa2_eventdev.c
drivers/event/dpaa2/dpaa2_eventdev.h

index ea9d868..c4064a4 100644 (file)
@@ -58,7 +58,7 @@ dpaa2_eventdev_enqueue_burst(void *port, const struct rte_event ev[],
                        ((struct dpaa2_io_portal_t *)port)->eventdev;
        struct dpaa2_eventdev *priv = ev_dev->data->dev_private;
        uint32_t queue_id = ev[0].queue_id;
-       struct evq_info_t *evq_info = &priv->evq_info[queue_id];
+       struct dpaa2_eventq *evq_info = &priv->evq_info[queue_id];
        uint32_t fqid;
        struct qbman_swp *swp;
        struct qbman_fd fd_arr[MAX_TX_RING_SLOTS];
@@ -385,7 +385,7 @@ dpaa2_eventdev_queue_setup(struct rte_eventdev *dev, uint8_t queue_id,
                           const struct rte_event_queue_conf *queue_conf)
 {
        struct dpaa2_eventdev *priv = dev->data->dev_private;
-       struct evq_info_t *evq_info =
+       struct dpaa2_eventq *evq_info =
                &priv->evq_info[queue_id];
 
        EVENTDEV_INIT_FUNC_TRACE();
@@ -449,7 +449,7 @@ dpaa2_eventdev_port_unlink(struct rte_eventdev *dev, void *port,
 {
        struct dpaa2_eventdev *priv = dev->data->dev_private;
        struct dpaa2_io_portal_t *dpaa2_portal = port;
-       struct evq_info_t *evq_info;
+       struct dpaa2_eventq *evq_info;
        int i;
 
        EVENTDEV_INIT_FUNC_TRACE();
@@ -473,7 +473,7 @@ dpaa2_eventdev_port_link(struct rte_eventdev *dev, void *port,
 {
        struct dpaa2_eventdev *priv = dev->data->dev_private;
        struct dpaa2_io_portal_t *dpaa2_portal = port;
-       struct evq_info_t *evq_info;
+       struct dpaa2_eventq *evq_info;
        uint8_t channel_index;
        int ret, i, n;
 
index 229f66a..d2f98c6 100644 (file)
@@ -56,17 +56,18 @@ struct dpaa2_dpcon_dev {
        uint8_t channel_index;
 };
 
-struct evq_info_t {
+struct dpaa2_eventq {
        /* DPcon device */
        struct dpaa2_dpcon_dev *dpcon;
        /* Attached DPCI device */
        struct dpaa2_dpci_dev *dpci;
        /* Configuration provided by the user */
        uint32_t event_queue_cfg;
+       uint32_t event_queue_id;
 };
 
 struct dpaa2_eventdev {
-       struct evq_info_t evq_info[DPAA2_EVENT_MAX_QUEUES];
+       struct dpaa2_eventq evq_info[DPAA2_EVENT_MAX_QUEUES];
        uint32_t dequeue_timeout_ns;
        uint8_t max_event_queues;
        uint8_t nb_event_queues;