From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Duyck Subject: Re: [RFC PATCH 07/11] GENEVE: Add option to mangle IP IDs on inner headers when using TSO Date: Sat, 9 Apr 2016 11:32:09 -0700 Message-ID: References: <20160407222211.11142.41024.stgit@ahduyck-xeon-server> <20160407223237.11142.33072.stgit@ahduyck-xeon-server> <1460224948.6473.511.camel@edumazet-glaptop3.roam.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Jesse Gross , Alexander Duyck , Herbert Xu , Tom Herbert , Eric Dumazet , Linux Kernel Network Developers , David Miller To: Eric Dumazet Return-path: Received: from mail-io0-f169.google.com ([209.85.223.169]:36218 "EHLO mail-io0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759023AbcDIScL (ORCPT ); Sat, 9 Apr 2016 14:32:11 -0400 Received: by mail-io0-f169.google.com with SMTP id q128so166200626iof.3 for ; Sat, 09 Apr 2016 11:32:10 -0700 (PDT) In-Reply-To: <1460224948.6473.511.camel@edumazet-glaptop3.roam.corp.google.com> Sender: netdev-owner@vger.kernel.org List-ID: On Sat, Apr 9, 2016 at 11:02 AM, Eric Dumazet wrote: > On Sat, 2016-04-09 at 10:36 -0700, Alexander Duyck wrote: > >> For next version I plan to include a check in netif_skb_features that >> will clear NETIF_F_TSO_MANGLEID if the DF bit is not set. > > So it looks like we slowly but surely make the whole stack damn slow, to > support some extra features. > > How many instructions are needed nowadays for netif_skb_features() > alone ? > > More than 120 if I am not mistaken, if we count fast path in > skb_network_protocol() > > Note: I have a patch to remove the gso_min_segs thing, currently unused. > > 2 instructions saved ! Woo-hoo ! I was planning to drop the checks for TSO_MANGLEID and GSO_PARTIAL in a if statment based on skb_is_gso() since I had both GSO_PARTIAL to check for as well. - Alex