From mboxrd@z Thu Jan 1 00:00:00 1970 From: Edward Cree Subject: Re: [net PATCH v2 2/2] ipv4/GRO: Make GRO conform to RFC 6864 Date: Wed, 6 Apr 2016 16:55:47 +0100 Message-ID: <57053183.6030002@solarflare.com> References: <20160405043209.GA9822@gondor.apana.org.au> <5703D4C5.9060305@solarflare.com> <20160405.194517.431351466693438399.davem@davemloft.net> <5704F156.8030804@solarflare.com> <57051C79.7010303@solarflare.com> <1459957158.6473.363.camel@edumazet-glaptop3.roam.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: Tom Herbert , David Miller , Herbert Xu , Alexander Duyck , Alex Duyck , Jesse Gross , Eric Dumazet , Linux Kernel Network Developers To: Eric Dumazet Return-path: Received: from nbfkord-smmo02.seg.att.com ([209.65.160.78]:15282 "EHLO nbfkord-smmo02.seg.att.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752307AbcDFP4Y (ORCPT ); Wed, 6 Apr 2016 11:56:24 -0400 In-Reply-To: <1459957158.6473.363.camel@edumazet-glaptop3.roam.corp.google.com> Sender: netdev-owner@vger.kernel.org List-ID: On 06/04/16 16:39, Eric Dumazet wrote: > Look at the mess of some helpers in net/core/skbuff.c, and imagine the > super mess it would be if using a concept of 'super packet with various > headers on each segment'. Maybe I'm still not explaining this very well, but there is _no_ concept of 'super packet [anything]' in this idea. There is just 'list of skbs that were all received in the same NAPI poll, and have not yet been determined to be different'. Any layer that doesn't want to deal with this stuff will always have the option of "while (skb = skb_dequeue(list)) my_normal_receive_function(skb);" and in fact I'd make that happen by default for anything that hadn't registered a function to take a list. > netfilter is already complex, it would become a nightmare. A netfilter hook could, for instance, run on each packet in the list, then partition the list into sub-lists of packets that all had the same verdict (letting go of any that were DROP or STOLEN). That doesn't seem like it should be nightmarish. -Ed