net: dsa: Remove dynamic allocate of routing table
With a maximum of four switches, the size of the routing table is the same as the pointer to it. Removing it makes the code simpler. 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>
This commit is contained in:

committed by
David S. Miller

parent
189b0d93ec
commit
4a7704ffa8
@@ -58,12 +58,11 @@ struct dsa_chip_data {
|
||||
struct device_node *port_dn[DSA_MAX_PORTS];
|
||||
|
||||
/*
|
||||
* An array (with nr_chips elements) of which element [a]
|
||||
* indicates which port on this switch should be used to
|
||||
* send packets to that are destined for switch a. Can be
|
||||
* NULL if there is only one switch chip.
|
||||
* An array of which element [a] indicates which port on this
|
||||
* switch should be used to send packets to that are destined
|
||||
* for switch a. Can be NULL if there is only one switch chip.
|
||||
*/
|
||||
s8 *rtable;
|
||||
s8 rtable[DSA_MAX_SWITCHES];
|
||||
};
|
||||
|
||||
struct dsa_platform_data {
|
||||
|
Reference in New Issue
Block a user