From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2396119ABD8 for ; Thu, 10 Oct 2024 04:10:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728533442; cv=none; b=QAL+80V6uvD6RlgV3jRWLzZUqiINgMyj3HND3iocd0bWASSWTWzc7BzhONEW1sHN7vyf3sW/d/MwmF10YeOwwl5MRqcTFsLRUdXcs23PQvg4PSBXbwi3VP+cLMuzK2xL7Dj2fTcAudZ0Y/QEcPLZ8zGEEjBarWrk+oCpGoha5ro= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728533442; c=relaxed/simple; bh=p/npfda4+uZ+eoFTnpXPziV2yWyvJSD8J0L6jcrQTWw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=AHzEgAsPz06UCRJ57VWNpTzKLfrAn+4UkkJTSdtjivMVKtaTsrQOY07fuT+ATQTQwTF+zwuXon1Hu6lVupLKhhvWgOArAVsuSU95ZtqbWFHtycw+l2cw5okWDyEDhDyxC6CKeWDdADfRYgx7h6CbsriqHV2HCoYhHwl+T8f4QzE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=0gcoErzJ; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="0gcoErzJ" Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5c91d0eadbfso570626a12.0 for ; Wed, 09 Oct 2024 21:10:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1728533438; x=1729138238; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=p/npfda4+uZ+eoFTnpXPziV2yWyvJSD8J0L6jcrQTWw=; b=0gcoErzJTaRx/2zH0mJ200zJZxKvqKrTAIEO8pZT4jJtb5LJwL/p0/tUBxmhn79bgw ssJLfSwAiS02Er2q/3sLZQYzGRRzU8ei6pd2NxqyEcHMF0jrbzvLqf1kdPQTu3H/Ol80 uNe0UyCuGMI6329xN77V8MNqfddBnQ9gb2aJSWsDmMmzVDJQxQUMrud8dy9cYnm9Ckbe /zoPIH6MsSOeubzQCq+3S7XfnVMgEJA6i82zb4qrtx1MDeF9CVZA4IoZuiCTfydWinoe bD8CoL8ZreQ07YulnwkEwHVVfqyKwl5mYNOAqScT2vEWI/JC8PMVf0kHRRAepGuuywk4 QWIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728533438; x=1729138238; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p/npfda4+uZ+eoFTnpXPziV2yWyvJSD8J0L6jcrQTWw=; b=tUdo3rj1Ps6mS+MNJIUtUfYuZ9Dkf1WommpnWz44LsLDBw4sq5cmNYeqaZlPF6AXnr 9TodwdcbFw7poZdd9PXvPx6ZBVrBra0hNx24r56tLCGa2oSah+5NBmKwZuSgY2fpsyGR 4T/pTo1HI8HnV2Fs5VcAlACzFTk+F0Utp9PGtlGVQj1VOwaPhzJqZRgxGWmsuF5dpUXd d+LuV9VNrzLinnf2yJ/gxlNUTQKPrl3GkSdRQwqJMYqxBaJN1v6JzoC4+nA6or6Zv9dF VeLdlVBXQfPTtUC0J5YCl/OiEqAQ8vbQdyDCNRBKXTkAhu/nBgxFYrjFG5oAFockLxTK hR+Q== X-Gm-Message-State: AOJu0YybjzGDuMUKwAxo8QqYSJJVQy5Smj+eOd04OUnWmxByKTJisCvy bbDH+NVxJSUyUFk2fZ5gMUuniHUHrciMBaVL84izTQR2qooLCf97XS36f0KSjJ5pxNI6YZJWBIQ +s+ZkzDcwRi9vu3irFF3a8w2a3UdS2SPAe4aT X-Google-Smtp-Source: AGHT+IG/RkJ2ip5TWITEkWDE7GCfRYmWjtsrdI7s7O3yMXKJbAkmwnTBP8gXo5UcKJQO0FLzl/ylTPlWpyTAdX57idY= X-Received: by 2002:a05:6402:1e8f:b0:5c9:36c4:ceaf with SMTP id 4fb4d7f45d1cf-5c936c4d33cmr400018a12.26.1728533438158; Wed, 09 Oct 2024 21:10:38 -0700 (PDT) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20241009005525.13651-1-jdamato@fastly.com> <20241009005525.13651-2-jdamato@fastly.com> In-Reply-To: <20241009005525.13651-2-jdamato@fastly.com> From: Eric Dumazet Date: Thu, 10 Oct 2024 06:10:26 +0200 Message-ID: Subject: Re: [net-next v5 1/9] net: napi: Make napi_defer_hard_irqs per-NAPI To: Joe Damato Cc: netdev@vger.kernel.org, mkarsten@uwaterloo.ca, skhawaja@google.com, sdf@fomichev.me, bjorn@rivosinc.com, amritha.nambiar@intel.com, sridhar.samudrala@intel.com, willemdebruijn.kernel@gmail.com, "David S. Miller" , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Jiri Pirko , Sebastian Andrzej Siewior , Lorenzo Bianconi , Johannes Berg , Breno Leitao , Alexander Lobakin , "open list:DOCUMENTATION" , open list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Oct 9, 2024 at 2:55=E2=80=AFAM Joe Damato wrot= e: > > Add defer_hard_irqs to napi_struct in preparation for per-NAPI > settings. > > The existing sysfs parameter is respected; writes to sysfs will write to > all NAPI structs for the device and the net_device defer_hard_irq field. > Reads from sysfs show the net_device field. > > The ability to set defer_hard_irqs on specific NAPI instances will be > added in a later commit, via netdev-genl. > > Signed-off-by: Joe Damato Reviewed-by: Eric Dumazet