From: Paolo Abeni <pabeni@redhat.com>
To: Jiawen Wu <jiawenwu@trustnetic.com>, netdev@vger.kernel.org
Cc: Mengyuan Lou <mengyuanlou@net-swift.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>,
Richard Cochran <richardcochran@gmail.com>,
Russell King <linux@armlinux.org.uk>,
Simon Horman <horms@kernel.org>,
Jacob Keller <jacob.e.keller@intel.com>,
Kees Cook <kees@kernel.org>,
Michal Kubiak <michal.kubiak@intel.com>, Joe Damato <joe@dama.to>,
Larysa Zaremba <larysa.zaremba@intel.com>,
Abdun Nihaal <abdun.nihaal@gmail.com>,
Breno Leitao <leitao@debian.org>
Subject: Re: [PATCH net-next v5 09/11] net: wangxun: add Tx timeout process
Date: Thu, 19 Mar 2026 12:31:15 +0100 [thread overview]
Message-ID: <3c79d694-b078-4c01-b317-71c70e700b85@redhat.com> (raw)
In-Reply-To: <20260317073827.4300-10-jiawenwu@trustnetic.com>
On 3/17/26 8:38 AM, Jiawen Wu wrote:
> +bool wx_check_tx_hang(struct wx_ring *ring)
> +{
> + u64 tx_done_old = ring->tx_stats.tx_done_old;
> + u64 tx_pending = wx_get_tx_pending(ring);
> + u64 tx_done = ring->stats.packets;
> +
> + clear_bit(WX_TX_DETECT_HANG, ring->state);
> +
> + /*
> + * Check for a hung queue, but be thorough. This verifies
> + * that a transmit has been completed since the previous
> + * check AND there is at least one packet pending. The
> + * ARMED bit is set to indicate a potential hang. The
> + * bit is cleared if a pause frame is received to remove
AFAICS this is handled in patch 11, at slot reset time, which IIRC is
quite separate from pause frame reception.
I think this comment need to be update to reflect the current behavior.
Also you should explicitly mention in the commit message that the actual
implementation of this part will with a later patch.
/P
next prev parent reply other threads:[~2026-03-19 11:31 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-17 7:38 [PATCH net-next v5 00/11] Wangxun improvement and new support Jiawen Wu
2026-03-17 7:38 ` [PATCH net-next v5 01/11] net: ngbe: remove netdev->ethtool->wol_enabled setting Jiawen Wu
2026-03-17 9:46 ` Breno Leitao
2026-03-18 19:59 ` Joe Damato
2026-03-17 7:38 ` [PATCH net-next v5 02/11] net: ngbe: move the WOL functions to libwx Jiawen Wu
2026-03-17 7:38 ` [PATCH net-next v5 03/11] net: ngbe: remove redundant macros Jiawen Wu
2026-03-17 7:38 ` [PATCH net-next v5 04/11] net: ngbe: improve the reset flow Jiawen Wu
2026-03-19 11:25 ` Paolo Abeni
2026-03-24 6:40 ` Jiawen Wu
2026-03-17 7:38 ` [PATCH net-next v5 05/11] net: wangxun: move reusable PCI driver ops functions into libwx Jiawen Wu
2026-03-17 7:38 ` [PATCH net-next v5 06/11] net: txgbe: add power management support Jiawen Wu
2026-03-17 7:38 ` [PATCH net-next v5 07/11] net: wangxun: move ethtool_ops.set_channels into libwx Jiawen Wu
2026-03-17 7:38 ` [PATCH net-next v5 08/11] net: wangxun: delete service_timer before cancel service_work Jiawen Wu
2026-03-17 7:38 ` [PATCH net-next v5 09/11] net: wangxun: add Tx timeout process Jiawen Wu
2026-03-19 11:31 ` Paolo Abeni [this message]
2026-03-17 7:38 ` [PATCH net-next v5 10/11] net: wangxun: improve flow control setting Jiawen Wu
2026-03-17 7:38 ` [PATCH net-next v5 11/11] net: wangxun: implement pci_error_handlers ops Jiawen Wu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3c79d694-b078-4c01-b317-71c70e700b85@redhat.com \
--to=pabeni@redhat.com \
--cc=abdun.nihaal@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=jacob.e.keller@intel.com \
--cc=jiawenwu@trustnetic.com \
--cc=joe@dama.to \
--cc=kees@kernel.org \
--cc=kuba@kernel.org \
--cc=larysa.zaremba@intel.com \
--cc=leitao@debian.org \
--cc=linux@armlinux.org.uk \
--cc=mengyuanlou@net-swift.com \
--cc=michal.kubiak@intel.com \
--cc=netdev@vger.kernel.org \
--cc=richardcochran@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox