From: Sergey Shtylyov <sergei.shtylyov@gmail.com>
To: "Michael Dege" <michael.dege@renesas.com>,
"Yoshihiro Shimoda" <yoshihiro.shimoda.uh@renesas.com>,
"Niklas Söderlund" <niklas.soderlund@ragnatech.se>,
"Paul Barker" <paul@pbarker.dev>,
"Andrew Lunn" <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>
Cc: netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
linux-kernel@vger.kernel.org,
Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Subject: Re: [PATCH net-next v4 4/4] net: renesas: rswitch: add modifiable ageing time
Date: Thu, 28 Aug 2025 16:37:42 +0300 [thread overview]
Message-ID: <638d337a-6485-4eb3-a53c-c6fd7dadafbc@gmail.com> (raw)
In-Reply-To: <20250828-add_l2_switching-v4-4-89d7108c8592@renesas.com>
On 8/28/25 1:23 PM, Michael Dege wrote:
> This commit allows the setting of the MAC table aging in the R-Car S4
Please just use the imperative mood: Allow the setting...
> Rswitch using the SWITCHDEV_ATTR_ID_BRIDGE_AGEING_TIME attribute.
>
> Signed-off-by: Michael Dege <michael.dege@renesas.com>
> ---
> drivers/net/ethernet/renesas/rswitch_l2.c | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
>
> diff --git a/drivers/net/ethernet/renesas/rswitch_l2.c b/drivers/net/ethernet/renesas/rswitch_l2.c
> index 49a24464dbb0cf3f3219a0699fc4671ddd71ef03..c57396af70a4b291746d6451eae7cf60b3f89721 100644
> --- a/drivers/net/ethernet/renesas/rswitch_l2.c
> +++ b/drivers/net/ethernet/renesas/rswitch_l2.c
> @@ -193,6 +193,25 @@ static int rswitch_netdevice_event(struct notifier_block *nb,
> return NOTIFY_OK;
> }
>
> +static int rswitch_update_ageing_time(struct net_device *ndev, clock_t time)
> +{
> + struct rswitch_device *rdev = netdev_priv(ndev);
> + u32 reg_val;
> +
> + if (!is_rdev(ndev))
> + return -ENODEV;
> +
> + if (!FIELD_FIT(FWMACAGC_MACAGT, time))
> + return -EINVAL;
> +
> + rdev = netdev_priv(ndev);
Haven't you already initialized rdev to the same value above?
[...]
MBR, Sergey
next prev parent reply other threads:[~2025-08-28 13:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-28 10:23 [net-next PATCH v4 0/4] net: renesas: rswitch: R-Car S4 add HW offloading for layer 2 switching Michael Dege
2025-08-28 10:23 ` [PATCH net-next v4 1/4] net: renesas: rswitch: rename rswitch.c to rswitch_main.c Michael Dege
2025-08-28 10:23 ` [PATCH net-next v4 2/4] net: renesas: rswitch: configure default ageing time Michael Dege
2025-08-28 10:23 ` [PATCH net-next v4 3/4] net: renesas: rswitch: add offloading for L2 switching Michael Dege
2025-08-28 18:42 ` ALOK TIWARI
2025-08-29 6:15 ` Michael Dege
2025-08-28 10:23 ` [PATCH net-next v4 4/4] net: renesas: rswitch: add modifiable ageing time Michael Dege
2025-08-28 13:37 ` Sergey Shtylyov [this message]
2025-08-29 9:17 ` Michael Dege
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=638d337a-6485-4eb3-a53c-c6fd7dadafbc@gmail.com \
--to=sergei.shtylyov@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=michael.dege@renesas.com \
--cc=netdev@vger.kernel.org \
--cc=nikita.yoush@cogentembedded.com \
--cc=niklas.soderlund@ragnatech.se \
--cc=pabeni@redhat.com \
--cc=paul@pbarker.dev \
--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.