
Solarflare
Server
Adapter
User
Guide
SR
‐
IOV
Virtualization
Using
KVM
Issue
20
©
Solarflare
Communications
2017
349
Using
OpenOnload
in
a
Virtual
Machine
Onload
users
should
refer
to
the
Onload
User
Guide
(SF
‐
104474
‐
CD)
for
further
information
about
using
Onload
in
a
KVM.
When
Onload
and
the
sfc
net
driver
have
been
installed
in
the
guest,
the
sfc
driver
module
option
num_vis
is
used
to
allocate
the
required
number
of
virtual
interfaces.
One
VI
is
needed
for
each
Onload
stack
using
a
VF.
Driver
module
options
should
be
enabled
in
a
user
created
file
(e.g.
sfc.conf)
in
the
/etc/modprobe.d
directory.
options
sfc
num_vis=<num>
Reload
the
driver
after
setting/changing
this
value:
#
onload_tool
reload
7.6
Feature
Summary
Table
83:
Feature
Summary
Default
SRIOV
Partitioning
Partitioning
+
SRIOV
PFIOV
Number
of
PFs
(per
adapter)
num
ports
num
ports
≥
num
ports
≤
16
≥
num
ports
≤
16
≥
num
ports
≤
16
All
PFs
(per
port)
must
be
on
unique
VLANs
N/A
N/A
Yes
Yes
No
Num
VFs
(per
adapter)
0
>0,
≤
240
0
>0,
≤
240
0
Mode
suitable
for
PF
PCIe
passthrough
No
No
No
No
Yes
Mode
suitable
for
VF
PCIe
passthrough
No
Yes
No
Yes
No
sfboot
settings
switch
‐
mode
=default
switch
‐
mode
=sriov
switch
‐
mode
=partitioning
switch
‐
mode
=partitioning
‐
with
‐
sriov
switch
‐
mode
=pfiov
pf
‐
count=1
pf
‐
count=1
pf
‐
count>1
pf
‐
count>1
pf
‐
count>1
vf
‐
count=0
vf
‐
count>0
vf
‐
count=0
vf
‐
count>0
vf
‐
count=0
L2
switching
between
PF
and
associated
VFs
N/A
Yes
N/A
Yes
N/A
L2
switching
between
PFs
on
the
same
physical
port
N/A
N/A
No
No
Yes