From: David Miller <[email protected]> Date: Tue, 13 Jun 2017 16:11:13 -0400 (EDT)
> From: Florian Fainelli <[email protected]> > Date: Tue, 13 Jun 2017 12:17:21 -0700 > >> This patch series prepares the ground for adding mutliple CPU port support to >> DSA, and starts by removing redundant pieces of information such as >> master_netdev which is cpu_dp->ethernet. Finally drivers are moved away from >> directly accessing ds->dst->cpu_dp and use appropriate helper functions. >> >> Note that if you have Device Tree blobs/platform configurations that are >> currently listing multiple CPU ports, the proposed behavior in >> dsa_ds_get_cpu_dp() will be to return the last bit set in ds->cpu_port_mask. >> >> Future plans include: >> - making dst->cpu_dp a flexible data structure (array, list, you name it) >> - having the ability for drivers to return a default/preferred CPU port (if >> necessary) > ... > > Series applied, thanks Florian. Actually, I reverted, this introduced a warning, please build with NETPOLL enabled: net/dsa/slave.c: In function ‘dsa_slave_netpoll_setup’: net/dsa/slave.c:688:21: warning: unused variable ‘ds’ [-Wunused-variable] struct dsa_switch *ds = p->dp->ds;
