Skip to content

Commit 3a89eaa

Browse files
viviendavem330
authored andcommitted
net: dsa: select NET_SWITCHDEV
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 <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Tested-by: Randy Dunlap <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent bda65b4 commit 3a89eaa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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)