From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796381248; b=mHUYheK8Z60Z9rW17tlR4rXpzuRRtYktexHSIBGArjdsecUlBaSUZIktlSMqj/KcAYuV L37+i3JZ/XcXDU6MK/dsbQd0qZM9ppEzwSz6rB4YLhbCHayHM5cRXOlIvif6lEGXPSQxB yrlKfHcTVo59UYlmNioXci3RVBnA3otPLdUUESsQI8hk13Sdz8mNHdzqBX2rOCkhAQyQ1 F2/7swH4TLjqIy1pdBaozzAk2tfMt8ABFgJgxGtmTQeq3r8EtsDAtPSi4IiZTDRcu2q1p zta+21Z08r8t+MbbG5KWaaUYi765yt7tQrj9VuhMDisSaQLf5PSzgWidPdCd0m+kpHw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796381248; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received: X-Received:Received:Message-ID:Date:MIME-Version:User-Agent:Subject: To:Cc:References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=NQYhDip6mRkpP9B9uORclTvUmNtc+9OzQ9fyrH04vJA=; b=F4fAIfd4JmybFJx4zwT5OjlYMQFwVT2y9ILo1pPsPqA2NIdjTqL//+GXZ641v8l5Gw33 O0qajf29lITBCWiyl+FbNMGaYToQWczIABM+kY+c39Ly+TKmblhW55ZltrL92APMrFTWC 2+MeGsqv7VYKCSV/5vL7ZDw3v/ezmkYn1oPL69BKEhkNLS4mrcU/KAaSeE7ND0RDgWpda lkVwW2+e/FrzLfAJz3PjXPk/WtWE30xO2PNwFqAF8QhY22bk7kyZI0Rgn133acg04/4g/ PnB+uSp1l5+XqYDfGfag0YarRre7CCbg9csg2GfkiC6aopNQ9VgQUYMCN8dR34xyW2A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=blc65BrB; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=hGhXBGmd; arc=none smtp.remote-ip=170.10.133.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E621606A32F for ; Fri, 4 Dec 2026 10:47:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9E621606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=blc65BrB; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=hGhXBGmd DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796381246; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NQYhDip6mRkpP9B9uORclTvUmNtc+9OzQ9fyrH04vJA=; b=blc65BrB87AuO+amRTH/HaM1mBrykbm+qw5/RDzWMlEDAAAL9uSqiLRGgP+umYb3wCsbSQ qE1rHn5dwxNZZ1XUIEfpfzkbaV6+GloWaNxGBhwcEiULizDS5FkucQuoCX6POjj5M30yvz JspjZ7cPc5zjbgHrZKOZveRbQDrhLbw= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-214-VlH7WstMOsGcQnXkCJeMRw-1; Fri, 4 Dec 2026 10:47:24 +0000 X-MC-Unique: VlH7WstMOsGcQnXkCJeMRw-1 X-Mimecast-MFC-AGG-ID: VlH7WstMOsGcQnXkCJeMRw_1796381243 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-48c6a1d4034so586524f8f.0 for ; Fri, 04 Dec 2026 02:47:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1796381243; x=1796986043; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=NQYhDip6mRkpP9B9uORclTvUmNtc+9OzQ9fyrH04vJA=; b=hGhXBGmdcCFpikCtDaxrCITkyDDhpRJ7JWLSzAZThWRO4sAST1ximRwcIqHJM2xmM5 YmECt8YIYcjufqmqNHHCBRu4m1571WSwNVEIs4b8cuyutB5aItoV/hK8oWmGfQPk6McO 8oGajDLtJOymKumG25QoJx3x8T35VEn6jXsLUahztcn0mfnINdPOUfyY2OHtqve2tGcI p0hKaWJiOUISdjKkLzdY+wLUdwyJ1QlGelKWMh6fZjHn9NJjiMs5rb9BPUvwhe8cW0lx 3f6NHNalhZmmqJ89qzpLqSzuWGL3BHSEepeMF4LMk5FP6irsNKAKiOfoDzohGGlvAQA4 VjXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796381243; x=1796986043; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=NQYhDip6mRkpP9B9uORclTvUmNtc+9OzQ9fyrH04vJA=; b=Z8hOjI0NeAsgSISyDGtBfQmaCzuQWj6H8QRhoZu4hYifut1vDKV/AdL5s1J87g+NUB 6G5bu6plHsuqa6EzTt3H0njitBr40lEnsrtXtHIEHXetAkUiWh6fM4PlWUvJoarZwfqH y9JLdlP4S78KbE81n3ywOfU2hv0FxpqGjzZ9tmCFuefA5z2dmfgAPMo2kqu4tjerww4F XGcC1huHgZzO2xuJUW1yBJksdJPuaEAz6ca9deHs2pIg016K2XaDD8AGAtslutPnOzuB /kxrP0SPNs36RtpNowszrLu29bjkxjmIz1z0Ov79oOuxZcGFE3jF7sJi57wyU+UcfeL2 ikFg== X-Forwarded-Encrypted: i=1; AL+hErHjJAAE8ZWR3zQXG4kkro0pIonsTyAcXMfeIiJYDBBn/R+9IUklk4I58a1Q3tN5UG6IZ8QmXT2lW53sYIQ=@vger.kernel.org X-Gm-Message-State: APuU4Z+4vTUiOymk88CtxeasmT7QnnAJF8Zo+4/9tp6K9wR5fO4V1Kdk Q6MoaM6V3OxOoRLDnZz9Vken/3xPh42aheUqUlW9thsMcg9sp0QN1SjSYKxPC27i4eHHqMm+ZOL NQofKMU4HcUIb2d5GHcMxvu5yibp7wa5GHbo3ka0VyB+jkwJby5TonOMZm05sYwBMuw== X-Gm-Gg: AZFdTZfCaue5bqKjhi/x975fdzmzQ+Fre3zCZCxehscnjDGig1MGzgxcqcU2IfVhQ+1 AAxtzX3HY4UR6LuGDQrn54qBBRH6kpxGNSCAotYRLjlqs3e0eBnjXC8C7w8ED4dvZ42RpAqgwS+ 8ZaOltgN6BNVm0oiqlbIrD0oYSo+vQK2gEbXwT4HJT0i90qE4WjhvWWb4MSvhYLiZdrtbobyR4c ohsVZQZDiKJvYQ6ExH65uSBdpXaPAElS7gNqtSat9/RqgbHjt8+jcRCMidy0u+bEuBaVnjhUEvg tKb/56tmrYmEjHa/A5pGJ9C8urABydS3I8no+d8RJ0e/41H5haXEqcR03FSiRQ2mjzaxETU1mDW zyEIOfkwWaHGXnxzB8PCIhvhiI65nOSkkbIyZ1mhtOply6j7bnjueCSleHOWKj+oE6dAjY/PmSs kiTdOpugebImQWVmNv2Uy1eI20lejURD/RjgE1avOWy04= X-Received: by 2002:a5d:5f08:0:b0:48c:4658:602b with SMTP id ffacd0b85a97d-4d1e8db79edmr2935841f8f.10.1796381243387; Fri, 04 Dec 2026 02:47:23 -0800 (PST) X-Received: by 2002:a5d:5f08:0:b0:48c:4658:602b with SMTP id ffacd0b85a97d-4d1e8db79edmr2935788f8f.10.1796381242863; Fri, 04 Dec 2026 02:47:22 -0800 (PST) Received: from [192.168.88.30] (ip231-128-192-82.pool-bba.aruba.it. [82.192.128.231]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d173ab8d87sm4395527f8f.40.2026.12.04.02.47.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Dec 2026 02:47:22 -0800 (PST) Message-ID: Date: Fri, 4 Dec 2026 11:47:21 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net v2 2/2] net: net_test: add tests for netif_tx_stop_queue() trans_start To: Curtis McBurney , netdev@vger.kernel.org Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, horms@kernel.org, andrew+netdev@lunn.ch, willemb@google.com, toke@redhat.com, daniel@iogearbox.net, almasrymina@google.com, linux-kernel@vger.kernel.org References: <20261119141633.3118789-1-cmcburney@telcobridges.com> <20261119141633.3118789-3-cmcburney@telcobridges.com> Content-Language: en-US From: Paolo Abeni In-Reply-To: <20261119141633.3118789-3-cmcburney@telcobridges.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/19/26 15:16, Curtis McBurney wrote: > Add KUnit tests for the txq->trans_start handling of > netif_tx_stop_queue(), which dev_watchdog() uses to detect a stuck > queue: > > - a stop on a running queue writes trans_start > - a stop on a queue already stopped by the driver keeps trans_start > - a stop after netif_tx_start_queue() writes trans_start again > - a stop on a queue stopped only by BQL (__QUEUE_STATE_STACK_XOFF) > writes trans_start > > txq_stop_keeps_stamp_stopped_queue fails without the previous patch. > > The tests run on a single thread and do not cover a wake that races > with a stop. The previous patch removes that race by construction: a > stop that finds the bit set writes neither trans_start nor the bit. > > Tested on UML with CONFIG_KUNIT, CONFIG_NET and CONFIG_NET_TEST: > > tools/testing/kunit/kunit.py run --kunitconfig= 'net_core.txq_*' > > Claude Code (Anthropic) wrote these tests and this changelog. > > Signed-off-by: Curtis McBurney No additional test-case for net at this point of the cycle. I'm applying patch 1/2 to the net tree. This one need to be re-submitted after next week net PR, but I'm not sure it's worthy the additional CI usage. /P