From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44E6028B3EF; Wed, 16 Jul 2025 21:09:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752700169; cv=none; b=axCeR4Kzg3WB/w2QkjolqSiRVOghR1YMKPf2w/bmWGhPzVmPPybrVarQflQkzg0XBkNXntCGjP6Iadn6a44CrjUYkt75Brk5fh+cf2seABAOoKdX6YEZhNjQrsbDNNS+I4LCLxThgh6tEHxjeuzJ9QsCZjLUtdBe6/71rg11HZw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752700169; c=relaxed/simple; bh=ZvjiIuDfrlWWbykzDv6yMKlbKFJ9c3SfR0on8ygzWv8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kO1NMTtCu9yq9dzFXtgnkzb3mIJ3RANkw4KP6EN8kOQTbleXlhd7A0GAbwQ+aFxaXbgWy6SPFLr6SWV/52DACX4sUOJ4Df8EdMPtQUUXoDbn3FKEXRFOrhzRuvMjD1CA4c3zzaNm2xLGKq4ejREb19uIAIePb+dwlASuiRJeQsQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MihocQ5C; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MihocQ5C" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1FEAC4CEE7; Wed, 16 Jul 2025 21:09:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1752700168; bh=ZvjiIuDfrlWWbykzDv6yMKlbKFJ9c3SfR0on8ygzWv8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MihocQ5CfRgKpACI/aeFhkJ5efmhxN3ecKFo8AYnY89VPMXR1C4T9t3Q5aqmsISYQ qCkS257leQLzb3LjhZJLla7Ra3zItwwNU0vjngd7HF8DOwzYXcApTXAtRKMdASzWXk bsIuuYDUqO8H9+hXjPIpDIyxKpdq9ojwWIjBZpnPONeJ+NUMqJfY9apufkcTpVxGf+ mqxztjqJ45Cuf0YQFLrSYrn+NgT04N5m5cXOPE0zL4wk8Md5xd1+z++31VnqlA3wDv MPZi8dXrwsIGfwlsTYa1mm6JKvAWH2KnMbiq1NDRbD5vdqWTAuBn4wx7y3ZTYAYN7r p1LStuyyw3sgQ== Date: Wed, 16 Jul 2025 14:09:26 -0700 From: Jakub Kicinski To: Parvathi Pudi Cc: danishanwar , rogerq , andrew+netdev , davem , edumazet , pabeni , robh , krzk+dt , conor+dt , ssantosh , richardcochran , s hauer , m-karicheri2 , glaroque , afd , saikrishnag , m-malladi , jacob e keller , diogo ivo , javier carrasco cruz , horms , s-anna , basharath , linux-arm-kernel , netdev , devicetree , linux-kernel , Vadim Fedorenko , pratheesh , Prajith Jayarajan , Vignesh Raghavendra , praneeth , srk , rogerq , krishna , pmohan , mohan Subject: Re: [PATCH net-next v10 04/11] net: ti: prueth: Adds link detection, RX and TX support. Message-ID: <20250716140926.3aa10894@kernel.org> In-Reply-To: <1616453705.30524.1752671471644.JavaMail.zimbra@couthit.local> References: <20250702140633.1612269-1-parvathi@couthit.com> <20250702151756.1656470-5-parvathi@couthit.com> <20250708180107.7886ea41@kernel.org> <723330733.1712525.1752237188810.JavaMail.zimbra@couthit.local> <1616453705.30524.1752671471644.JavaMail.zimbra@couthit.local> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 16 Jul 2025 18:41:11 +0530 (IST) Parvathi Pudi wrote: > >> Something needs to stop the queue, right? Otherwise the stack will > >> send the frame right back to the driver. > >=20 > > Yes, we will notify upper layer with =E2=80=9Cnetif_tx_stop_queue()=E2= =80=9D when returning > > =E2=80=9CNETDEV_TX_BUSY=E2=80=9D to not push again immediately. >=20 > We reviewed the flow and found that the reason for NETDEV_TX_BUSY being > notified to the upper layers is due lack of support for reliably detecting > the TX completion event. >=20 > In case of ICSSM PRU Ethernet, we do not have support for TX complete > notification back to the driver from firmware and its like store and > forget approach. So it will be tricky to enable back/resume the queue > if we stop it when we see busy status. IIUC this is all implemented in SW / FW. You either need to add=20 the notification or use a timer to unblock the queue.