From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [RFC PATCH 07/11] GENEVE: Add option to mangle IP IDs on inner headers when using TSO Date: Sat, 09 Apr 2016 11:02:28 -0700 Message-ID: <1460224948.6473.511.camel@edumazet-glaptop3.roam.corp.google.com> References: <20160407222211.11142.41024.stgit@ahduyck-xeon-server> <20160407223237.11142.33072.stgit@ahduyck-xeon-server> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Jesse Gross , Alexander Duyck , Herbert Xu , Tom Herbert , Eric Dumazet , Linux Kernel Network Developers , David Miller To: Alexander Duyck Return-path: Received: from mail-qk0-f179.google.com ([209.85.220.179]:33051 "EHLO mail-qk0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751210AbcDISCc (ORCPT ); Sat, 9 Apr 2016 14:02:32 -0400 Received: by mail-qk0-f179.google.com with SMTP id k135so52231659qke.0 for ; Sat, 09 Apr 2016 11:02:32 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: 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 !