Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1334111rwb; Tue, 27 Sep 2022 11:30:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6zh4SLsD14gDhABz06G0PsHZzY4+sY9TJIQjctFauxzwi0H4EJ9cfCOrCdi+vo8SSJ/og+ X-Received: by 2002:a05:6a00:114f:b0:528:2c7a:634c with SMTP id b15-20020a056a00114f00b005282c7a634cmr30206654pfm.41.1664303424942; Tue, 27 Sep 2022 11:30:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664303424; cv=none; d=google.com; s=arc-20160816; b=Ew31jauFdE/Ffg5Kvb1BSbvz5hyuFb5Ve6udW5GwBMW+7xf+Y3hNU/426g4xeAE0Li dtXtccAPEhGj+2THXn2bh7xh5T8FrB7uKrwaWw5Ras+/L+0NjhhcMR0OHUvHzOoH9qqV eGiMhZU/JQxSM58t7FOaZHoZ2wyKYaOboUsDTxHzlrdQIW/8QVsZ32QmtMRRZsDD6Hzw oE/K030xzFD/MgejFE2GBeTOusSAkaVA30KaeCOqSOvqt3LtOFiT4A+W/i4uGMpsYyPw liCLlpPQyDsY/7P79EF9mdRXGOBVN8hKKADmVbzR+ZU4Gp/kXo6cnRWu4EeEQ1KQDWSe QFhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=/GFl4iWY+RMuokJWnOrAhPXdkiFxOy03HujEkcxraEQ=; b=iOoV3Okgyg5GAs8HTXZOtU1ilmqXo9ehAvcqKM/DVOIkvlPpchHGvUdF0/lctgkzS1 uiijifny2rNAqZRME3YLOinaDIcFpNrE3mdDTYvfLLZ2ZtOxtUXfeK9tNaJYVqg+ou3n wkh9upRB+n8hBd9+jrryBb41+kQYLMpDIG+gJ1GRQ9JOXcPnt/JOB5duZ/H0PtWbCVvS aJYqEP55/BzG6lhKqenRLpHQJT03Q3lwHDCsX3n+0jy6KY7/l9/dmNseam7j2K/Zw0dB gz7HOfgqwfxgje2RWJfhyYhVeyme3VrCuQNZeIi5nWwv/TKlM6gq5OgPOljR1pUIbG9+ XEww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O9BF0NWx; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w37-20020a634925000000b0043961d06befsi2650334pga.486.2022.09.27.11.30.16; Tue, 27 Sep 2022 11:30:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O9BF0NWx; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231961AbiI0SSD (ORCPT + 61 others); Tue, 27 Sep 2022 14:18:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229550AbiI0SSB (ORCPT ); Tue, 27 Sep 2022 14:18:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8981FFA63; Tue, 27 Sep 2022 11:18:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7498761B22; Tue, 27 Sep 2022 18:18:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82F31C433D7; Tue, 27 Sep 2022 18:17:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664302679; bh=PhqML3o0FkjVwOp6KVZGd/fjTJC+ahaQOUgedohAt9c=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=O9BF0NWxQG/GX5/1PpsNZRWeA6L4xHy1XnkRwbbUmXr9xkmWhhUT+W+fhniPtI+7Z f7ppcUG0P3Peb4NUShHh6ocbxAJfsN/tdg02OivDUN3f0x7yMgJEqpcluLwJO3xH6D cMoQ2uPO1wTUneae0NqU0AJexW8BeRnDP4+xPWg9dtk1TDKKY+GMndrgemzhPfOHfQ yxT/1GBinvxFhI0OMYcYM2ft4KzqXn95O2ei/qc3bAfEtdzokteRRgFcsh3AqAcsz2 346nQTcHsKTs2nMqTQdcOh2szJbXzv5zk0NzlQcJeGGElSh/7DmMat/ZA9WvqUZK+n hc8WEe9ZFcBGg== Date: Tue, 27 Sep 2022 11:17:58 -0700 From: Jakub Kicinski To: Eric Dumazet Cc: David Miller , netdev , Paolo Abeni , kvalo@kernel.org, Johannes Berg , linux-wireless , Marc Kleine-Budde , linux-can@vger.kernel.org, Jiri Pirko Subject: Re: [PATCH net-next] net: drop the weight argument from netif_napi_add Message-ID: <20220927111758.1d25ea0f@kernel.org> In-Reply-To: References: <20220927132753.750069-1-kuba@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, 27 Sep 2022 10:54:49 -0700 Eric Dumazet wrote: > On Tue, Sep 27, 2022 at 6:28 AM Jakub Kicinski wrote: > > We tell driver developers to always pass NAPI_POLL_WEIGHT > > as the weight to netif_napi_add(). This may be confusing > > to newcomers, drop the weight argument, those who really > > need to tweak the weight can use netif_napi_add_weight(). > > > > Signed-off-by: Jakub Kicinski > > Sure, but this kind of patch makes backports harder. > Not sure how confused are newcomers about this NAPI_POLL_WEIGHT.... I maintained this patch in my tree for a couple of releases (because I was waiting for the _weight() version to propagate to non-netdev trees) and the conflicts were minor. Three or so cases of new features added to drivers which touched the NAPI calls (WiFi and embedded) and the strlcpy -> strscpy patch, and, well, why did we take that in if we worry about backports... NAPI weight was already dead when I started hacking on the kernel 10 years ago. I don't think it's reasonable to keep dead stuff in our APIs for backport's sake. Adding Jiri to CC in case I need someone to back me up :) The idea for this patch came because I was reviewing a driver which was trying to do something clever with the weight.