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

improve switchdev configuration by not binding drivers on VF creation #214

Open
adrianchiris opened this issue Dec 13, 2021 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@adrianchiris
Copy link
Collaborator

adrianchiris commented Dec 13, 2021

We can disable driver autoprobe for sriov functions to save the un-needed unbind of driver before switching to switchdev during boot

echo 0 > /sys/bus/pci/devices/PCI_DBDF_OF_PF/sriov_drivers_autoprobe
echo XXX > /sys/bus/pci/devices/PCI_DBDF_OF_PF/sriov_numvfs
Restore drivers autoprobe
echo 1 > /sys/bus/pci/devices/PCI_DBDF_OF_PF/sriov_drivers_autoprobe
bind VF to driver : echo <PCI_DBDF_OF_PF> > sys/bus/pci/drivers_probe

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

No branches or pull requests

1 participant