From patchwork Thu Jun 28 01:15:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Harton X-Patchwork-Id: 41731 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 49E083772; Thu, 28 Jun 2018 03:15:53 +0200 (CEST) Received: from alln-iport-7.cisco.com (alln-iport-7.cisco.com [173.37.142.94]) by dpdk.org (Postfix) with ESMTP id 4D9852D13 for ; Thu, 28 Jun 2018 03:15:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=966; q=dns/txt; s=iport; t=1530148552; x=1531358152; h=from:to:cc:subject:date:message-id; bh=6Pq3LPlB/O5xTAAzBVdP8KPPMC2/e/RYBLC5fgmKiTE=; b=Vi8lZBunkXPacQtk51sFYQdSpIAoPT+SdOdUJwnFrQNFuPCzJJi1eSgP MnVnoErqiJrTfQ03Gd6TW+Q4LNpOeqXqq5xxNAl6p76j7zd83REP8d8k3 243U7ETQJZJUZlyMuyVl629Lz57Njf+t7zGhcB7SrGDxxdScBW7AwmNYC Q=; X-IronPort-AV: E=Sophos;i="5.51,281,1526342400"; d="scan'208";a="135074228" Received: from rcdn-core-11.cisco.com ([173.37.93.147]) by alln-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jun 2018 01:15:51 +0000 Received: from cpp-rtpbld-31.cisco.com (cpp-rtpbld-31.cisco.com [172.18.5.114]) by rcdn-core-11.cisco.com (8.14.5/8.14.5) with ESMTP id w5S1FoaE009942; Thu, 28 Jun 2018 01:15:51 GMT Received: by cpp-rtpbld-31.cisco.com (Postfix, from userid 140087) id CA86886F; Wed, 27 Jun 2018 21:15:50 -0400 (EDT) From: David Harton To: beilei.xing@intel.com, qi.z.zhang@intel.com Cc: dev@dpdk.org, David Harton , helin.zhang@intel.com Date: Wed, 27 Jun 2018 21:15:38 -0400 Message-Id: <20180628011538.2974-1-dharton@cisco.com> X-Mailer: git-send-email 2.10.3.dirty Subject: [dpdk-dev] [PATCH] net/i40e: remove memset in i40evf_dev_info_get X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" i40evf_dev_info_get clears dev_info when data has already been set by the calling function. Remove the call to memset() to fix the problem. Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: helin.zhang@intel.com Signed-off-by: David Harton --- drivers/net/i40e/i40e_ethdev_vf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index 804e445..86b38d2 100644 --- a/drivers/net/i40e/i40e_ethdev_vf.c +++ b/drivers/net/i40e/i40e_ethdev_vf.c @@ -2182,7 +2182,6 @@ i40evf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) { struct i40e_vf *vf = I40EVF_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 = I40E_BUF_SIZE_MIN;