From: Simon Horman <simon.horman@corigine.com>
To: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Cc: s.shtylyov@omp.ru, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, lanhao@huawei.com,
netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
Phong Hoang <phong.hoang.wz@renesas.com>
Subject: Re: [PATCH net v3] net: renesas: rswitch: Fix timestamp feature after all descriptors are used
Date: Thu, 8 Jun 2023 15:51:55 +0200 [thread overview]
Message-ID: <ZIHc+7/UTJE4c7md@corigine.com> (raw)
In-Reply-To: <20230608015727.1862917-1-yoshihiro.shimoda.uh@renesas.com>
On Thu, Jun 08, 2023 at 10:57:27AM +0900, Yoshihiro Shimoda wrote:
> The timestamp descriptors were intended to act cyclically. Descriptors
> from index 0 through gq->ring_size - 1 contain actual information, and
> the last index (gq->ring_size) should have LINKFIX to indicate
> the first index 0 descriptor. However, the LINKFIX value is missing,
> causing the timestamp feature to stop after all descriptors are used.
> To resolve this issue, set the LINKFIX to the timestamp descritors.
>
> Reported-by: Phong Hoang <phong.hoang.wz@renesas.com>
> Fixes: 33f5d733b589 ("net: renesas: rswitch: Improve TX timestamp accuracy")
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> ---
> Since I got this report locally, I didn't add Closes: tag.
>
> Changes from v2:
> https://lore.kernel.org/all/20230607070141.1795982-1-yoshihiro.shimoda.uh@renesas.com/
> - Rebase the latest net.git / main branch.
> - Fix typo in the commit description.
> - Modify the implementation of setting the last LINKFIX setting from
> rswitch_gwca_ts_queue_fill() to rswitch_gwca_ts_queue_alloc() because
> the last LINKFIX setting is only needed at the initialization time.
>
> Changes from v1:
> https://lore.kernel.org/all/20230607064402.1795548-1-yoshihiro.shimoda.uh@renesas.com/
> - Fix typo in the subject.
>
> drivers/net/ethernet/renesas/rswitch.c | 36 ++++++++++++++++----------
> 1 file changed, 22 insertions(+), 14 deletions(-)
Hi all,
Hao Lan has provided a Reviewed-by for v2 [1], which was perhaps intended
for v3 (this version). In any case, I think we good on this one.
Reviewed-by: Simon Horman <simon.horman@corigine.com>
[1] https://lore.kernel.org/all/08006a4c-0627-9779-2260-a7e10dda454e@huawei.com/
next prev parent reply other threads:[~2023-06-08 13:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-08 1:57 [PATCH net v3] net: renesas: rswitch: Fix timestamp feature after all descriptors are used Yoshihiro Shimoda
2023-06-08 13:51 ` Simon Horman [this message]
2023-06-09 9:50 ` patchwork-bot+netdevbpf
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=ZIHc+7/UTJE4c7md@corigine.com \
--to=simon.horman@corigine.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=lanhao@huawei.com \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=phong.hoang.wz@renesas.com \
--cc=s.shtylyov@omp.ru \
--cc=yoshihiro.shimoda.uh@renesas.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