Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753376Ab3EUT0L (ORCPT ); Tue, 21 May 2013 15:26:11 -0400 Received: from mga14.intel.com ([143.182.124.37]:18318 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752520Ab3EUT0J (ORCPT ); Tue, 21 May 2013 15:26:09 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,715,1363158000"; d="scan'208";a="244777060" Message-ID: <519BCA37.4020707@linux.intel.com> Date: Tue, 21 May 2013 22:25:43 +0300 From: Eliezer Tamir User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Eric Dumazet CC: Pekka Riikonen , Dave Miller , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Jesse Brandeburg , Don Skidmore , e1000-devel@lists.sourceforge.net, Willem de Bruijn , Andi Kleen , HPA , Eliezer Tamir Subject: Re: [PATCH v3 net-next 1/4] net: implement support for low latency socket polling References: <20130520101552.14133.45953.stgit@ladj378.jer.intel.com> <20130520101601.14133.874.stgit@ladj378.jer.intel.com> <1369063764.3301.182.camel@edumazet-glaptop> <519B2237.20204@linux.intel.com> <1369142926.3301.213.camel@edumazet-glaptop> <1369158499.3301.236.camel@edumazet-glaptop> <1369158686.3301.237.camel@edumazet-glaptop> In-Reply-To: <1369158686.3301.237.camel@edumazet-glaptop> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 958 Lines: 26 On 21/05/2013 20:51, Eric Dumazet wrote: > On Tue, 2013-05-21 at 10:48 -0700, Eric Dumazet wrote: > >> We do not keep skb->dev information once a packet leaves the rcu >> protected region. >> >> Once packet is queued to tcp input queues, skb->dev is NULL. > > This is done in tcp_v4_rcv() & tcp_v6_rcv() So if we move calling sk_mark_ll() into the rcu protected region, We would not need the gen id in the skb. We could save skb->dev and skb->queue_mapping along with the generation id in the socket. then we don't need to change the skb struct at all. skb_mark_ll() can go away. we also call sk_mark_ll in one central place in net_protocol->handler instead of all over the place. or am I missing something? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/