From: "Nelson, Shannon" <shannon.nelson@amd.com>
To: Joshua Hay <joshua.a.hay@intel.com>, intel-wired-lan@lists.osuosl.org
Cc: netdev@vger.kernel.org, Sridhar Samudrala <sridhar.samudrala@intel.com>
Subject: Re: [PATCH iwl-net] idpf: extend tx watchdog timeout
Date: Mon, 3 Jun 2024 17:33:21 -0700 [thread overview]
Message-ID: <05dae177-ff31-4ad8-98f2-c93e14ea37ce@amd.com> (raw)
In-Reply-To: <20240603184714.3697911-1-joshua.a.hay@intel.com>
On 6/3/2024 11:47 AM, Joshua Hay wrote:
>
> There are several reasons for a TX completion to take longer than usual
> to be written back by HW. For example, the completion for a packet that
> misses a rule will have increased latency. The side effect of these
> variable latencies for any given packet is out of order completions. The
> stack sends packet X and Y. If packet X takes longer because of the rule
> miss in the example above, but packet Y hits, it can go on the wire
> immediately. Which also means it can be completed first. The driver
> will then receive a completion for packet Y before packet X. The driver
> will stash the buffers for packet X in a hash table to allow the tx send
> queue descriptors for both packet X and Y to be reused. The driver will
> receive the completion for packet X sometime later and have to search
> the hash table for the associated packet.
>
> The driver cleans packets directly on the ring first, i.e. not out of
> order completions since they are to some extent considered "slow(er)
> path". However, certain workloads can increase the frequency of out of
> order completions thus introducing even more latency into the cleaning
> path. Bump up the timeout value to account for these workloads.
>
> Fixes: 0fe45467a104 ("idpf: add create vport and netdev configuration")
> Reviewed-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
> Signed-off-by: Joshua Hay <joshua.a.hay@intel.com>
> ---
> drivers/net/ethernet/intel/idpf/idpf_lib.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/idpf/idpf_lib.c b/drivers/net/ethernet/intel/idpf/idpf_lib.c
> index f1ee5584e8fa..3d4ae2ed9b96 100644
> --- a/drivers/net/ethernet/intel/idpf/idpf_lib.c
> +++ b/drivers/net/ethernet/intel/idpf/idpf_lib.c
> @@ -770,8 +770,8 @@ static int idpf_cfg_netdev(struct idpf_vport *vport)
> else
> netdev->netdev_ops = &idpf_netdev_ops_singleq;
>
> - /* setup watchdog timeout value to be 5 second */
> - netdev->watchdog_timeo = 5 * HZ;
> + /* setup watchdog timeout value to be 30 seconds */
> + netdev->watchdog_timeo = 30 * HZ;
Huh... that's a pretty big number. If it really needs to be that big I
wonder if there's something else that needs attention.
sln
>
> netdev->dev_port = idx;
>
> --
> 2.39.2
>
>
next prev parent reply other threads:[~2024-06-04 0:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-03 18:47 [PATCH iwl-net] idpf: extend tx watchdog timeout Joshua Hay
2024-06-03 21:13 ` [Intel-wired-lan] " Jacob Keller
2024-06-04 0:33 ` Nelson, Shannon [this message]
2024-06-04 23:34 ` David Decotigny
2024-06-11 10:44 ` [Intel-wired-lan] " Alexander Lobakin
2024-06-11 18:13 ` Josh Hay
2024-06-12 9:34 ` Alexander Lobakin
2024-06-13 6:36 ` Josh Hay
2024-06-13 10:16 ` Alexander Lobakin
2024-06-12 18:01 ` David Decotigny
2024-06-13 9:49 ` Alexander Lobakin
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=05dae177-ff31-4ad8-98f2-c93e14ea37ce@amd.com \
--to=shannon.nelson@amd.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=joshua.a.hay@intel.com \
--cc=netdev@vger.kernel.org \
--cc=sridhar.samudrala@intel.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;
as well as URLs for NNTP newsgroup(s).