[ovs-dev,v3,1/6] dpif-netdev: Change polled_queue to use dp_netdev_rxq.

Submitted by Kevin Traynor on Aug. 1, 2017, 3:58 p.m.

Details

Message ID 1501603092-6287-2-git-send-email-ktraynor@redhat.com
State New
Headers show

Commit Message

Kevin Traynor Aug. 1, 2017, 3:58 p.m.
Soon we will want to store processing cycle counts in the dp_netdev_rxq,
so use that as a basis for the polled_queue that pmd_thread_main uses.

Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
---
 lib/dpif-netdev.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Patch hide | download patch | download mbox

diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
index 47a9fa0..62a3bce 100644
--- a/lib/dpif-netdev.c
+++ b/lib/dpif-netdev.c
@@ -482,5 +482,5 @@  struct dp_netdev_pmd_cycles {
 
 struct polled_queue {
-    struct netdev_rxq *rx;
+    struct dp_netdev_rxq *rxq;
     odp_port_t port_no;
 };
@@ -3698,5 +3698,5 @@  pmd_load_queues_and_ports(struct dp_netdev_pmd_thread *pmd,
     i = 0;
     HMAP_FOR_EACH (poll, node, &pmd->poll_list) {
-        poll_list[i].rx = poll->rxq->rx;
+        poll_list[i].rxq = poll->rxq;
         poll_list[i].port_no = poll->rxq->port->port_no;
         i++;
@@ -3735,6 +3735,6 @@  reload:
     for (i = 0; i < poll_cnt; i++) {
        VLOG_DBG("Core %d processing port \'%s\' with queue-id %d\n",
-                pmd->core_id, netdev_rxq_get_name(poll_list[i].rx),
-                netdev_rxq_get_queue_id(poll_list[i].rx));
+                pmd->core_id, netdev_rxq_get_name(poll_list[i].rxq->rx),
+                netdev_rxq_get_queue_id(poll_list[i].rxq->rx));
     }
 
@@ -3751,5 +3751,5 @@  reload:
         for (i = 0; i < poll_cnt; i++) {
             process_packets =
-                dp_netdev_process_rxq_port(pmd, poll_list[i].rx,
+                dp_netdev_process_rxq_port(pmd, poll_list[i].rxq->rx,
                                            poll_list[i].port_no);
             cycles_count_intermediate(pmd,