From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (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 5CC583AF66E for ; Wed, 6 May 2026 20:49:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778100548; cv=none; b=gtTCwE1HrNmnfb5DI6KglaqaxceTj+5k1jnX1j5G4hCVOwW4EkHGAgDmUK0HGqLeR/g8HX0QBDdpuMktzja/ii66ibT3P+vaCjhjLSw9tl+zAEG4+LW0KILVQ+UKTai2wVA5OyubLriFndB4+pc2pdiLkwI7N7cHTQ3toEC8o78= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778100548; c=relaxed/simple; bh=KTCvtuXioIzyBTbuRiKZ8xct4SR9Y3b6fZiFzbTo+8s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bcGHruA0rqGMGREYeB/pw0VzP81wAcMrwUE3Uc1iiYARVkUWFeZfxntjnNJLFOGeekLdvFavmQ/AN8S3rcDpyuLKdWvnN6Pn0d3d5H+yZI6nHpfZxKUB7zp0gxE4jUdf35iEn5SRkLKSs+Of6L4JveMpzMRN3teAYXJaYw3TyE4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dama.to; spf=none smtp.mailfrom=dama.to; dkim=pass (2048-bit key) header.d=dama-to.20251104.gappssmtp.com header.i=@dama-to.20251104.gappssmtp.com header.b=ntQpjk8K; arc=none smtp.client-ip=209.85.210.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dama.to Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=dama.to Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dama-to.20251104.gappssmtp.com header.i=@dama-to.20251104.gappssmtp.com header.b="ntQpjk8K" Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-837c09d2268so20747b3a.0 for ; Wed, 06 May 2026 13:49:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dama-to.20251104.gappssmtp.com; s=20251104; t=1778100544; x=1778705344; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=O8gPP8nEtjCFfwXbHwnHytevRiknOZ8KC/b57qw83Is=; b=ntQpjk8Kg7dderHoaBozP0q1motNwnZCL8FAHhKKlN8/F7GpVbTqHJuIF18OO9vvnS EjzDPGKiJMIQtpeBixfpP56Czb/96duDgRbIyBqPrkpIkPP0ptkWa2HUUz7tx2yMZvl0 BgSvsPb76B66rLxTbC5kRVOaz/Isagc9pk1rIuNsNUVyRLO8P+8rrPbDH506PG0zVeFJ TOYcAPwQdngjzL4szKCLxlPVmRMFpuDx+SUib0gHgU7+hzG7idvLgBARwuzZ91n6ULHN Dz5HDrOIHhMMDvP6Sxg3imuK+CthFSmw4mHbOsttrT5nmYYCDpIiYqoX/Xs5XoTZ3ZS2 s8dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778100544; x=1778705344; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=O8gPP8nEtjCFfwXbHwnHytevRiknOZ8KC/b57qw83Is=; b=VfI3n8jzUI4qf7FYXs2DnYOyyz1CQ358hTG9wANwRL/7w56uBmEuAi62PgSJMqmVYF xkGgUhdi8hUUoGU+8sEv41/46atQ5mviy+F4Pg6VZRO9I5kIgJq/NvZlbtIGyktaeK2n ZPU7eQGcSQlVZ6h1yeXTEZ3RnVR3o5/daUcYuek91m7AUSdJCXI1RQ+4ErYUI8qRhNTD IE/pWJYd7blV381dpO+0wK9r8Q3jSJhYwSEAen42L9wRBnlIgSIR1oMogFahjwKClIfI JcGQLQ6aczYYyJyo1jp5znjnGCkfsAj2B+GjQFRgPynAP7ENNm7KZapQqxLojOmX2Eyq lBVA== X-Forwarded-Encrypted: i=1; AFNElJ+yXugOLwFHcoKz2QUNGORWHJpxLj4sLHTAO9RcsUKB7OKnxbJ1aCFEwiFNLBPopqczPFan2OKLcgpOej0=@vger.kernel.org X-Gm-Message-State: AOJu0YxXr2ylrM0IBp2tm1uIGGBKPzwWxW9WC8dX6bVH/NWS1Z4AmXb3 06D8Hd7OY03kA+3AxlS4+LeuqeuPPgxmRCoPW7oZz0BjsNVV8w9Y7bOUW7/Z9v6w8Ms= X-Gm-Gg: AeBDiev48IyXkzhcRdG43Jh32bXDsuUhcwu5RcikGC785GhuzLbTZFVYb85k/2W+tKQ Wj43bqgx8vaQqTANOMftfCBMugTkX2capihSfVNcHMA9lOlESeML5QnIQtq4Mxr7QyI+ifKq3D4 832qK4R9PG/TynKRAsyaFsRnn1X5WzbdIvzjn1shMZSsFa3ibUwO2CLg705HgNObYbIrKPkzuuI ddOsWvL2zlZ6d4ijxCWjFqOGAG1ZbPCmSSJDcEwnPeKOiusE/69nYSCSp/5Y+0nOZFnNzuNinfd QNyTmo43gLqT1PurRJmy0BSif97IEAMb7l5f9ru9NaMoJ8YxrD8kZUG0czMahikDxvsfpZA696Y yK19LQWmiHA3FBltOHjEH1Sn8lPWjrvzIzTMk8wvys/+SP7oVfCjJ2EiZGIt1f5oFx4L6AQgM8y N9dN/he4JaduO0QbE= X-Received: by 2002:a05:6a00:21ca:b0:838:1c02:2763 with SMTP id d2e1a72fcca58-83a5b3ca97dmr4530650b3a.9.1778100544184; Wed, 06 May 2026 13:49:04 -0700 (PDT) Received: from localhost ([2a03:2880:2ff:71::]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-83965c30ddasm7882028b3a.21.2026.05.06.13.49.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2026 13:49:03 -0700 (PDT) Date: Wed, 6 May 2026 13:49:02 -0700 From: Joe Damato To: Dragos Tatulea Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , Daniel Borkmann , Gal Pressman , Frederik Deweerdt , Martin Karsten , Tariq Toukan , Cosmin Ratiu , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net v2] net: napi: Avoid gro timer misfiring at end of busypoll Message-ID: Mail-Followup-To: Joe Damato , Dragos Tatulea , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , Daniel Borkmann , Gal Pressman , Frederik Deweerdt , Martin Karsten , Tariq Toukan , Cosmin Ratiu , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260506090808.820559-2-dtatulea@nvidia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260506090808.820559-2-dtatulea@nvidia.com> On Wed, May 06, 2026 at 09:08:08AM +0000, Dragos Tatulea wrote: > When in irq deferral mode (defer-hard-irqs > 0), a short enough > gro-flush timeout can trigger before NAPI_STATE_SCHED is cleared if the > last poll in busy_poll_stop() takes too long. This can have the effect > of leaving the queue stuck with interrupts disabled and no timer armed > which results in a tx timeout if there is no subsequent busypoll cycle. > > To prevent this, defer the gro-flush timer arm after the last poll. > > Fixes: 7fd3253a7de6 ("net: Introduce preferred busy-polling") > Co-developed-by: Martin Karsten > Signed-off-by: Martin Karsten > Signed-off-by: Dragos Tatulea > Reviewed-by: Tariq Toukan > Reviewed-by: Cosmin Ratiu > --- > Changes since RFC [1]: > - Sending only fix to net. > - Made commit message clearer and more succint. > - Fixed timer arming to happen after clearing the NAPI_STATE_SCHED bit > - Arm timer after clearing NAPI_STATE_SCHED and drop IRQ disable. > > [1] https://lore.kernel.org/all/20260428175134.1197036-3-dtatulea@nvidia.com/ > --- > net/core/dev.c | 21 ++++++++++++--------- > 1 file changed, 12 insertions(+), 9 deletions(-) Good catch on this bug. This fix looks right to me. Reviewed-by: Joe Damato