netlink
netlink copied to clipboard
VFInfo doesn't show for Red Hat, Inc. Virtio network device
I has a dpu device that uses Red Hat Virtio network driver for the viritio-net,
60:00.0 Ethernet controller: Red Hat, Inc. Virtio network device (rev 01)
61:00.0 Ethernet controller: Red Hat, Inc. Virtio network device (rev 01)
the vf information :
link/ether ee:b5:08:ac:97:23 brd ff:ff:ff:ff:ff:ff
altname enp97s0v126
i use sriov-cni as the kubernetes cni
github.com/k8snetworkplumbingwg/sriov-cni/
code
if err != nil {
return fmt.Errorf("failed to lookup master %q: %v", conf.Master, err)
}
// Save current the VF state before modifying it
vfState := getVfInfo(pfLink, conf.VFID)
if vfState == nil {
return fmt.Errorf("failed to find vf %d", conf.VFID)
}
Error
failed to find vf 8
I printf the pfLink variable, that pfLink.attr().Vfs is []