Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp36527imm; Thu, 20 Sep 2018 17:43:22 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ0Ku4SeBldYZUkxJNZrjtcoKwthB2o6JnH3/9shlwr4CRRDOb5vCIIUlCHfh+QIQ6pQ8V5 X-Received: by 2002:a17:902:f096:: with SMTP id go22mr42482374plb.183.1537490602509; Thu, 20 Sep 2018 17:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537490602; cv=none; d=google.com; s=arc-20160816; b=s6eEBniJd9sHzYPJ92kvL836A9YEw3ZFUcDhsqK63bxmhLc8rr6do2lmw/B6UgIXYR TQCg16Ucu2wBFzRjAq8Uz1qCqfh14gfzACvWEycnPuSAzq/VF2uLPJB+MvK17tRnmtuf NdE3tK/kfJd3CdpFPV/Ow9f1nkqA4UAWWwbKsUjFpru9YxuaoJR78p0G1isibidodM6U Nve2ixtIsH8F0u03SdqiuJyVhK8v5KhuSxeOWp49qkYDJ701vIUuZNp1/haip2FGWbaW HB7CY5BObu/3ESMHFCAIxLnz5UEOnAfEjxGLsi0/MLSzGxJqUQpDLmGb74iDt+D8RE5P 2aiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=RW4UWCO2GVT8n20Jg/HY/PgpXg61cH9knszH6dzr9tc=; b=cFckuneW0HjQ4bgvIplA9hWnlDwo6sIqW7LLj35UZy83NsL2xp1JOpQ47h78Lgentx GLpqJN9cIw3rDHVIG+6StGmzoJ2iEr7OSZ8Is9ifl66oMdp8Q4pnn4CKn9y0WfEqdjeo MVtGpkIqs6g+D166eHUVi2ae/jdyp2SRi7gTICPvjgBG6s8DX22n3ERIu+X/ZW7AmpcX tCKFVRfJyzfkIh4okyJw2rM301Kra6WVMdfx0GGk7mPmuHdZIVMYBWmKLOc5K4oP5p5Y sXOQItRrGo2fcwP4xfH7aWc9ytCcQzCWUgqwUVp9sB6sRGgxKIZ4dD3xUVxRV5FrcEj1 ctjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=XFtz6rek; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7-v6si25277839pgi.261.2018.09.20.17.43.06; Thu, 20 Sep 2018 17:43:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=XFtz6rek; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388810AbeIUG1o (ORCPT + 99 others); Fri, 21 Sep 2018 02:27:44 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46059 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725749AbeIUG1m (ORCPT ); Fri, 21 Sep 2018 02:27:42 -0400 Received: by mail-pg1-f196.google.com with SMTP id t70-v6so398835pgd.12 for ; Thu, 20 Sep 2018 17:41:31 -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=RW4UWCO2GVT8n20Jg/HY/PgpXg61cH9knszH6dzr9tc=; b=XFtz6rekOskTPYIbAjPEdF1y3AcLMHZX+EjSr1+gkEO9x5+cT5AdGYNqalLj61/RUv scO41c3dNhbsFvoY8j/wdGTqtysNA46J2maGbA3lhDSiQzBpqFDnpcgel7KDXDMddCqU jqFvu7I286Z0jSzol+lp3JRlyn1ibKB+UgPZYVcHjEEW2roV1Z0V/WGyLl11yabVd8fj 8rpumW8IaY58X76HgvVXyJ7KchDG0m6jnBoYUtj3GpRoREWsxF5EqnudnAku4bLljWZt QGbFBBQPahm3tR3h9GP3USUHnxiB97n+WThJ1mAur2/Spe9ZkzWc0ao5coBfLRE0GzQL IxmQ== 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=RW4UWCO2GVT8n20Jg/HY/PgpXg61cH9knszH6dzr9tc=; b=rst5Jag7A2vCMYEYlXe6ggth4AtTD18TzOFmIhS/Rz+KhrCKTEm40wPJIytrrapeER edDxyfgFjaqqFrGOArxNyT39jtOwCdDqbhKbkAkZGCXYfEabMJSgQYOQP65qiIP8eCoG LEOJuN+HVACQGOUdPPDx0bhD3y3IK8ZdSbscP4nubWkuN6zTtaH2fa5qr7yEaAFVUFum iCtTi4jSZNUHMevWo1vqw2p83bFj9sLwg4FTQqzHtKw70X/mEE+pXip53+h4XI1CcGW6 9fRu9Ll4PqdBxTpraFxGwEytyAzwpxMUG5w6JLf9W4V0uwijsbgTPVEHPylAlGhYECBD Gz/A== X-Gm-Message-State: APzg51CjKRm6a3tR8DoRsjxULlMuPXbyT8+rOx/9FXmHLorS+C0Zi4ae 1Htn3WgV6lRb9/DUuJCInC+5KQ== X-Received: by 2002:a63:f941:: with SMTP id q1-v6mr8868932pgk.213.1537490490536; Thu, 20 Sep 2018 17:41:30 -0700 (PDT) Received: from xeon-e3 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id m20-v6sm54710432pfg.61.2018.09.20.17.41.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Sep 2018 17:41:30 -0700 (PDT) Date: Thu, 20 Sep 2018 17:41:23 -0700 From: Stephen Hemminger To: Haiyang Zhang Cc: "davem@davemloft.net" , "netdev@vger.kernel.org" , "olaf@aepfle.de" , "linux-kernel@vger.kernel.org" , "devel@linuxdriverproject.org" , vkuznets Subject: Re: [PATCH net-next, 1/3] hv_netvsc: Add support for LRO/RSC in the vSwitch Message-ID: <20180920174123.3b86623a@xeon-e3> In-Reply-To: References: <20180920170701.9574-1-haiyangz@linuxonhyperv.com> <20180920170701.9574-2-haiyangz@linuxonhyperv.com> <20180920134725.3e149a0b@xeon-e3> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 20 Sep 2018 20:56:46 +0000 Haiyang Zhang wrote: > > -----Original Message----- > > From: Stephen Hemminger > > Sent: Thursday, September 20, 2018 4:48 PM > > To: Haiyang Zhang > > Cc: Haiyang Zhang ; davem@davemloft.net; > > netdev@vger.kernel.org; olaf@aepfle.de; linux-kernel@vger.kernel.org; > > devel@linuxdriverproject.org; vkuznets > > Subject: Re: [PATCH net-next, 1/3] hv_netvsc: Add support for LRO/RSC in the > > vSwitch > > > > On Thu, 20 Sep 2018 17:06:59 +0000 > > Haiyang Zhang wrote: > > > > > +static inline void rsc_add_data > > > + (struct netvsc_channel *nvchan, > > > + const struct ndis_pkt_8021q_info *vlan, > > > + const struct ndis_tcp_ip_checksum_info *csum_info, > > > + void *data, u32 len) > > > +{ > > > > Could this be changed to look more like a function and skip the inline. > > The compiler will end up inlining it anyway. > > > > static void rsc_add_data(struct netvsc_channel *nvchan, > > How about this? > static inline > void rsc_add_data(struct netvsc_channel *nvchan, > Sure that matches other code in that file