- #Linux command to find mac address of pci port install
- #Linux command to find mac address of pci port driver
RoCE is supported on Virtual Functions and VLANs may be used with it. The /etc/opensm/nf file should contain the following line: Make sure that OpenSM supports Virtualization (Virtualization must be enabled). To see the VFs configuration, you must unbind and bind them or reboot the VMs if the VFs were assigned.
#Linux command to find mac address of pci port driver
Notes: - The policy of all the vports is initialized to “Down” after the PF driver is restarted except for VPort0 for which the policy is modified to 'Follow' by the PF driver. Otherwise, the VPort PortState is 'Down'. If the PortState of the physical port is 'Active', then the VPort implements the 'Up' policy. Follow - follows the PortState of the physical port. The result is that the SM may bring the VPort up. The policy can be one of: - Down - the VPort PortState remains 'Down' - Up - if the current VPort PortState is 'Down', it is modified to 'Initialize'. The user can set the port GUID by writing to the /sys/class/infiniband//device/sriov//port file.
The administrator of the VF will need to restart the driver in order to resume working with the VF. The VF driver will discover this situation and will close its resources - When the driver on the PF is reloaded, the VF becomes operational. This is applicable to OSs with kernels that use pci_stub and not vfio. This means that VFs will be visible on the VM.
If there are VFs assigned to a VM, it is not possible to change the number of VFs - If the administrator unloads the driver on the PF while there are no VFs assigned, the driver will unload and SRI-OV will be disabled - If there are VFs assigned while the driver of the PF is unloaded, SR-IOV will not be disabled. The following rules apply when writing to these files: - If there are no VFs assigned, the number of VFs can be changed to any valid value (0 - max #VFs as set during FW burning) In such kernels, using sriov_numvfs results in the following error: “bash: echo: write error: Function not implemented”. Note: This file is used by old kernels that do not support the standard file. For example, to Intel systems, add:Įcho > /sys/class/infiniband/mlx5_0/device/mlx5_num_vfs