Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VFInfo doesn't show for Red Hat, Inc. Virtio network device #928

Open
laihezhao opened this issue Nov 19, 2023 · 0 comments
Open

VFInfo doesn't show for Red Hat, Inc. Virtio network device #928

laihezhao opened this issue Nov 19, 2023 · 0 comments

Comments

@laihezhao
Copy link

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 []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant