Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752719AbdCQC72 (ORCPT ); Thu, 16 Mar 2017 22:59:28 -0400 Received: from mail-it0-f44.google.com ([209.85.214.44]:38298 "EHLO mail-it0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750785AbdCQC70 (ORCPT ); Thu, 16 Mar 2017 22:59:26 -0400 MIME-Version: 1.0 In-Reply-To: <1489719448.28631.279.camel@edumazet-glaptop3.roam.corp.google.com> References: <20170316183142.15806.38824.stgit@localhost.localdomain> <20170316183238.15806.14293.stgit@localhost.localdomain> <1489701936.28631.249.camel@edumazet-glaptop3.roam.corp.google.com> <1489704618.28631.267.camel@edumazet-glaptop3.roam.corp.google.com> <1489719448.28631.279.camel@edumazet-glaptop3.roam.corp.google.com> From: Alexander Duyck Date: Thu, 16 Mar 2017 19:59:24 -0700 Message-ID: Subject: Re: [net-next PATCH 1/5] net: Do not record sender_cpu as napi_id in socket receive paths To: Eric Dumazet Cc: Netdev , "linux-kernel@vger.kernel.org" , "Samudrala, Sridhar" , Eric Dumazet , David Miller Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 603 Lines: 13 On Thu, Mar 16, 2017 at 7:57 PM, Eric Dumazet wrote: > On Thu, 2017-03-16 at 19:40 -0700, Alexander Duyck wrote: > >> What I probably can do is go through and replace all the spots where >> we where checking for sk_napi_id being 0, and instead replace it with >> a check against NR_CPUS. > > This seems a good idea. Right. This is the path I am planning to go with. It will require about the same amount of code change but replaces those checks. I just have to make sure I catch all the spots where we were checking it for 0 but that shouldn't be too difficult of an issue.