Ethernet VF name/comment

showiproute

Well-Known Member
Mar 11, 2020
615
34
48
36
Austria
Hello there,
this topic is not directly a PVE thing but rather a Linux one.

I recently migrated from PVE ethernet bridging to SR-IOV via my ethernet adapter to see if there are any differences like performance bonus.
So far it works with PCIe passthrough the VF of my NICs but as I have several different VLAN/adapter it would be a nice-to-have to have a possiblity to add a comment or a name next to VF to remember which VF is added to which VM.

Currently it looks like
Code:
3: eno2np1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 3c:ec:ef:73:c7:73 brd ff:ff:ff:ff:ff:ff
    vf 0     link/ether 3a:9f:21:d5:a6:33 brd ff:ff:ff:ff:ff:ff, vlan 20, spoof checking off, link-state auto, trust off
    vf 1     link/ether fa:c2:b0:d9:53:0a brd ff:ff:ff:ff:ff:ff, vlan 20, spoof checking off, link-state auto, trust off
    vf 2     link/ether aa:66:06:b2:ef:d7 brd ff:ff:ff:ff:ff:ff, vlan 20, spoof checking off, link-state auto, trust off
    vf 3     link/ether 96:d9:7a:56:0f:e1 brd ff:ff:ff:ff:ff:ff, vlan 10, spoof checking off, link-state auto, trust off
    vf 4     link/ether 72:64:ae:06:31:c9 brd ff:ff:ff:ff:ff:ff, vlan 12, spoof checking off, link-state auto, trust off
    vf 5     link/ether 2e:27:94:0b:53:89 brd ff:ff:ff:ff:ff:ff, spoof checking off, link-state auto, trust off
    vf 6     link/ether 5e:46:fe:2d:71:1d brd ff:ff:ff:ff:ff:ff, spoof checking off, link-state auto, trust off
    vf 7     link/ether ce:fe:51:34:33:82 brd ff:ff:ff:ff:ff:ff, spoof checking off, link-state auto, trust off



What I imagine would be:
Code:
3: eno2np1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 3c:ec:ef:73:c7:73 brd ff:ff:ff:ff:ff:ff
    vf 0     link/ether 3a:9f:21:d5:a6:33 brd ff:ff:ff:ff:ff:ff, vlan 20, spoof checking off, link-state auto, trust off, name=WindowsServerVM
    vf 1     link/ether fa:c2:b0:d9:53:0a brd ff:ff:ff:ff:ff:ff, vlan 20, spoof checking off, link-state auto, trust off, name=Firewall
    vf 2     link/ether aa:66:06:b2:ef:d7 brd ff:ff:ff:ff:ff:ff, vlan 20, spoof checking off, link-state auto, trust off, name=VM109
    ....