OSDN Git Service

net: dsa: Move the phylink driver calls into port.c
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 28 May 2019 17:38:15 +0000 (20:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 04:48:53 +0000 (21:48 -0700)
commit77373d49de22e836cf58ddbe7689d6b4b5046539
tree238625363ff83589cfbcd0080b4ba38c932cd0c1
parent17091180b1521ee9b4455d75ab61b35bc0b216ff
net: dsa: Move the phylink driver calls into port.c

In order to have a common handling of PHYLINK for the slave and non-user
ports, the DSA core glue logic (between PHYLINK and the driver) must use
an API that does not rely on a struct net_device.

These will also be called by the CPU-port-handling code in a further
patch.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Suggested-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa_priv.h
net/dsa/port.c
net/dsa/slave.c