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, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
geert+renesas@glider.be, magnus.damm@gmail.com,
netdev@vger.kernel.org, devicetree@vger.kernel.org,
linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH net-next 5/5] net: renesas: rswitch: Use per-queue rate limiter
Date: Tue, 30 May 2023 21:29:21 +0200 [thread overview]
Message-ID: <ZHZOkTChN5pAl417@corigine.com> (raw)
In-Reply-To: <20230529080840.1156458-6-yoshihiro.shimoda.uh@renesas.com>
On Mon, May 29, 2023 at 05:08:40PM +0900, Yoshihiro Shimoda wrote:
> Use per-queue rate limiter instead of global rate limiter. Otherwise
> TX performance will be low when we use multiple ports at the same time.
>
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> ---
> drivers/net/ethernet/renesas/rswitch.c | 51 +++++++++++++++++---------
> drivers/net/ethernet/renesas/rswitch.h | 15 +++++++-
> 2 files changed, 47 insertions(+), 19 deletions(-)
>
> diff --git a/drivers/net/ethernet/renesas/rswitch.c b/drivers/net/ethernet/renesas/rswitch.c
> index 4ae34b0206cd..a7195625a2c7 100644
> --- a/drivers/net/ethernet/renesas/rswitch.c
> +++ b/drivers/net/ethernet/renesas/rswitch.c
> @@ -156,22 +156,31 @@ static int rswitch_gwca_axi_ram_reset(struct rswitch_private *priv)
> return rswitch_reg_wait(priv->addr, GWARIRM, GWARIRM_ARR, GWARIRM_ARR);
> }
>
> -static void rswitch_gwca_set_rate_limit(struct rswitch_private *priv, int rate)
> +static void rswitch_gwca_set_rate_limit(struct rswitch_private *priv,
> + struct rswitch_gwca_queue *txq)
> {
> - u32 gwgrlulc, gwgrlc;
> + u64 period_ps;
> + unsigned long rate;
> + u32 gwrlc;
Hi Shimoda-san,
a minor not from my side: please use reverse xmas tree order - longest line
to shortest - for local variable declarations in networking code.
unsigned long rate;
u64 period_ps;
u32 gwrlc;
--
pw-bot: cr
next prev parent reply other threads:[~2023-05-30 19:29 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-29 8:08 [PATCH net-next 0/5] net: renesas: rswitch: Improve performance of TX Yoshihiro Shimoda
2023-05-29 8:08 ` [PATCH net-next 1/5] dt-bindings: net: r8a779f0-ether-switch: Add ACLK Yoshihiro Shimoda
2023-05-29 18:36 ` Conor Dooley
2023-05-29 20:11 ` Andrew Lunn
2023-05-29 20:44 ` Conor Dooley
2023-05-30 0:19 ` Yoshihiro Shimoda
2023-05-30 7:22 ` Conor Dooley
2023-05-30 11:42 ` Yoshihiro Shimoda
2023-05-30 12:27 ` Krzysztof Kozlowski
2023-05-29 8:08 ` [PATCH net-next 2/5] net: renesas: rswitch: Rename GWCA related definitions Yoshihiro Shimoda
2023-05-30 7:17 ` Geert Uytterhoeven
2023-05-30 11:37 ` Yoshihiro Shimoda
2023-05-29 8:08 ` [PATCH net-next 3/5] net: renesas: rswitch: Alloc all 128 queues Yoshihiro Shimoda
2023-05-29 8:08 ` [PATCH net-next 4/5] net: renesas: rswitch: Use AXI_TLIM_N queues if a TX queue Yoshihiro Shimoda
2023-05-29 8:08 ` [PATCH net-next 5/5] net: renesas: rswitch: Use per-queue rate limiter Yoshihiro Shimoda
2023-05-29 20:37 ` kernel test robot
2023-05-29 23:45 ` kernel test robot
2023-05-30 7:33 ` Geert Uytterhoeven
2023-05-30 11:45 ` Yoshihiro Shimoda
2023-05-30 19:29 ` Simon Horman [this message]
2023-06-06 8:59 ` Yoshihiro Shimoda
2023-05-29 16:22 ` [PATCH net-next 0/5] net: renesas: rswitch: Improve performance of TX Andrew Lunn
2023-05-29 23:41 ` Yoshihiro Shimoda
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=ZHZOkTChN5pAl417@corigine.com \
--to=simon.horman@corigine.com \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=geert+renesas@glider.be \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kuba@kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=robh+dt@kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.