From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BB92EA0553 for ; Mon, 17 Feb 2020 18:46:59 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B193D1DAB4; Mon, 17 Feb 2020 18:46:59 +0100 (CET) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id B9B531DAB4 for ; Mon, 17 Feb 2020 18:46:58 +0100 (CET) Received: by mail-wr1-f65.google.com with SMTP id g3so20762685wrs.12 for ; Mon, 17 Feb 2020 09:46:58 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=UvoHJ3vI7qTMZfB5Qc/LtbcVt//ZgCtGE45XlCTav2o=; b=HB9wSYXfkFNgMa1TRVFX3Epj4OqnTW4yFbFWrjX67sYKWfYh1jx25kFxDAW3+Xa0gu CpQV4uezpHW18FSF9qIJRjfwMYzFU1/biuNyqLsGNd1b8DdMs7K3/qRrLLpeJTvYulH2 ghFQVjXB1koEDmRo093OJADXePHBlWUQO7W+AYsXKad3OSxOKhd5+fPf1YqO+UOFHhUq 712Wjut2GOVh3vxEC4V1pHN/c0FI6eStN/vLlW8309yYgTpnGeYk0oiY9KUXkT1VZJRR EqZqxfR/3YPSZPYDOZL478M8ot1wFbbVsT/k3Xloql6GdiwYeRB9T5D5gbZxcL4vKW5/ 92YQ== 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:mime-version:content-transfer-encoding; bh=UvoHJ3vI7qTMZfB5Qc/LtbcVt//ZgCtGE45XlCTav2o=; b=JmPAYgXWsFpRZ4T0WsnuIIOjOYXW9plO2pEX4oVHXBKyUi7HkvnAmvM51PbhijE6yW 7PNZcPt7KNFVVXPbEUt9kYJeaaztoUCWPAzFQfvX7ruZ0Zucqny6VIvOW033G+JsMLoM wCfZRFFdGX7lBZOG9QdlOEsWq9cgEfK6zxZEzYvvoXsShLSGATHaX2lyHIr9gm5llTKe s640XGR0kdg6dEa7Nki9AOh5yiQmkA1iXK8eEmU8dzwkzO3QxS4O6K9E4gITYrzVuYuC VSjBES4n/+vr15LtXI7djpBeE8aKbU4WztctyX6+m00/Ii5d6mxAxKFY2RVg+akU4xeh O2TQ== X-Gm-Message-State: APjAAAU1/T4HAU3GRXFZo5hkTqwc//wg8UnEfeAVSsPIgm59ETVRwUST z3o5oDlBI7Z9biETSMwFpl0= X-Google-Smtp-Source: APXvYqwgE/+guY7zhy/2u5vdSIJI55CzbpR9QtbB26PnTjhELU69ZnsEonCITOeQ9CMXZz0vCMYH5w== X-Received: by 2002:adf:f484:: with SMTP id l4mr24335578wro.207.1581961618500; Mon, 17 Feb 2020 09:46:58 -0800 (PST) Received: from localhost (userh634.uk.uudial.com. [194.69.103.7]) by smtp.gmail.com with ESMTPSA id c141sm141193wme.41.2020.02.17.09.46.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Feb 2020 09:46:58 -0800 (PST) From: luca.boccassi@gmail.com To: Itsuro Oda Cc: Maxime Coquelin , dpdk stable Date: Mon, 17 Feb 2020 17:45:32 +0000 Message-Id: <20200217174546.25334-40-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200217174546.25334-1-luca.boccassi@gmail.com> References: <20200211112216.3929-190-luca.boccassi@gmail.com> <20200217174546.25334-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/vhost: fix probing in secondary process' has been queued to stable release 19.11.1 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: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 19.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/19/20. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From 8677e57f66ee737a15c18e4fb42bb3532ce3e99d Mon Sep 17 00:00:00 2001 From: Itsuro Oda Date: Thu, 6 Feb 2020 10:39:35 +0900 Subject: [PATCH] net/vhost: fix probing in secondary process [ upstream commit 75ad5aadbd64fa89d35fa4a38d54e10cdd8e838e ] This patch adds lacking member setting and makes secondary probe complete. Fixes: 4852aa8f6e21 ("drivers/net: enable hotplug on secondary process") Signed-off-by: Itsuro Oda Reviewed-by: Maxime Coquelin --- drivers/net/vhost/rte_eth_vhost.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c index d7bba5c6e2..307de2c682 100644 --- a/drivers/net/vhost/rte_eth_vhost.c +++ b/drivers/net/vhost/rte_eth_vhost.c @@ -1397,8 +1397,11 @@ rte_pmd_vhost_probe(struct rte_vdev_device *dev) VHOST_LOG(ERR, "Failed to probe %s\n", name); return -1; } - /* TODO: request info from primary to set up Rx and Tx */ + eth_dev->rx_pkt_burst = eth_vhost_rx; + eth_dev->tx_pkt_burst = eth_vhost_tx; eth_dev->dev_ops = &ops; + if (dev->device.numa_node == SOCKET_ID_ANY) + dev->device.numa_node = rte_socket_id(); eth_dev->device = &dev->device; rte_eth_dev_probing_finish(eth_dev); return 0; -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-02-17 17:00:16.431357404 +0000 +++ 0040-net-vhost-fix-probing-in-secondary-process.patch 2020-02-17 17:00:15.359951192 +0000 @@ -1,13 +1,14 @@ -From 75ad5aadbd64fa89d35fa4a38d54e10cdd8e838e Mon Sep 17 00:00:00 2001 +From 8677e57f66ee737a15c18e4fb42bb3532ce3e99d Mon Sep 17 00:00:00 2001 From: Itsuro Oda Date: Thu, 6 Feb 2020 10:39:35 +0900 Subject: [PATCH] net/vhost: fix probing in secondary process +[ upstream commit 75ad5aadbd64fa89d35fa4a38d54e10cdd8e838e ] + This patch adds lacking member setting and makes secondary probe complete. Fixes: 4852aa8f6e21 ("drivers/net: enable hotplug on secondary process") -Cc: stable@dpdk.org Signed-off-by: Itsuro Oda Reviewed-by: Maxime Coquelin