QA:Testcase biosdevname SRIOV virtual function interface names

From FedoraProject

Revision as of 12:50, 17 January 2011 by Narendrak (Talk | contribs)

Jump to: navigation, search

Contents

Description

This test case verifies how network interfaces registered for the Virtual Functions enabled by network adapters with SRIOV capability. For more information on SRIOV and how to enable Virtual Functions can be found here - http://fedoraproject.org/wiki/Test_Day:2009-09-17_Virtualization_SR-IOV.

Setup

1. Plug in a PCI add-in network adapter with SRIOV capability in say PCI Slot 3.

07:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
[root@fedora-14-r710 ~]# lspci -s 07:00.0  -n
07:00.0 0200: 8086:10c9 (rev 01)

2. Enable the virtual functions by re-loading the Physical Function driver. This can be automated during system boot by creating the following file and passing 'max_vfs' parameter.

[root@fedora-14-r710 ~]# cat /etc/modprobe.d/igb.conf
options igb max_vfs=2

3. Verify that Virtual Functions are enabled by issuing 'lspci' command.

[root@fedora-14-r710 ~]# lspci | grep -i ether
07:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
07:00.1 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
07:10.0 Ethernet controller: Intel Corporation 82576 Virtual Function (rev 01)
07:10.1 Ethernet controller: Intel Corporation 82576 Virtual Function (rev 01)
07:10.2 Ethernet controller: Intel Corporation 82576 Virtual Function (rev 01)
07:10.3 Ethernet controller: Intel Corporation 82576 Virtual Function (rev 01)

Observe that 'lspci' lists 2 virtual functions for each of the Physical Functions

Howto Test

Expected Results