From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964915AbcBCRjy (ORCPT ); Wed, 3 Feb 2016 12:39:54 -0500 Received: from smtp-out6.electric.net ([192.162.217.183]:56300 "EHLO smtp-out6.electric.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933336AbcBCRjx convert rfc822-to-8bit (ORCPT ); Wed, 3 Feb 2016 12:39:53 -0500 From: David Laight To: "'Herbert Xu'" , 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 , =?Windows-1252?Q?Linus_L=FCssing?= , Tejun Heo , Andrew Morton , Alexey Kodanev , =?Windows-1252?Q?H=E5kon_Bugge?= , open list , "open list:NETWORKING [GENERAL]" Subject: RE: [PATCH v3] net:Add sysctl_max_skb_frags Thread-Topic: [PATCH v3] net:Add sysctl_max_skb_frags Thread-Index: AQHRXn0Ol1Ird1KLrUuwhdg1KBRNj58aktLA Date: Wed, 3 Feb 2016 17:36:24 +0000 Message-ID: <063D6719AE5E284EB5DD2968C1650D6D1CCD585F@AcuExch.aculab.com> 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> <20160203122052.GA28619@gondor.apana.org.au> In-Reply-To: <20160203122052.GA28619@gondor.apana.org.au> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.202.99.200] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Outbound-IP: 213.249.233.130 X-Env-From: David.Laight@ACULAB.COM X-PolicySMART: 3396946, 3397078 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Herbert Xu > Sent: 03 February 2016 12:21 > 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. And if a MAC driver needs to linearize a tx frame it might as well copy it into a separately allocated tx buffer area. Indeed it can copy fragments until the number left is less than the fragment limit. David