From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755657AbcBCMV4 (ORCPT ); Wed, 3 Feb 2016 07:21:56 -0500 Received: from helcar.hengli.com.au ([209.40.204.226]:57469 "EHLO helcar.hengli.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754105AbcBCMVy (ORCPT ); Wed, 3 Feb 2016 07:21:54 -0500 Date: Wed, 3 Feb 2016 20:20:52 +0800 From: Herbert Xu To: Hannes Frederic Sowa Cc: Hans Westgaard Ry , "David S. Miller" , Alexey Kuznetsov , James Morris , Hideaki YOSHIFUJI , Patrick McHardy , Tom Herbert , Pablo Neira Ayuso , Eric Dumazet , Florian Westphal , Jiri Pirko , Alexander Duyck , Michal Hocko , Linus =?iso-8859-1?Q?L=FCssing?= , Tejun Heo , Andrew Morton , Alexey Kodanev , =?iso-8859-1?Q?H=E5kon?= Bugge , open list , "open list:NETWORKING [GENERAL]" Subject: Re: [PATCH v3] net:Add sysctl_max_skb_frags Message-ID: <20160203122052.GA28619@gondor.apana.org.au> References: <568F87AC.60405@oracle.com> <1454488017-8822-1-git-send-email-hans.westgaard.ry@oracle.com> <20160203112550.GB28003@gondor.apana.org.au> <56B1E635.8020707@stressinduktion.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56B1E635.8020707@stressinduktion.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 03, 2016 at 12:36:21PM +0100, Hannes Frederic Sowa wrote: > > Agreed that it feels like a hack, but a rather simple one. I would > consider this to be just a performance improvement. We certainly need > a slow-path when virtio drivers submit gso packets to the stack (and > already discussed with Hans). The sysctl can't help here. But without > the sysctl the packets would constantly hit the slow-path in case of > e.g. IPoIB and that would also be rather bad. So you want to penalise every NIC in the system if just one of them is broken? This is insane. Just do the partial linearisation in that one driver that needs it and not only won't you have to penalise anyone else but you still get the best result for that driver that needs it. Besides, you have to implement the linearisation anyway because of virtualisation. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt