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 D8EB1A00E6 for ; Wed, 17 Apr 2019 10:46:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AD1CD1B5D1; Wed, 17 Apr 2019 10:46:35 +0200 (CEST) Received: from mail-ua1-f67.google.com (mail-ua1-f67.google.com [209.85.222.67]) by dpdk.org (Postfix) with ESMTP id 587141B5C5 for ; Wed, 17 Apr 2019 10:46:32 +0200 (CEST) Received: by mail-ua1-f67.google.com with SMTP id g8so7668117uaj.0 for ; Wed, 17 Apr 2019 01:46:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0iyHZmPIbBs9CnHgKRZvPvTVcRHqVuYgR11zkBcLFVo=; b=rFFWEWnooZ/ZIfJa+yipLOlco1aCNMOrsphWieuXoPn9yYGhqbm1XJ824YU6V/JcRV fQcGJA0pkCROlVC+FQlYbXhPR5ucg4P7DLBmst5z0rR3TF2uQm/SRrkJKmn+D1nXGLrJ B6FsEWQ0CcdvgGQkXETTG0W3Wlf9EiD7XjbPYM0aDOI7nYngMN3jNvLEON70noBs00TF aRJDGW7PsK1oyszpJyRug7pttY3sH30dY6i+gDJAAzdo4RSNIe2kV7aR+V3tTxP0g2Mg qdELltZu70q7q0F/GZ7RmnullWGWt5MhPZJTdjM7gdGHXSgRjjch7R/aZvrFrmyO4dQ/ pAGA== X-Gm-Message-State: APjAAAXbRqRwFH98nAUkTpIYk4XfFy0LV+NqCOHyr4byPtb+uZPDzh0X TL4UerhIibOG8oM1cy09y9zVI2hfhP0bN+pGhMsSAA== X-Google-Smtp-Source: APXvYqxkVXC0qJ2TnU0liRDVIuoqxXLkp+9mKwnpyTdj12brWjEzielGz7mvCg4ndv46nHqe/0VDfjyGArMb5JypK+0= X-Received: by 2002:ab0:6994:: with SMTP id t20mr35750005uaq.105.1555490791662; Wed, 17 Apr 2019 01:46:31 -0700 (PDT) MIME-Version: 1.0 References: <20190417160834.75103-1-qiming.yang@intel.com> In-Reply-To: <20190417160834.75103-1-qiming.yang@intel.com> From: David Marchand Date: Wed, 17 Apr 2019 10:46:20 +0200 Message-ID: To: Qiming Yang Cc: dev , dpdk stable Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] net/iavf: fix info get 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" On Wed, Apr 17, 2019 at 10:41 AM Qiming Yang wrote: > 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") > "Cc: stable@dpdk.org" is supposed to be part of the commitlog. See http://doc.dpdk.org/guides/contributing/stable.html#what-changes-should-be-backported > Signed-off-by: Qiming Yang > --- > drivers/net/iavf/iavf_ethdev.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/net/iavf/iavf_ethdev.c > b/drivers/net/iavf/iavf_ethdev.c > index 846e604..7825cbc 100644 > --- a/drivers/net/iavf/iavf_ethdev.c > +++ b/drivers/net/iavf/iavf_ethdev.c > @@ -498,7 +498,6 @@ 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); > > - 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; > dev_info->min_rx_bufsize = IAVF_BUF_SIZE_MIN; > -- > 2.9.5 > > Reviewed-by: David Marchand -- David Marchand