Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754578AbdGUTVR (ORCPT ); Fri, 21 Jul 2017 15:21:17 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:51082 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753602AbdGUTVP (ORCPT ); Fri, 21 Jul 2017 15:21:15 -0400 Date: Fri, 21 Jul 2017 20:21:13 +0100 (WEST) Message-Id: <20170721.202113.583238690576835181.davem@davemloft.net> To: john@phrozen.org Cc: pabeni@redhat.com, edumazet@google.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [RFC 1/2] net-next: add a dma_desc element to struct skb_shared_info From: David Miller In-Reply-To: <6bcc6463-c2e7-5f56-22b0-f49bb369ce1c@phrozen.org> References: <20170721152035.6645-2-john@phrozen.org> <1500652599.3924.10.camel@redhat.com> <6bcc6463-c2e7-5f56-22b0-f49bb369ce1c@phrozen.org> X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 21 Jul 2017 12:21:15 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1460 Lines: 35 From: John Crispin Date: Fri, 21 Jul 2017 19:01:57 +0200 > When the flow offloading engine forwards a packet to the DMA it will > send additional info to the sw path. this includes > * physical switch port > * internal flow hash - this is required to populate the correct flow > * table entry > * ppe state - this indicates what state the PPEs internal table is in > * for the flow > * the reason why the packet was forwarde - these are things like bind, > * unbind, timed out, ... > > once the flow table offloading patches are ready and upstream, the > netfilter layer will see the SKB and pass it o to the flow table > offloading code, at which point it will finally end up inside the > offloading driver. this will need to have access to this info sent to > the sw path inside the rx descriptor to properly work out what state > the flow is in and which table entry to populate in the HW table for > offloading to work. You absolutely must justify any change to a core data structure alongside the complete and full set of patches that actually make use of that data structure change. You can't just say "here is the data structure change and BTW what actually uses this is somewhere else, and not here on the list yet." That makes it impossible to 1) evaluate the correctness of your change and 2) validate the actual use so we can suggest alternative schemes and/or approaches. So please don't suggest changes this way. Thanks.