diff mbox

[ovs-dev] dpif-netdev: Fix xps revalidation.

Message ID 1469779641-26279-1-git-send-email-i.maximets@samsung.com
State Accepted
Delegated to: Daniele Di Proietto
Headers show

Commit Message

Ilya Maximets July 29, 2016, 8:07 a.m. UTC
Revalidation should work in case of 'dynamic_txqs == true'.

Fixes: 324c8374852a ("dpif-netdev: XPS (Transmit Packet Steering) implementation.")
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
---
 lib/dpif-netdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Daniele Di Proietto July 30, 2016, 1:04 a.m. UTC | #1
Thanks for the fix, applied to master!




On 29/07/2016 01:07, "Ilya Maximets" <i.maximets@samsung.com> wrote:

>Revalidation should work in case of 'dynamic_txqs == true'.

>

>Fixes: 324c8374852a ("dpif-netdev: XPS (Transmit Packet Steering) implementation.")

>Signed-off-by: Ilya Maximets <i.maximets@samsung.com>

>---

> lib/dpif-netdev.c | 2 +-

> 1 file changed, 1 insertion(+), 1 deletion(-)

>

>diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c

>index 828171e..c446ae8 100644

>--- a/lib/dpif-netdev.c

>+++ b/lib/dpif-netdev.c

>@@ -4193,7 +4193,7 @@ dpif_netdev_xps_revalidate_pmd(const struct dp_netdev_pmd_thread *pmd,

>     long long interval;

> 

>     HMAP_FOR_EACH (tx, node, &pmd->port_cache) {

>-        if (tx->port->dynamic_txqs) {

>+        if (!tx->port->dynamic_txqs) {

>             continue;

>         }

>         interval = now - tx->last_used;

>-- 

>2.7.4

>
diff mbox

Patch

diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
index 828171e..c446ae8 100644
--- a/lib/dpif-netdev.c
+++ b/lib/dpif-netdev.c
@@ -4193,7 +4193,7 @@  dpif_netdev_xps_revalidate_pmd(const struct dp_netdev_pmd_thread *pmd,
     long long interval;
 
     HMAP_FOR_EACH (tx, node, &pmd->port_cache) {
-        if (tx->port->dynamic_txqs) {
+        if (!tx->port->dynamic_txqs) {
             continue;
         }
         interval = now - tx->last_used;