From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751441AbdBJVPx (ORCPT ); Fri, 10 Feb 2017 16:15:53 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:38354 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751060AbdBJVPw (ORCPT ); Fri, 10 Feb 2017 16:15:52 -0500 Date: Fri, 10 Feb 2017 22:15:49 +0100 From: Greg Kroah-Hartman To: Ben Hutchings Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Stephen Hemminger , "David S. Miller" Subject: Re: [PATCH 4.4 01/27] netvsc: reduce maximum GSO size Message-ID: <20170210211549.GA23722@kroah.com> References: <20170113113722.669106991@linuxfoundation.org> <20170113113722.735133158@linuxfoundation.org> <20170209193734.GB3442@decadent.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170209193734.GB3442@decadent.org.uk> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 09, 2017 at 07:37:35PM +0000, Ben Hutchings wrote: > On Fri, 2017-01-13 at 12:38 +0100, Greg Kroah-Hartman wrote: > > 4.4-stable review patch.  If anyone has any objections, please let me know. > > > > ------------------ > > > > From: stephen hemminger > > > > > > [ Upstream commit a50af86dd49ee1851d1ccf06dd0019c05b95e297 ] > > > > Hyper-V (and Azure) support using NVGRE which requires some extra space > > for encapsulation headers. Because of this the largest allowed TSO > > packet is reduced. > > > > For older releases, hard code a fixed reduced value.  For next release, > > there is a better solution which uses result of host offload > > negotiation. > > > > Signed-off-by: Stephen Hemminger > > Signed-off-by: David S. Miller > > Signed-off-by: Greg Kroah-Hartman > > --- > >  drivers/net/hyperv/netvsc_drv.c |    3 +++ > >  1 file changed, 3 insertions(+) > > > > --- a/drivers/net/hyperv/netvsc_drv.c > > +++ b/drivers/net/hyperv/netvsc_drv.c > > @@ -40,6 +40,8 @@ > >   > >  #include "hyperv_net.h" > >   > > +/* Restrict GSO size to account for NVGRE */ > > +#define NETVSC_GSO_MAX_SIZE 62768 > >   > >  #define RING_SIZE_MIN 64 > >  static int ring_size = 128; > > @@ -852,6 +854,7 @@ static int netvsc_set_channels(struct ne > >   } > >   goto recover; > >   } > > + netif_set_gso_max_size(net, NETVSC_GSO_MAX_SIZE); > >   > >   out: > >   netvsc_open(net); > > > > This has been wrongly backported. Please apply the patch below. > > Ben. Many thanks for this, now applied. greg k-h