aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa.c
diff options
context:
space:
mode:
authorAndrew Lunn <[email protected]>2016-06-04 19:16:56 +0000
committerDavid S. Miller <[email protected]>2016-06-04 21:29:53 +0000
commit149cafd790573294752787f5ce1dc0f99e4088d3 (patch)
treea7242119cc023908a8544027942a0cbfbe502dbc /net/dsa/dsa.c
parentnet: dsa: slave: Remove MDIO address from switch MDIO bus name (diff)
downloadkernel-149cafd790573294752787f5ce1dc0f99e4088d3.tar.gz
kernel-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 <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Reviewed-by: Vivien Didelot <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/dsa/dsa.c')
0 files changed, 0 insertions, 0 deletions