From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH net-next] virtio_net: force_napi_tx module param. Date: Mon, 23 Jul 2018 17:53:26 -0700 Message-ID: <20180723175326.583ce2b8@xeon-e3> References: <20180723231119.142904-1-caleb.raitto@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: mst@redhat.com, jasowang@redhat.com, davem@davemloft.net, netdev@vger.kernel.org, Caleb Raitto To: Caleb Raitto Return-path: Received: from mail-pg1-f193.google.com ([209.85.215.193]:40219 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388190AbeGXB5R (ORCPT ); Mon, 23 Jul 2018 21:57:17 -0400 Received: by mail-pg1-f193.google.com with SMTP id x5-v6so1578287pgp.7 for ; Mon, 23 Jul 2018 17:53:29 -0700 (PDT) In-Reply-To: <20180723231119.142904-1-caleb.raitto@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On Mon, 23 Jul 2018 16:11:19 -0700 Caleb Raitto wrote: > From: Caleb Raitto > > The driver disables tx napi if it's not certain that completions will > be processed affine with tx service. > > Its heuristic doesn't account for some scenarios where it is, such as > when the queue pair count matches the core but not hyperthread count. > > Allow userspace to override the heuristic. This is an alternative > solution to that in the linked patch. That added more logic in the > kernel for these cases, but the agreement was that this was better left > to user control. > > Do not expand the existing napi_tx variable to a ternary value, > because doing so can break user applications that expect > boolean ('Y'/'N') instead of integer output. Add a new param instead. > > Link: https://patchwork.ozlabs.org/patch/725249/ > Acked-by: Willem de Bruijn > Acked-by: Jon Olson > Signed-off-by: Caleb Raitto > --- Not a fan of this. Module parameters are frowned on by the distributions because they never get well tested and they force the user to do magic things to enable features. It looks like you are using it to paper over a bug in this case.