Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754237AbdCWWGA (ORCPT ); Thu, 23 Mar 2017 18:06:00 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:35818 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751584AbdCWWFz (ORCPT ); Thu, 23 Mar 2017 18:05:55 -0400 Message-ID: <1490306752.9687.7.camel@edumazet-glaptop3.roam.corp.google.com> Subject: Re: [net-next PATCH v2 1/8] net: Busy polling should ignore sender CPUs From: Eric Dumazet To: Alexander Duyck Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, sridhar.samudrala@intel.com, edumazet@google.com, davem@davemloft.net, linux-api@vger.kernel.org Date: Thu, 23 Mar 2017 15:05:52 -0700 In-Reply-To: <20170323213637.12615.11197.stgit@localhost.localdomain> References: <20170323211820.12615.88907.stgit@localhost.localdomain> <20170323213637.12615.11197.stgit@localhost.localdomain> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 690 Lines: 17 On Thu, 2017-03-23 at 14:36 -0700, Alexander Duyck wrote: > From: Alexander Duyck > > This patch is a cleanup/fix for NAPI IDs following the changes that made it > so that sender_cpu and napi_id were doing a better job of sharing the same > location in the sk_buff. > > One issue I found is that we weren't validating the napi_id as being valid > before we started trying to setup the busy polling. This change corrects > that by using the MIN_NAPI_ID value that is now used in both allocating the > NAPI IDs, as well as validating them. > > Signed-off-by: Alexander Duyck > --- Acked-by: Eric Dumazet