[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20160405.194517.431351466693438399.davem@davemloft.net>
Date: Tue, 05 Apr 2016 19:45:17 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: ecree@...arflare.com
Cc: herbert@...dor.apana.org.au, alexander.duyck@...il.com,
aduyck@...antis.com, tom@...bertland.com, jesse@...nel.org,
edumazet@...gle.com, netdev@...r.kernel.org
Subject: Re: [net PATCH v2 2/2] ipv4/GRO: Make GRO conform to RFC 6864
From: Edward Cree <ecree@...arflare.com>
Date: Tue, 5 Apr 2016 16:07:49 +0100
> On the gripping hand, I feel like GRO+TSO is the wrong model for
> speeding up forwarding/routing workloads. Instead we should be
> looking into having lists of SKBs traverse the stack together,
> splitting the list whenever e.g. the destination changes.
"Destination" is a very complicated beast. It's not just a
destination IP address.
It's not even just a full saddr/daddr/TOS triplet.
Packets can be forwarded around based upon any key whatsoever in the
headers. Netfilter can mangle them based upon arbitrary bits in the
packet, as can the packet scheduler classifier actions.
It's therefore not profitable to try this at all, it's completely
pointless unless all the keys match up exactly.
This is why GRO _is_ the proper model to speed this stuff and do
bulk processing, because it still presents a full "packet" to all
of these layers to mangle, rewrite, route, and do whatever else
however they like.
Powered by blists - more mailing lists