From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by dpdk.org (Postfix) with ESMTP id D201F1B88C for ; Tue, 15 May 2018 15:53:38 +0200 (CEST) Received: by mail-wr0-f195.google.com with SMTP id 94-v6so243171wrf.5 for ; Tue, 15 May 2018 06:53:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=F+JPEi6M4UlJlCnb0HFdPtyKNPN8J3sOBgOuWgUduY8=; b=uIxovXX1sUxV4Z8VcPjQcz1ya98ujsnFnJmZyiR5AFqHX7h+7U0cQ30jRkoBxOxKWy E1J15mu87yKMANobkxqNyt+OLxM+9cMVM4GV33qnoGJrKuR0ARyMnrBWsvsW1krsggia cCg7VlaB89uaNr6GeWwWg5e930IFXARob86ea6fZO3Bv4xarKptIUaKewuEjY17CDZ/a ALwfTt04rCEmuzjaxz8XIZJg86IA/M3BMleRo70Q0oqoBRldif3r8rQy+RYNwJpZke33 K+/ICKNDOwzcNIUd8xkGkBHbjlm9oklZ252kLiURbA2b6mIiAoZLNqy1MD1BT+d62qMP +fLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=F+JPEi6M4UlJlCnb0HFdPtyKNPN8J3sOBgOuWgUduY8=; b=VJSE2c77CZmGk9nWuPsgCOKBw2F+MWMh/HZH1vjqh1FhpOdq7eZVuML5d8ESe42MkM uPOyfONkI+TEh+C0DDIQFnFo6B4os9xzUq6Z4TCiT+xevPZYAJaeCl+xDR+nkUJoTEwi /40ZyeAkJWU3Bk5rHuVgGOqeVy+9PgngcJeIosrqruP6u2Y8sJlr5Of89a11yu7XtbKi qR4kwpx7H8Jb+nTNMstHOx2Rgl6WWibIrRABrqdBa6PgMLfIHxEKK2nsBnMsbnE+crvY /4D1J29bH9E0Cva5B02XmlZh8oOvVBvV/4hVIgMXOSuW6LLj2aDBTCglpYtvWsrEwR6O eJzg== X-Gm-Message-State: ALKqPwdmo43oMVa7k+wV/VTCdbDf8h0VOFLsLfORJpb/Sy4pn5isFSsz EE8RQWZbqJ2Etk5kbGluCSHIWTsIPCs= X-Google-Smtp-Source: AB8JxZqgjkM1FE5k0CV4iCSO7OLYZqShEop1RDMwNphABJUdV24iAAZdc3MVJAShb9cBAGCxRps3Dw== X-Received: by 2002:adf:85f4:: with SMTP id 49-v6mr10488487wru.33.1526392418581; Tue, 15 May 2018 06:53:38 -0700 (PDT) Received: from localhost (slip139-92-244-193.lon.uk.prserv.net. [139.92.244.193]) by smtp.gmail.com with ESMTPSA id y6-v6sm624509wmy.39.2018.05.15.06.53.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 06:53:37 -0700 (PDT) From: luca.boccassi@gmail.com To: Jingjing Wu Cc: dpdk stable Date: Tue, 15 May 2018 14:53:28 +0100 Message-Id: <20180515135335.10459-1-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180515134731.9337-72-luca.boccassi@gmail.com> References: <20180515134731.9337-72-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/avf: fix Rx interrupt mapping' has been queued to stable release 18.02.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2018 13:53:39 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/16/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From f2f7212b9ce3bde8e87a72e34b537eb6f2e30eb3 Mon Sep 17 00:00:00 2001 From: Jingjing Wu Date: Fri, 11 May 2018 23:09:48 +0800 Subject: [PATCH] net/avf: fix Rx interrupt mapping [ upstream commit efe73c0d1d2bcfc17f726245bd880acdc06f9718 ] Vector used for rx mapping is different if WB_ON_ITR is supported. The mapping table need to be updated. Fixes: d6bde6b5eae9 ("net/avf: enable Rx interrupt") Signed-off-by: Jingjing Wu --- drivers/net/avf/avf_ethdev.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/avf/avf_ethdev.c b/drivers/net/avf/avf_ethdev.c index 4442c3cd8..03f7ce408 100644 --- a/drivers/net/avf/avf_ethdev.c +++ b/drivers/net/avf/avf_ethdev.c @@ -339,17 +339,18 @@ static int avf_config_rx_queues_irqs(struct rte_eth_dev *dev, AVF_WRITE_FLUSH(hw); /* map all queues to the same interrupt */ for (i = 0; i < dev->data->nb_rx_queues; i++) - vf->rxq_map[0] |= 1 << i; + vf->rxq_map[vf->msix_base] |= 1 << i; } else { if (!rte_intr_allow_others(intr_handle)) { vf->nb_msix = 1; vf->msix_base = AVF_MISC_VEC_ID; for (i = 0; i < dev->data->nb_rx_queues; i++) { - vf->rxq_map[0] |= 1 << i; + vf->rxq_map[vf->msix_base] |= 1 << i; intr_handle->intr_vec[i] = AVF_MISC_VEC_ID; } PMD_DRV_LOG(DEBUG, - "vector 0 are mapping to all Rx queues"); + "vector %u are mapping to all Rx queues", + vf->msix_base); } else { /* If Rx interrupt is reuquired, and we can use * multi interrupts, then the vec is from 1 -- 2.14.2