Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp197595pxf; Thu, 8 Apr 2021 00:31:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLJ3d+uqzab8G78TN60t1O25XfndeG0XEDqK2u+qq7ewNSupY1wWb9RPJgtGqeGOIyKUsm X-Received: by 2002:a17:90b:8c3:: with SMTP id ds3mr7087342pjb.71.1617867068265; Thu, 08 Apr 2021 00:31:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617867068; cv=none; d=google.com; s=arc-20160816; b=SP/zctOvuBABu5iragytnKs4brP3crqV1uF/zHPrXrUsr7qo34BMcmlqw960MNy1so BgQdvqJ70AuwfL4FW9/fO29Pv5ehAsrSXEEdTyeVn2U4M4Pz9EUSrTCkTApp9iGJbAAZ P1DJYcG6H5ZhBkbRW1dheOP8cWohSonXZaPDkBf/R1rtXUNr3oYgZe2HmzF6pRilOnRE KPSotlO3jeT8jWQJPObIcaGCeH7eiYWk+9H3WnbBOg3911/evdNozIS0+L7HFgovjeK+ htFmeF2nuRpgXg0QZABjTOxUaeFmlAjCiryn7JMN0GyR7+YTvtxyM31cjMkLwwhEerxk vmKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=L01UWxC/4o0SajZiWsA7cCRXDVV4or6Sx605WKdnD6k=; b=xtgfmPKC6cCW1Is/SWDiLUs7O6EC1plVFAxgC6zFA2XBC+3hCD3ojzpuqsKNeM17LE +UZXqY3V8T2O7Hld6umQUfP7OG5Q4oFqwfoAtimCroET978r5mZ2W/CNnopcDeB2sBg9 JUwzzh4gnm0dp0S7GK4Srh5H6hAd1lGZ9uqNxbUoRlCDQT0vmu8aVifKn87TniFq5o1F GmVYqc+GR4nDxiHBvrccURLMzFI+ViP0AoOTqYU7LeHglNxiVv71gzS9a9nSvFMsdoVe 9wR8+R/IkDxqtPUdaI4rnDxjvOAJgJMC9xCM1swYSW2ICoK2mVywJd9+FKUcwPd9Zv9Z P8aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pmcV+UZl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u3si26873504plf.328.2021.04.08.00.30.56; Thu, 08 Apr 2021 00:31:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pmcV+UZl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230303AbhDHHaY (ORCPT + 99 others); Thu, 8 Apr 2021 03:30:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:52310 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229996AbhDHHaX (ORCPT ); Thu, 8 Apr 2021 03:30:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D8D5B60FF1; Thu, 8 Apr 2021 07:30:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617867012; bh=dqWevd8TMMouKEzqODSdYkGf0l5CEKUdFbPterV++cE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pmcV+UZluXt6uUoGqr7RBAHxoOvUY3cCS7vWIzj3aQl+LUWSrJv2lYVWCXBn047Ra oZlt17xRyZsSAXQlHVfyjRk754uov3ff0l22xGdPD1stwp4dqYQ2jx7mFfDqGPsG+r OSQcfjf23acIhXkRm+442dkwxodrxsOWUqLLB86w+tgAo0kUq7aSqOr+O3rFQ3DC1c e/69rj3LSFGPVejOXUTmH1u5KfP9u9aSnStGq/dcNKtjlsAunOg0NLQwx7tk9XdggB Eb7Aj/gLYCeop9Q5kTwhhHudw7Hx/0uPq4Lojq8Dm+yvSwiOV37OnoJl6QkVmOmL+d w/mKdJpA9VwTA== Date: Thu, 8 Apr 2021 10:30:05 +0300 From: Leon Romanovsky To: Dexuan Cui Cc: Andrew Lunn , "davem@davemloft.net" , "kuba@kernel.org" , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "wei.liu@kernel.org" , Wei Liu , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" Subject: Re: [PATCH net-next] net: mana: Add a driver for Microsoft Azure Network Adapter (MANA) Message-ID: References: <20210406232321.12104-1-decui@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 07, 2021 at 09:59:52PM +0000, Dexuan Cui wrote: > > From: Leon Romanovsky > > Sent: Wednesday, April 7, 2021 5:45 AM > > > > > > > > BTW, you don't need to write { 0 }, the {} is enough. > > > > > > Thanks for the suggestion! I'll use {0} in v2. > > > > You missed the point, "{ 0 }" change to be "{}" without 0. > > Got it. Will make the suggested change. The numbers are not important, if you are curious, read this thread, it talks about {}, {0}, memset(0,..) and padding :) https://lore.kernel.org/linux-rdma/20200730192026.110246-1-yepeilin.cs@gmail.com/ > > FWIW, {0} and { 0 } are still widely used, but it looks like > {} is indeed more preferred: > > $ grep "= {};" drivers/net/ -nr | wc -l > 829 > > $ grep "= {0};" drivers/net/ -nr | wc -l > 708 > > $ grep "= {};" kernel/ -nr | wc -l > 29 > > $ grep "= {0};" kernel/ -nr | wc -l > 4