Files
linux/drivers
Florian Fainelli 6d3c8c0dd8 net: dsa: Remove master_netdev and use dst->cpu_dp->netdev
In preparation for supporting multiple CPU ports, remove
dst->master_netdev and ds->master_netdev and replace them with only one
instance of the common object we have for a port: struct
dsa_port::netdev. ds->master_netdev is currently write only and would be
helpful in the case where we have two switches, both with CPU ports, and
also connected within each other, which the multi-CPU port patch series
would address.

While at it, introduce a helper function used in net/dsa/slave.c to
immediately get a reference on the master network device called
dsa_master_netdev().

Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-13 16:35:02 -04:00
..
2017-06-03 00:01:45 +02:00
2017-06-09 15:49:02 -04:00
2017-04-27 11:54:49 +01:00
2017-05-28 10:22:42 -07:00
2017-06-13 13:54:03 -04:00
2017-04-20 09:54:24 +02:00
2017-04-10 16:43:41 +05:30
2017-05-18 23:54:47 -07:00
2017-06-04 10:23:25 +02:00