vyos-build icon indicating copy to clipboard operation
vyos-build copied to clipboard

linux-kernel: T6485: build modules for thunderbolt and thunderbolt-net

Open rafaelgaspar opened this issue 8 months ago • 5 comments

Change Summary

This is the first step in order to have Thunderbolt Networking support in VyOS.

I have been successfully using a custom built kernel for this for a few months now, and with this change it will still require manual setup of the PCIe address within systemd and udev rules that I plan on implementing as a proper interface in the CLI next.

Types of changes

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [X] New feature (non-breaking change which adds functionality)
  • [ ] Code style update (formatting, renaming)
  • [ ] Refactoring (no functional changes)
  • [ ] Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • [ ] Other (please describe):

Related Task(s)

https://vyos.dev/T6485

Component(s) name

linux-kernel

Proposed changes

Add modules for thunderbolt and thunderbolt-net

How to test

If anyone would like to actually enable this to test, at the moment you would create the interface file /etc/systemd/network/00-=thhunderbolt0.link as follows:

[Match]
Path=pci-0000:04:00.1
Driver=thunderbolt-net
[Link]
MACAddressPolicy=none
Name=thunderbolt0

Replacing the Path with the PCIe address of the Thunderbolt controller port.

If you wan to have the interface come up when a cable is connected, you would also need to add this udev rule /etc/udev/rules.d/60-thunderbolt-network-interfaces.rules as follows:

ACTION=="add", SUBSYSTEM=="net", KERNEL=="thunderbolt0", RUN+="/usr/sbin/ifconfig thunderbolt0 up"

Checklist:

  • [x] I have read the CONTRIBUTING document
  • [x] I have linked this PR to one or more Phabricator Task(s)
  • [x] My commit headlines contain a valid Task id
  • [ ] My change requires a change to the documentation
  • [ ] I have updated the documentation accordingly

rafaelgaspar avatar Jun 14 '24 08:06 rafaelgaspar