$ sudo ip link set enp130s0f0 vf 2 vlan 1
RTNETLINK answers: Operation not permitted
$ sudo ip link set enp130s0f0 vf 2 vlan 0 ; echo $?
0
Looks good - vlan 0 programming doesn't result in EPERM as expected contrary to non-zero vlans.
Will try others as well. It would be good to backport it to currently released versions above Focal (for production, we are mostly looking for Focal GA + HWE kernels but it keeping it fixed consistently seems like the right approach).
Focal:
$ uname -r
5.4.0-97-generic
$ sudo ip link set enp130s0f0 vf 2 vlan 1
RTNETLINK answers: Operation not permitted
$ sudo ip link set enp130s0f0 vf 2 vlan 0 ; echo $?
0
Looks good - vlan 0 programming doesn't result in EPERM as expected contrary to non-zero vlans.
Will try others as well. It would be good to backport it to currently released versions above Focal (for production, we are mostly looking for Focal GA + HWE kernels but it keeping it fixed consistently seems like the right approach).