Skip to content

Commit

Permalink
net: thunderbolt: Move into own directory
Browse files Browse the repository at this point in the history
We will be adding tracepoints to the driver so instead of littering the
main network driver directory, move the driver into its own directory.
While there, rename the module to thunderbolt_net (with underscore) to
match with the thunderbolt_dma_test convention.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Yehezkel Bernat <YehezkelShB@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
westeri authored and kuba-moo committed Jan 13, 2023
1 parent dec5efc commit 0d0950a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion MAINTAINERS
Expand Up @@ -20789,7 +20789,7 @@ M: Mika Westerberg <mika.westerberg@linux.intel.com>
M: Yehezkel Bernat <YehezkelShB@gmail.com>
L: netdev@vger.kernel.org
S: Maintained
F: drivers/net/thunderbolt.c
F: drivers/net/thunderbolt/

THUNDERX GPIO DRIVER
M: Robert Richter <rric@kernel.org>
Expand Down
13 changes: 1 addition & 12 deletions drivers/net/Kconfig
Expand Up @@ -583,18 +583,7 @@ config FUJITSU_ES
This driver provides support for Extended Socket network device
on Extended Partitioning of FUJITSU PRIMEQUEST 2000 E2 series.

config USB4_NET
tristate "Networking over USB4 and Thunderbolt cables"
depends on USB4 && INET
help
Select this if you want to create network between two computers
over a USB4 and Thunderbolt cables. The driver supports Apple
ThunderboltIP protocol and allows communication with any host
supporting the same protocol including Windows and macOS.

To compile this driver a module, choose M here. The module will be
called thunderbolt-net.

source "drivers/net/thunderbolt/Kconfig"
source "drivers/net/hyperv/Kconfig"

config NETDEVSIM
Expand Down
4 changes: 1 addition & 3 deletions drivers/net/Makefile
Expand Up @@ -84,8 +84,6 @@ obj-$(CONFIG_HYPERV_NET) += hyperv/
obj-$(CONFIG_NTB_NETDEV) += ntb_netdev.o

obj-$(CONFIG_FUJITSU_ES) += fjes/

thunderbolt-net-y += thunderbolt.o
obj-$(CONFIG_USB4_NET) += thunderbolt-net.o
obj-$(CONFIG_USB4_NET) += thunderbolt/
obj-$(CONFIG_NETDEVSIM) += netdevsim/
obj-$(CONFIG_NET_FAILOVER) += net_failover.o
12 changes: 12 additions & 0 deletions drivers/net/thunderbolt/Kconfig
@@ -0,0 +1,12 @@
# SPDX-License-Identifier: GPL-2.0-only
config USB4_NET
tristate "Networking over USB4 and Thunderbolt cables"
depends on USB4 && INET
help
Select this if you want to create network between two computers
over a USB4 and Thunderbolt cables. The driver supports Apple
ThunderboltIP protocol and allows communication with any host
supporting the same protocol including Windows and macOS.

To compile this driver a module, choose M here. The module will be
called thunderbolt_net.
3 changes: 3 additions & 0 deletions drivers/net/thunderbolt/Makefile
@@ -0,0 +1,3 @@
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_USB4_NET) := thunderbolt_net.o
thunderbolt_net-objs := main.o
File renamed without changes.

0 comments on commit 0d0950a

Please sign in to comment.