How to Destroy an Ethernet SR-IOV Virtual Function
If you cannot use this dynamic method, use the static method instead. See Static SR-IOV.
Example 8-7 Destroying an Ethernet Virtual Function
This example shows how to dynamically destroy the /SYS/MB/NET0/IOVNET.PF0.VF0
virtual function.
primary# ldm destroy-vf /SYS/MB/NET0/IOVNET.PF0.VF0
The following example shows how to statically destroy the /SYS/MB/NET0/IOVNET.PF0.VF0
virtual function.
primary# ldm start-reconf primary Initiating a delayed reconfiguration operation on the primary domain. All configuration changes for other domains are disabled until the primary domain reboots, at which time the new configuration for the primary domain will also take effect. primary# ldm destroy-vf /SYS/MB/NET0/IOVNET.PF0.VF0 primary# shutdown -i6 -g0 -y
Example 8-8 Destroying Multiple Ethernet SR-IOV Virtual Functions
This example shows the results of destroying all the virtual functions from the /SYS/MB/NET2/IOVNET.PF1
physical function. The ldm list-io
output shows that the physical function has seven virtual functions. The ldm destroy-vf
command destroys all virtual functions, and the final ldm list-io
output shows that none of the virtual functions remain.
primary# ldm list-io ... /SYS/MB/NET2/IOVNET.PF1 PF pci_1 /SYS/MB/NET2/IOVNET.PF1.VF0 VF pci_1 /SYS/MB/NET2/IOVNET.PF1.VF1 VF pci_1 /SYS/MB/NET2/IOVNET.PF1.VF2 VF pci_1 /SYS/MB/NET2/IOVNET.PF1.VF3 VF pci_1 /SYS/MB/NET2/IOVNET.PF1.VF4 VF pci_1 /SYS/MB/NET2/IOVNET.PF1.VF5 VF pci_1 /SYS/MB/NET2/IOVNET.PF1.VF6 VF pci_1 primary# ldm destroy-vf -n max /SYS/MB/NET2/IOVNET.PF1 primary# ldm list-io ... /SYS/MB/NET2/IOVNET.PF1 PF pci_1 ldg1