Merge "BugFix: Negative dropped packets in Prox tests"
[yardstick.git] / yardstick / benchmark / contexts / standalone / sriov.py
index 55d7057..69825fb 100644 (file)
@@ -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 = []
@@ -233,8 +236,6 @@ class SriovContext(Context):
             LOG.info("virsh create ...")
             Libvirt.virsh_create_vm(self.connection, cfg)
 
-            #    5: Tunning for better performace
-            Libvirt.pin_vcpu_for_perf(self.connection, vm_name, vcpu)
             self.vm_names.append(vm_name)
 
             # build vnf node details