mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
net: dsa: Copy the routing table into the switch structure
The new binding will not have a chip data structure, it will place the routing directly into the switch structure. To enable backwards compatibility, copy the routing from the chip data into the switch structure. 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:
parent
4a7704ffa8
commit
66472fc04e
3 changed files with 12 additions and 3 deletions
|
@ -297,6 +297,8 @@ static int dsa_switch_setup_one(struct dsa_switch *ds, struct device *parent)
|
|||
dst->tag_protocol = drv->tag_protocol;
|
||||
}
|
||||
|
||||
memcpy(ds->rtable, cd->rtable, sizeof(ds->rtable));
|
||||
|
||||
/*
|
||||
* Do basic register setup.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue