lkml.org 
[lkml]   [2021]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [net-next PATCH 13/19] net: dsa: qca8k: add min/max ageing time
On Wed, Nov 17, 2021 at 10:04:45PM +0100, Ansuel Smith wrote:
> Add min and max ageing value for qca8k switch.
>
> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
> ---
> drivers/net/dsa/qca8k.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/net/dsa/qca8k.c b/drivers/net/dsa/qca8k.c
> index 50f19549b97d..dda99263fe8c 100644
> --- a/drivers/net/dsa/qca8k.c
> +++ b/drivers/net/dsa/qca8k.c
> @@ -1291,6 +1291,10 @@ qca8k_setup(struct dsa_switch *ds)
> /* We don't have interrupts for link changes, so we need to poll */
> ds->pcs_poll = true;
>
> + /* Set min a max ageing value supported */
> + ds->ageing_time_min = 7000;
> + ds->ageing_time_max = 458745000;
> +
> return 0;
> }
>
> --
> 2.32.0
>

Squash with previous patch please, and you should be able to remove the
range check from qca8k_set_ageing_time.

\
 
 \ /
  Last update: 2021-11-19 02:50    [W:0.525 / U:0.716 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site