
Issue 11
© Solarflare Communications 2014
314
Solarflare Server Adapter
User Guide
2
As root install the binary rpm indicated by the "Wrote:" lines from rpmbuild
rpm -Uvh RPMS/x86_64/kmod-virtio-2.6.37-1.0.0.0016-1.el6.sf.x86_64.rpm
3
As any user
rpmbuild --rebuild xnap-1.0.0.0016-1.el6.src.rpm
4
As root install the binary rpm indicated by the "Wrote:" lines from rpmbuild
rpm -Uvh RPMS/x86_64/kmod-xnap-1.0.0.0016-1.el6.x86_64.rpm
7.4 Configuration Red Hat 6.1
Host Network Configuration
As previously described, Solarflare SR-IOV support uses a plugin model, whereby virtual functions
accelerate virtio network adapters. This section presents an overview of how to configure virtio
based networking.
• Configure Bridged networking on the hosts, creating a bridge for each Solarflare network device
and attach the physical network device to the bridge. The instructions to configure bridging can
be found at Redhat: Bridged networking with libvirt.
• Assign an IP address to the bridge. Verify network connectivity between the hosts over the
Solarflare network drivers using ping (or a similar tool).
• For each guest on the host, create virtio network adapters attached to the newly created
bridges. You can enable SR-IOV acceleration of each virtio adapter as described below.
XML Format for SR-IOV
A virtio interface onto a bridge "br1" could be implemented using the following XML fragment:
<interface type='bridge'>
<mac address='00:50:56:3e:86:29'/>
<source bridge='br1'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x0a'
function='0x0'/>
</interface>
To accelerate this virtio adapter by using VFs provided by "eth4" modify the fragment as shown,
adding the vf-hotplug element with hybrid=yes.
<interface type='bridge'>
<mac address='00:50:56:3e:86:29'/>
<source bridge='br1'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x0a'
function='0x0'/>