From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] hv_netvsc: simplify receive side calling arguments Date: Fri, 27 Apr 2018 14:46:48 -0400 (EDT) Message-ID: <20180427.144648.1044691814954850626.davem@davemloft.net> References: <20180426213425.13135-1-sthemmin@microsoft.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: haiyangz@microsoft.com, netdev@vger.kernel.org, sthemmin@microsoft.com To: stephen@networkplumber.org Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:56198 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758154AbeD0Squ (ORCPT ); Fri, 27 Apr 2018 14:46:50 -0400 In-Reply-To: <20180426213425.13135-1-sthemmin@microsoft.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Stephen Hemminger Date: Thu, 26 Apr 2018 14:34:25 -0700 > The calls up from the napi poll reading the receive ring had many > places where an argument was being recreated. I.e the caller already > had the value and wasn't passing it, then the callee would use > known relationship to determine the same value. Simpler and faster > to just pass arguments needed. > > Also, add const in a couple places where message is being only read. > > Signed-off-by: Stephen Hemminger Applied, thanks Stephen.