]> git.proxmox.com Git - mirror_ovs.git/commitdiff
dpif-netdev: Log rxq assignment for isolated pmd.
authorGowrishankar Muthukrishnan <gmuthukr@redhat.com>
Sat, 9 Nov 2019 03:11:27 +0000 (08:41 +0530)
committerIlya Maximets <i.maximets@ovn.org>
Tue, 19 Nov 2019 12:06:09 +0000 (13:06 +0100)
There is no log about isolated rxq assignment in a pmd today, which
sometimes could be useful to trace rxq/pmd pinning, when debugging
with log. Ovs-appctl dpif-netdev/pmd-rxq-show reports about it
already, but logging is helpful to trace pinning in time.

Signed-off-by: Gowrishankar Muthukrishnan <gmuthukr@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
lib/dpif-netdev.c

index 4720ba1ab21bbc90c746c9589389915d4e683d11..5142bad1dbd540755fd1f252d2be9e8f557b1761 100644 (file)
@@ -4572,6 +4572,10 @@ rxq_scheduling(struct dp_netdev *dp, bool pinned) OVS_REQUIRES(dp->port_mutex)
                 } else {
                     q->pmd = pmd;
                     pmd->isolated = true;
+                    VLOG_INFO("Core %d on numa node %d assigned port \'%s\' "
+                              "rx queue %d.", pmd->core_id, pmd->numa_id,
+                              netdev_rxq_get_name(q->rx),
+                              netdev_rxq_get_queue_id(q->rx));
                     dp_netdev_pmd_unref(pmd);
                 }
             } else if (!pinned && q->core_id == OVS_CORE_UNSPEC) {