Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1601693 > unrolled thread

[PATCH net-next v2 3/3] net: dsa: mv88e6xxx: specify ageing time limits

Started byVivien Didelot <vivien.didelot@savoirfairelinux.com>
First post2017-03-15 21:00 +0100
Last post2017-03-15 21:10 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH net-next v2 3/3] net: dsa: mv88e6xxx: specify ageing time limits Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2017-03-15 21:00 +0100
    Re: [PATCH net-next v2 3/3] net: dsa: mv88e6xxx: specify ageing time  limits Florian Fainelli <f.fainelli@gmail.com> - 2017-03-15 21:10 +0100

#1601693 — [PATCH net-next v2 3/3] net: dsa: mv88e6xxx: specify ageing time limits

FromVivien Didelot <vivien.didelot@savoirfairelinux.com>
Date2017-03-15 21:00 +0100
Subject[PATCH net-next v2 3/3] net: dsa: mv88e6xxx: specify ageing time limits
Message-ID<tlnfs-3Ul-17@gated-at.bofh.it>
Now that DSA has ageing time limits, specify them when registering a
switch so that out-of-range values are handled correctly by the core.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reported-by: Jason Cobham <jcobham@questertangent.com>
---
 drivers/net/dsa/mv88e6xxx/chip.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c
index 3354f99df378..2bca297d9296 100644
--- a/drivers/net/dsa/mv88e6xxx/chip.c
+++ b/drivers/net/dsa/mv88e6xxx/chip.c
@@ -4253,6 +4253,8 @@ static int mv88e6xxx_register_switch(struct mv88e6xxx_chip *chip)
 
 	ds->priv = chip;
 	ds->ops = &mv88e6xxx_switch_ops;
+	ds->ageing_time_min = chip->info->age_time_coeff;
+	ds->ageing_time_max = chip->info->age_time_coeff * U8_MAX;
 
 	dev_set_drvdata(dev, ds);
 
-- 
2.12.0

[toc] | [next] | [standalone]


#1601700 — Re: [PATCH net-next v2 3/3] net: dsa: mv88e6xxx: specify ageing time limits

FromFlorian Fainelli <f.fainelli@gmail.com>
Date2017-03-15 21:10 +0100
SubjectRe: [PATCH net-next v2 3/3] net: dsa: mv88e6xxx: specify ageing time limits
Message-ID<tlnp7-4cY-1@gated-at.bofh.it>
In reply to#1601693
On 03/15/2017 12:53 PM, Vivien Didelot wrote:
> Now that DSA has ageing time limits, specify them when registering a
> switch so that out-of-range values are handled correctly by the core.
> 
> Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
> Reported-by: Jason Cobham <jcobham@questertangent.com>

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web