net: dsa: Pass dsa_port reference to ethtool setup/restore
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 2 Jun 2017 19:31:21 +0000 (12:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Jun 2017 00:05:15 +0000 (20:05 -0400)
commit937c7df85ce7ce6b2319894f6ad3376f15dff186
treec98f81eae0f9a8e42ff136eb81ba188dad586400
parent1820dd0633b9972028e377ee76e5d40873491d25
net: dsa: Pass dsa_port reference to ethtool setup/restore

We do not need to have a reference to a dsa_switch, instead we should
pass a reference to a CPU dsa_port, change that. This is a preliminary
change to better support multiple CPU ports.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c
net/dsa/dsa2.c
net/dsa/dsa_priv.h
net/dsa/legacy.c