From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f176.google.com (mail-pf0-f176.google.com [209.85.192.176]) by dpdk.org (Postfix) with ESMTP id 28FD6378B for ; Wed, 5 Jul 2017 21:07:47 +0200 (CEST) Received: by mail-pf0-f176.google.com with SMTP id q86so134031365pfl.3 for ; Wed, 05 Jul 2017 12:07:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wcQ+ib+KOQ98JL6MgNoTtyk2k4G4K33oOucUc4AMEeI=; b=tqgq63mqLckXt73ptY9fKESzT93GSyUcCNZR/xLb4o5p19TI5XAW5ayHvhkeu82Ato wMK9QkyHiN7C1Nft3AWz3+S9LK/xFKy/AKuKzBjy6SIapBbay4YyT782xj4eXTdVO74l cV0HN1Tg277tPGgbGSXoG61NOdnbqE0QUHE63eBZBqTTmv9VLOqhof+0JxQj3JQ7d4cR 4XxfcMd3SbuP+3lNh9clxMnuA88ija8UP2dl/6+EEtoxBkUul/nyn58cL6CBhi7sYAob 5/zl32lZfWq29nly56J37keqXHdZl5SDH19pAAo+gpGZwj6R9lY2zpZdW1O5IIk4oWzK 0E3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wcQ+ib+KOQ98JL6MgNoTtyk2k4G4K33oOucUc4AMEeI=; b=sY+Wqr6rdTkdwGv4kBFRvvP+hoJrSTQge98NtUhRFvbBl1V10+15lQsT4pDW0GEIcE 7o3JzdPLDbQIoQ9VwnaqObyicBwJcZCDsI059GI9mNNthT1ETmfoewruv3DMGGucPqWo HLngjhSZqjm0kPPlGEt0bLFmOhp3/Nygy5kGtMlyFfTEGlvoe7ktSl5ifTKOJDoVaMDT gpWv+8Yn0tO4auBF28xenlxWSp5vHGYs+SPlXLIAy4/wvDHi8A0sTIDuWiYg+yzMME3Z dPb6Uz4r+1c6eSNrefajkszT44YZaRL6LNepN7LathjDrRrxs7kgIjYM3T6mG89g/O/d xXUQ== X-Gm-Message-State: AIVw113pw2Mm+SLz3aHy8+1JXfOYLHHxIkl15ql4O6tL5Sc1+MWgK85e REeyY+sUa3MLI9fo X-Received: by 10.99.171.66 with SMTP id k2mr22690676pgp.248.1499281666477; Wed, 05 Jul 2017 12:07:46 -0700 (PDT) Received: from xeon-e3 (76-14-207-240.or.wavecable.com. [76.14.207.240]) by smtp.gmail.com with ESMTPSA id m79sm53014480pfk.117.2017.07.05.12.07.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Jul 2017 12:07:46 -0700 (PDT) Date: Wed, 5 Jul 2017 12:07:44 -0700 From: Stephen Hemminger To: Ferruh Yigit Cc: dev@dpdk.org, Bruce Richardson , Anatoly Burakov Message-ID: <20170705120744.72b0c796@xeon-e3> In-Reply-To: <20170704161337.45926-14-ferruh.yigit@intel.com> References: <20170630165140.59594-1-ferruh.yigit@intel.com> <20170704161337.45926-1-ferruh.yigit@intel.com> <20170704161337.45926-14-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v10 13/20] unci: add ethtool support 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: , X-List-Received-Date: Wed, 05 Jul 2017 19:07:47 -0000 On Tue, 4 Jul 2017 17:13:30 +0100 Ferruh Yigit wrote: > +static void unci_get_drvinfo(struct net_device *dev, > + struct ethtool_drvinfo *info) > +{ > + int ret; > + > + ret = unci_nl_exec(info->cmd, dev, NULL, 0, > + info, sizeof(struct ethtool_drvinfo)); > + if (ret < 0) > + memset(info, 0, sizeof(struct ethtool_drvinfo)); > +} drvinfo is already zero'd in net/core/ethtool.c