diff options
author | Andrew Lunn | 2016-06-04 21:16:56 +0200 |
---|---|---|
committer | David S. Miller | 2016-06-04 23:29:53 +0200 |
commit | 149cafd790573294752787f5ce1dc0f99e4088d3 (patch) | |
tree | a7242119cc023908a8544027942a0cbfbe502dbc /include/net/dsa.h | |
parent | net: dsa: slave: Remove MDIO address from switch MDIO bus name (diff) | |
download | kernel-qcow2-linux-149cafd790573294752787f5ce1dc0f99e4088d3.tar.gz kernel-qcow2-linux-149cafd790573294752787f5ce1dc0f99e4088d3.tar.xz kernel-qcow2-linux-149cafd790573294752787f5ce1dc0f99e4088d3.zip |
net: dsa: tag_{e}dsa.c: Remove dependency on platform data
The platform data nr_chips is used when validating a received packet,
to ensure it comes from a know switch chip. The number of possible
switches is limited to DSA_MAX_SWITCHES, so use this as the first
validation step. The new binding allows holes in the dst->ds[] array,
so also ensure ensure there is a valid dsa_switch for this packet.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dsa.h')
0 files changed, 0 insertions, 0 deletions