Skip to content

Commit f38a3a1

Browse files
viviengregkh
authored andcommitted
net: dsa: select NET_SWITCHDEV
[ Upstream commit 3a89eaa65db68bf53bf92dedc60084f810e1779a ] The support for DSA Ethernet switch chips depends on TCP/IP networking, thus explicit that HAVE_NET_DSA depends on INET. DSA uses SWITCHDEV, thus select it instead of depending on it. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Tested-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 581243d commit f38a3a1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

net/dsa/Kconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
config HAVE_NET_DSA
22
def_bool y
3-
depends on NETDEVICES && !S390
3+
depends on INET && NETDEVICES && !S390
44

55
# Drivers must select NET_DSA and the appropriate tagging format
66

77
config NET_DSA
88
tristate "Distributed Switch Architecture"
9-
depends on HAVE_NET_DSA && NET_SWITCHDEV
9+
depends on HAVE_NET_DSA
10+
select NET_SWITCHDEV
1011
select PHYLIB
1112
---help---
1213
Say Y if you want to enable support for the hardware switches supported

0 commit comments

Comments
 (0)