summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-10-19 00:05:09 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-10-19 00:05:09 +0000
commitf9d4d0eda531fffe679904f373140943818358c8 (patch)
tree0ef5d74a1b7071868a250019abe44ac848c9fd06
parent417176fbaa65e6f6077613572c8bef9ca5fa68cd (diff)
parent868378b0f53e44bbe7098b97d183f138a35c272e (diff)
Merge "Disable spoof check on vfs in sriov setup"
-rw-r--r--yardstick/benchmark/contexts/standalone/sriov.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yardstick/benchmark/contexts/standalone/sriov.py b/yardstick/benchmark/contexts/standalone/sriov.py
index 7c95f555d..69825fbbf 100644
--- a/yardstick/benchmark/contexts/standalone/sriov.py
+++ b/yardstick/benchmark/contexts/standalone/sriov.py
@@ -196,6 +196,8 @@ class SriovContext(Context):
LOG.info("Ports %s" % self.networks)
def _enable_interfaces(self, index, idx, vfs, cfg):
+ vf_spoofchk = "ip link set {0} vf 0 spoofchk off"
+
vf = self.networks[vfs[0]]
vpci = PciAddress.parse_address(vf['vpci'].strip(), multi_line=True)
# Generate the vpci for the interfaces
@@ -205,6 +207,7 @@ class SriovContext(Context):
Libvirt.add_sriov_interfaces(
vf['vpci'], vf['vf_pci']['vf_pci'], vf['mac'], str(cfg))
self.connection.execute("ifconfig %s up" % vf['interface'])
+ self.connection.execute(vf_spoofchk.format(vf['interface']))
def setup_sriov_context(self):
nodes = []