net: dsa: Make use of devlink port flavour unused
authorAndrew Lunn <andrew@lunn.ch>
Sun, 4 Oct 2020 16:12:52 +0000 (18:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Oct 2020 21:38:52 +0000 (14:38 -0700)
commitf15ec13a9630f0c2297ff94f9fd588d2525fc020
treed5005457cc3c4d7b116e7a02ed0afc4551e2c633
parentcf1166349c68816f4259d32559f54972b0d5c1a4
net: dsa: Make use of devlink port flavour unused

If a port is unused, still create a devlink port for it, but set the
flavour to unused. This allows us to attach devlink regions to the
port, etc.

Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Tested-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa2.c