summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Kellner <christian@kellner.me>2018-04-19 14:05:52 +0200
committerChristian Kellner <christian@kellner.me>2018-04-19 14:20:04 +0200
commit89af7fbfa6cc4f43446b2f38c3ddd885b5be79f1 (patch)
tree5a0a2a15e1445968a8b4c84f151dbf409ae35ff4 /data
parent8cbce0e18fda921bf0e20b28e9b7a7dd7cdbf9b4 (diff)
downloadNetworkManager-89af7fbfa6cc4f43446b2f38c3ddd885b5be79f1.tar.gz
all: add support for thunderbolt networking
Load the thunderbolt-net module if we see a host-to-host connection and configure the resulting ethernet connection automatically to be a link-local only one. The latter is done by setting a new udev property "NM_AUTO_DEFAULT_LINK_LOCAL_ONLY" which is picked up when we configure the connection for the device. https://github.com/NetworkManager/NetworkManager/pull/97
Diffstat (limited to 'data')
-rw-r--r--data/90-nm-thunderbolt.rules13
-rw-r--r--data/meson.build3
2 files changed, 15 insertions, 1 deletions
diff --git a/data/90-nm-thunderbolt.rules b/data/90-nm-thunderbolt.rules
new file mode 100644
index 0000000000..52d8bb410f
--- /dev/null
+++ b/data/90-nm-thunderbolt.rules
@@ -0,0 +1,13 @@
+# Do not modify this file, it will get overwritten on updates.
+# To override or extend the rules place a file in /etc/udev/rules.d
+
+ACTION!="add", GOTO="nm_thunderbolt_end"
+
+# Load he thunderbolt-net driver if we a device of type thunderbolt_xdomain
+# is added.
+SUBSYSTEM=="thunderbolt", ENV{DEVTYPE}=="thunderbolt_xdomain", RUN{builtin}+="kmod load thunderbolt-net"
+
+# For all thunderbolt network devices, we want to enable link-local configuration
+SUBSYSTEM=="net", ENV{ID_NET_DRIVER}=="thunderbolt-net", ENV{NM_AUTO_DEFAULT_LINK_LOCAL_ONLY}="1"
+
+LABEL="nm_thunderbolt_end"
diff --git a/data/meson.build b/data/meson.build
index e493e5154b..636db92197 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -50,7 +50,8 @@ endif
if install_udev_dir
data = files(
'84-nm-drivers.rules',
- '85-nm-unmanaged.rules'
+ '85-nm-unmanaged.rules',
+ '90-nm-thunderbolt.rules'
)
install_data(