WSL2-Linux-Kernel/net/dsa
Vivien Didelot 0f3da6afee net: dsa: check out-of-range ageing time value
If a DSA switch driver cannot program an ageing time value due to it
being out-of-range, switchdev will raise a stack trace before failing.

To fix this, add ageing_time_min and ageing_time_max members to the
dsa_switch in order for the switch drivers to optionally specify their
supported ageing time limits.

The DSA core will now check for provided ageing time limits and return
-ERANGE from the switchdev prepare phase if the value is out-of-range.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-03-15 15:34:13 -07:00
..
Kconfig net: dsa: Remove hwmon support 2017-01-20 14:42:51 -05:00
Makefile net: dsa: Fix duplicate object rule 2017-02-09 17:11:09 -05:00
dsa.c net: dsa: Rename and export dev_to_net_device() 2017-02-07 10:51:45 -05:00
dsa2.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-02-11 02:31:11 -05:00
dsa_priv.h net: dsa: add switch notifier 2017-02-06 16:53:29 -05:00
slave.c net: dsa: check out-of-range ageing time value 2017-03-15 15:34:13 -07:00
switch.c net: dsa: introduce bridge notifier 2017-02-06 16:53:29 -05:00
tag_brcm.c net: dsa: store a dsa_port in dsa_slave_priv 2017-01-29 18:42:46 -05:00
tag_dsa.c net: dsa: store a dsa_port in dsa_slave_priv 2017-01-29 18:42:46 -05:00
tag_edsa.c net: dsa: store a dsa_port in dsa_slave_priv 2017-01-29 18:42:46 -05:00
tag_qca.c net: dsa: store a dsa_port in dsa_slave_priv 2017-01-29 18:42:46 -05:00
tag_trailer.c net: dsa: store a dsa_port in dsa_slave_priv 2017-01-29 18:42:46 -05:00