From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796381247; b=NAs+BT7x7970pzcwSF7rtCQ+FehpkbJDa3f3cG3ByCwqDDMKIl9dd0W/QzSdeLLIJLxu gE1fpNS6Ei0/WJqacD1Rx29r4lQsdMXeG9jcrtsfLNkUQeN5SUv+O8trOn4JKXxj5hbHQ GiXu+M8qJLciV6eQoxCnJyrj7k+F+z23ZZE4It/WYPLLov986J9B54B//0lT53PTbek5L RNTJqCn9KF0azY+ytSCnvZIhTGeQJY1IOwGexw8JJFrOdKQn+duvXr7EJSi48FFYihjgB WmGi4UoECQ/JAQnDpTKpgtgEdW2qjR+Hgpp0Kt4yL1EZ1Ef+P5xstG3K/U+d97wCnOA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796381247; 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=SwLCaLVjVxWiCkbEVclQmjQH8sWGa4BbLjLHUu3pFArPCrKX8q3q+AA9DG4RQMdrI+E3 DfnI5cz0Ldr6JMQPTZkUd8rH2/zxuWFXXxsTDVB8w4E6oW1hLta2KbTHKMHdYxnUy/GT1 OnLgInJ+X6Z+3RPirJLTP10UV/Jrmr4TcrROd5p743sMgKLXJqyjlwPIQVvN5iX1HU8Xi Kz1qXouQu5DExd1hfbazrW2eRHu07qlxIVUNuye4coFc71HE29ti28/PSPcMq6TkYNNCo kN0c/r7SW/ylLW/6+3pfNS7/L8Xp6Ull5MIiPaz+ylKVnJ3benqcsrSiY1uYBVE7SUg== 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.129.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 1DF9F606A32C for ; Fri, 4 Dec 2026 10:47:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1DF9F606A32C 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-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-139-BRkVRO1IN9SVHc5DN0cP0w-1; Fri, 4 Dec 2026 10:47:24 +0000 X-MC-Unique: BRkVRO1IN9SVHc5DN0cP0w-1 X-Mimecast-MFC-AGG-ID: BRkVRO1IN9SVHc5DN0cP0w_1796381243 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-4c6ed3aad4cso462117f8f.1 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=kkUkhFvOUh7VtKWYXfqGSLelOOf3z/Yzb8bo2ouS2wIeB9qLL01mVGlKovxu2fF73I EBPIlSv2s3zVru3DcfbCcVE24kk7VJackmeO7kEOUTA35zrTiFDPOAdEtKWJcPSQYqqo CYNs8096tKV/fmr6kniqoLSrNpqUpVsPhzlTce0DSHXa5f28OJD6NWCyr9nwailiFqcK bWw8zMUxvVI3DlHq4Myb6Siz6j6MVuRditGpPfuvA8HMWY8kfB3pxuQRP9nyEG0URKRL ICR95KpL81B7gQgBd+bmluC+uWXa1a+DZ7M1Fievyolae8sqs2mGEsftv64hPzjnAKma Vj3Q== X-Forwarded-Encrypted: i=1; AL+hErGQuChVmDJzSxXlDjkEXEt2bTEQ+Sw0et5/b6TpBJlkZkCs3Z+CYBflkS5FaH5GuHE8sb5P3Ws=@vger.kernel.org X-Gm-Message-State: APuU4Z+2pAaD4Gu0E3KhBVB3Y4DDrU8mNFOhqB/yR/qPQOaG2/9uKUAF nEpf/evuBrHA9qkKFTjRqOOQeTEaFLboZ6J5POZUy+ziM0N44BgeBmBJ7y4DjacOXx2+7Yriho7 eUyl3iOYAw45232gkL+Euk4ULxO/n8nG3NfICyDfKc48YpVrwDkpyvFrSNw== X-Gm-Gg: AZFdTZczKpdwM3V/nrKHx8w0pBLJyJlaawYH9xgIYTN9MOoKCZXXfwlWnzGeu5EJqJn YuJLsAL0vEhqitggXWgaSRldXqLDOxX3wb13Fdw4EMRncFO2UF6CqBuMJefiTll/sdHHnzqFICx Q7QCI5/UBZLRGA3sjvRG727kcy5hD/xs6GLtVd5D65NAWulrS5S7W+mbCAv5fzzblXh+TKwtX0R srEPAnkl3PbAaYnfdwG4OOvdT61wNtlaUIiv4z/gyrx4PvZXXdnCHFkdcD1Vx+AMm+OzaokJ15X uSGXY5hGaZlR4rbt0yV5JhTiBxVSRRTu542NkNYShN/Yn/jitambThwK6TV8sIRIbVjHuZBTG1/ 0FIqaYRr4oOS7GvgWXGh1Eu1JREy23TVKJbS+KJGHtY2sItfUods2AOZ+oqOVsmhm0zDLc0X766 Tzmn3IYcw2mjeY3ZbKIhM9E+ri9Clf3ta3qiA8PNadTWg= X-Received: by 2002:a5d:5f08:0:b0:48c:4658:602b with SMTP id ffacd0b85a97d-4d1e8db79edmr2935846f8f.10.1796381243396; 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: netdev@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