Created
April 29, 2026 22:33
-
-
Save FlorianHeigl/2d3dcb5e80dbe5c1b36c70cea320bae6 to your computer and use it in GitHub Desktop.
liquidio-II openvswitch kernel module and env init
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| modprobe liquidio fw_type=vsw | |
| echo 50 > /sys/bus/pci/devices/0000:01:00.0/sriov_numvfs | |
| echo 50 > /sys/bus/pci/devices/0000:01:00.1/sriov_numvfs | |
| PF0=eth0 | |
| PF1=eth1 | |
| LIO_BOND_MGMT=lio-bond-mgmt | |
| LIO_MACVLAN_PF0=lio-mcvlan0 | |
| LIO_MACVLAN_PF1=lio-mcvlan1 | |
| LIO_HOST_MGMT_IP4_ADDR="169.254.1.2" | |
| LIO_MGMT_IP4_ADDR="169.254.1.1" | |
| LIO_MGMT_IP4_MASK=16 | |
| ip link set $PF0 up | |
| ip link set $PF1 up | |
| ip link add $LIO_MACVLAN_PF0 link $PF0 type macvlan | |
| ip link add $LIO_MACVLAN_PF1 link $PF1 type macvlan | |
| ip link add $LIO_BOND_MGMT type bond | |
| echo balance-rr > /sys/class/net/$LIO_BOND_MGMT/bonding/mode | |
| ip link set $LIO_MACVLAN_PF0 master $LIO_BOND_MGMT | |
| ip link set $LIO_MACVLAN_PF1 master $LIO_BOND_MGMT | |
| ip addr add $LIO_HOST_MGMT_IP4_ADDR/$LIO_MGMT_IP4_MASK dev $LIO_BOND_MGMT | |
| ip link set $LIO_BOND_MGMT up |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Notes
tl;dr
details
lio_23xx_vsw.binfrom older kernel mods. it was removed due to a CVE. IMO you can fix that CVE by editing the embedded filesystem in the kernel module. IMHO it also doesn't effing matter.sriov_numvfs; IIRC you need one or two for the pf itself and it's not automatically reserved!(*) I'll publish it once I know more. there was a CVE regarding the OVS or root password I think so it's something trivial
I'll update this when I made progress (waiting for more, different DAC cables to find what will link up). Testing with a Cisco Passive DAC next, and after that an active Cisco DAC. That's just like $100 for those two tries so... not cool.
I don't have loads of 25Gbit/s ports... I'm right here trying to make them more accessible, right?