From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id E36A7A0096 for ; Wed, 8 May 2019 12:16:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D9FE92862; Wed, 8 May 2019 12:16:08 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id EBE024C93 for ; Wed, 8 May 2019 12:16:06 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5C983308A953; Wed, 8 May 2019 10:16:06 +0000 (UTC) Received: from rh.redhat.com (ovpn-117-210.ams2.redhat.com [10.36.117.210]) by smtp.corp.redhat.com (Postfix) with ESMTP id C83121A267; Wed, 8 May 2019 10:16:04 +0000 (UTC) From: Kevin Traynor To: Qiming Yang Cc: David Marchand , dpdk stable Date: Wed, 8 May 2019 11:14:54 +0100 Message-Id: <20190508101534.8984-12-ktraynor@redhat.com> In-Reply-To: <20190508101534.8984-1-ktraynor@redhat.com> References: <20190508101534.8984-1-ktraynor@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Wed, 08 May 2019 10:16:06 +0000 (UTC) Subject: [dpdk-stable] patch 'net/iavf: fix info get' has been queued to LTS release 18.11.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: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to LTS release 18.11.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/13/19. 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. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable-queue This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable-queue/commit/42eead7ab2bae5ecce43dc94087b6a28cf86f483 Thanks. Kevin Traynor --- >From 42eead7ab2bae5ecce43dc94087b6a28cf86f483 Mon Sep 17 00:00:00 2001 From: Qiming Yang Date: Thu, 18 Apr 2019 00:08:34 +0800 Subject: [PATCH] net/iavf: fix info get [ upstream commit e2403c18bf34069b8beb9af8812bb26a554aca45 ] iavf driver reset the dev_info structure. This action will clear the setting in core library. This patch fix that issue. Fixes: 69dd4c3d0898 ("net/avf: enable queue and device") Signed-off-by: Qiming Yang Reviewed-by: David Marchand --- drivers/net/avf/avf_ethdev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/avf/avf_ethdev.c b/drivers/net/avf/avf_ethdev.c index 797f505a8..4dc61d9fe 100644 --- a/drivers/net/avf/avf_ethdev.c +++ b/drivers/net/avf/avf_ethdev.c @@ -499,5 +499,4 @@ avf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) struct avf_info *vf = AVF_DEV_PRIVATE_TO_VF(dev->data->dev_private); - memset(dev_info, 0, sizeof(*dev_info)); dev_info->max_rx_queues = vf->vsi_res->num_queue_pairs; dev_info->max_tx_queues = vf->vsi_res->num_queue_pairs; -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2019-05-08 11:05:06.477365151 +0100 +++ 0012-net-iavf-fix-info-get.patch 2019-05-08 11:05:05.787933640 +0100 @@ -1 +1 @@ -From e2403c18bf34069b8beb9af8812bb26a554aca45 Mon Sep 17 00:00:00 2001 +From 42eead7ab2bae5ecce43dc94087b6a28cf86f483 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit e2403c18bf34069b8beb9af8812bb26a554aca45 ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -15 +16 @@ - drivers/net/iavf/iavf_ethdev.c | 1 - + drivers/net/avf/avf_ethdev.c | 1 - @@ -18,6 +19,6 @@ -diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c -index 846e604a6..7825cbc85 100644 ---- a/drivers/net/iavf/iavf_ethdev.c -+++ b/drivers/net/iavf/iavf_ethdev.c -@@ -499,5 +499,4 @@ iavf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) - struct iavf_info *vf = IAVF_DEV_PRIVATE_TO_VF(dev->data->dev_private); +diff --git a/drivers/net/avf/avf_ethdev.c b/drivers/net/avf/avf_ethdev.c +index 797f505a8..4dc61d9fe 100644 +--- a/drivers/net/avf/avf_ethdev.c ++++ b/drivers/net/avf/avf_ethdev.c +@@ -499,5 +499,4 @@ avf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) + struct avf_info *vf = AVF_DEV_PRIVATE_TO_VF(dev->data->dev_private);