net: dsa: move port state setters
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 19 May 2017 21:00:44 +0000 (17:00 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 May 2017 23:37:32 +0000 (19:37 -0400)
commita40c175b4a4a2c6f7e111ed6dc0186c75287dff0
tree71b457ff4c6482d84e233cbdcd82380c06776150
parent072bb1903a0ff810c6091d2f6bf7c80e76dab0e6
net: dsa: move port state setters

Add a new port.c file to hold all DSA port-wide logic. This patch moves
in the code which sets a port state.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/Makefile
net/dsa/dsa_priv.h
net/dsa/port.c [new file with mode: 0644]
net/dsa/slave.c