From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f47.google.com (mail-pg0-f47.google.com [74.125.83.47]) by dpdk.org (Postfix) with ESMTP id 08F3B9179 for ; Mon, 21 Aug 2017 11:36:39 +0200 (CEST) Received: by mail-pg0-f47.google.com with SMTP id u191so22490340pgc.2 for ; Mon, 21 Aug 2017 02:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Xa2QIMTCHG4mm+vuy5omP6TYMj1KpLGQC1+YkGdJnuM=; b=pGP1YqRbPn1oZPvLlLLJJzE0aOt3kWzpuuxs9r4OaYdq+HhqKapnZneSV4RL948T/V AqxFFUMEOaeimK2cfDMatEfQsZlc41lOLF+LgJlkz0Q/yAXU14T9f1ce6ZWmO34O1lgk iIBMjAw48nfWjdqdOBq4229xtqjuUmKLeqBKizD1AFFcx+k+0t03pEmuzKVhm5ecoGgu 61Dj0s/ToF/mqTKD0mcAXqjQQLG24ITJ2nQHyQ7QUnGbfuveCe/ecT9LE1RD75RIJeuR lSfQCUwqs9AY/+bt0bCoiGiwVT0AaGmdeZaWtlofFObuUK0rgQJ5aaNL+8dDcsr4Rq28 xPeQ== 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=Xa2QIMTCHG4mm+vuy5omP6TYMj1KpLGQC1+YkGdJnuM=; b=OCU+HiBvBljW4x4OAqO64g4pmEdqL7pqyGAp5N8dfxOAFjKPqeL6dsDNH1Bjzp6i0q nyw1Ek2JkHhHCdZmNkkK803hSP1Qx4CXF0x66F32e/LMVNdntW3fLoGIjeMo2GaES/lx Fx/OTc/UU3bwJVgzkyRxbfefPh4MCCVDmVs/IhtjcaumHURl3nFAPzwvDUUWRWgXTCY6 gKFmJQr16t84RfxFz4aP5LrnQaulfte2rlNKGGKW6CSNEA/3fUwn4Mf6RaRHS63w+59f gsqiwhM4LnJFyftYcuaMX2d/een9a4Wj6bwaaz55nXY5A2hvd9L8/w+wS7XzsgpnnOCJ 1tbg== X-Gm-Message-State: AHYfb5gRLwOSw3mFgeXmsc//4KEr3CTram5AAgbZ/UzFPXNPFonXC0j6 zeQ8zYf4exB1NEyB X-Received: by 10.98.91.3 with SMTP id p3mr16196204pfb.20.1503308199032; Mon, 21 Aug 2017 02:36:39 -0700 (PDT) Received: from localhost.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 69sm23355087pfh.186.2017.08.21.02.36.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Aug 2017 02:36:37 -0700 (PDT) From: Yuanhan Liu To: Jiayu Hu Cc: Maxime Coquelin , dpdk stable , Yuanhan Liu Date: Mon, 21 Aug 2017 17:30:55 +0800 Message-Id: <1503307878-16728-41-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org> References: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/virtio: fix Rx interrupt setup' has been queued to stable release 17.05.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: Mon, 21 Aug 2017 09:36:40 -0000 Hi, FYI, your patch has been queued to stable release 17.05.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 08/24/17. So please shout if anyone has objections. Thanks. --yliu --- >>From ff844d0a054a1c8cc17b7b3eb2d6e716a6bd7ef0 Mon Sep 17 00:00:00 2001 From: Jiayu Hu Date: Mon, 31 Jul 2017 15:56:44 +0800 Subject: [PATCH] net/virtio: fix Rx interrupt setup [ upstream commit e7b9d1d2806c6bb8f30922c3cd6736b3076b7ec2 ] When use rte_eth_dev_configure() to enable rx queue interrupt for virtio devices, virtio_init_device() isn't called to set up the interrupt environment, which causes rx queue interrupt setup failed. This patch is to fix this issue. Fixes: 26b683b4f7d0 ("net/virtio: setup Rx queue interrupts") Signed-off-by: Jiayu Hu Reviewed-by: Maxime Coquelin --- drivers/net/virtio/virtio_ethdev.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index d65667c..2e40a08 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -1659,9 +1659,16 @@ virtio_dev_configure(struct rte_eth_dev *dev) { const struct rte_eth_rxmode *rxmode = &dev->data->dev_conf.rxmode; struct virtio_hw *hw = dev->data->dev_private; + int ret; PMD_INIT_LOG(DEBUG, "configure"); + if (dev->data->dev_conf.intr_conf.rxq) { + ret = virtio_init_device(dev, hw->req_guest_features); + if (ret < 0) + return ret; + } + /* Virtio does L4 checksum but not L3! */ if (rxmode->hw_ip_checksum) { PMD_DRV_LOG(NOTICE, -- 2.7.4