]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: dsa: Do not register devlink for unused ports
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 17 May 2018 23:55:39 +0000 (16:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 May 2018 16:08:25 +0000 (12:08 -0400)
commit5447d78623da2eded06d4cd9469d1a71eba43bc4
tree9592be73df93dd131eb22ca88355861626549d6a
parent6358d49ac23995fdfe157cc8747ab0f274d3954b
net: dsa: Do not register devlink for unused ports

Even if commit 1d27732f411d ("net: dsa: setup and teardown ports") indicated
that registering a devlink instance for unused ports is not a problem, and this
is true, this can be confusing nonetheless, so let's not do it.

Fixes: 1d27732f411d ("net: dsa: setup and teardown ports")
Reported-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa2.c