dpdk: Testpmd forwarding mode changes in v16.07 77/18077/1
authorMartin Klozik <martinx.klozik@intel.com>
Fri, 5 Aug 2016 08:04:55 +0000 (09:04 +0100)
committerMartin Klozik <martinx.klozik@intel.com>
Fri, 5 Aug 2016 10:56:51 +0000 (11:56 +0100)
Testpmd forwarding mode mac_retry was obsoleted in DPDK v16.07.
Retry option is supported by multiple forwarding modes now.
Former "mac_retry" mode can be replaced by "mac retry" construct.

JIRA: VSPERF-333

Change-Id: I1563427985966264f07d10b1a8351784fe999d74
Signed-off-by: Martin Klozik <martinx.klozik@intel.com>
Reviewed-by: Maryam Tahhan <maryam.tahhan@intel.com>
Reviewed-by: Al Morton <acmorton@att.com>
Reviewed-by: Christian Trautman <ctrautma@redhat.com>
Reviewed-by: <bmichalo@redhat.com>
conf/04_vnf.conf
conf/06_pktfwd.conf
docs/userguide/testusage.rst
vnfs/qemu/qemu_pci_passthrough.py

index 0a80c1a..ff110d9 100644 (file)
@@ -35,7 +35,10 @@ GUEST_IMAGE = ['', '']
 # For 2 VNFs you may use [180, 180]
 GUEST_TIMEOUT = [180, 180]
 
-# packet forwarding mode: io|mac|mac_retry|macswap|flowgen|rxonly|txonly|csum|icmpecho
+# packet forwarding mode supported by testpmd; Please see DPDK documentation
+# for comprehensive list of modes supported by your version.
+# e.g. io|mac|mac_retry|macswap|flowgen|rxonly|txonly|csum|icmpecho|...
+# Note: Option "mac_retry" has been changed to "mac retry" since DPDK v16.07
 GUEST_TESTPMD_FWD_MODE = 'csum'
 
 # guest loopback application method; supported options are:
index d6a83d0..6175aa6 100644 (file)
@@ -24,7 +24,10 @@ PKTFWD = 'TestPMD'
 # ############################
 
 TESTPMD_ARGS = []
-# packet forwarding mode: io|mac|mac_retry|macswap|flowgen|rxonly|txonly|csum|icmpecho
+# packet forwarding mode supported by testpmd; Please see DPDK documentation
+# for comprehensive list of modes supported by your version.
+# e.g. io|mac|mac_retry|macswap|flowgen|rxonly|txonly|csum|icmpecho|...
+# Note: Option "mac_retry" has been changed to "mac retry" since DPDK v16.07
 TESTPMD_FWD_MODE = 'csum'
 # checksum calculation layer: ip|udp|tcp|sctp|outer-ip
 TESTPMD_CSUM_LAYER = 'ip'
index d807590..b5f4799 100755 (executable)
@@ -396,7 +396,7 @@ Execution of test with PCI passthrough with vswitch disabled:
 .. code-block:: console
 
     $ ./vsperf --conf-file=<path_to_custom_conf>/10_custom.conf
-               --vswtich none --vnf QemuPciPassthrough pvp_tput
+               --vswitch none --vnf QemuPciPassthrough pvp_tput
 
 Any of supported guest-loopback-application_ can be used inside VM with
 PCI passthrough support.
@@ -526,7 +526,10 @@ for selected Packet Forwarder:
 
    # testpmd configuration
    TESTPMD_ARGS = []
-   # packet forwarding mode: io|mac|mac_retry|macswap|flowgen|rxonly|txonly|csum|icmpecho
+   # packet forwarding mode supported by testpmd; Please see DPDK documentation
+   # for comprehensive list of modes supported by your version.
+   # e.g. io|mac|mac_retry|macswap|flowgen|rxonly|txonly|csum|icmpecho|...
+   # Note: Option "mac_retry" has been changed to "mac retry" since DPDK v16.07
    TESTPMD_FWD_MODE = 'csum'
    # checksum calculation layer: ip|udp|tcp|sctp|outer-ip
    TESTPMD_CSUM_LAYER = 'ip'
index 14810f0..951d608 100644 (file)
@@ -44,8 +44,8 @@ class QemuPciPassthrough(IVnfQemu):
         # in case of SRIOV and PCI passthrough we must ensure, that MAC addresses are swapped
         if S.getValue('SRIOV_ENABLED') and not self._testpmd_fwd_mode.startswith('mac'):
             self._logger.info("SRIOV detected, forwarding mode of testpmd was changed from '%s' to '%s'",
-                              self._testpmd_fwd_mode, 'mac_retry')
-            self._testpmd_fwd_mode = 'mac_retry'
+                              self._testpmd_fwd_mode, 'mac')
+            self._testpmd_fwd_mode = 'mac'
 
         for nic in self._nics:
             self._cmd += ['-device', 'vfio-pci,host=' + nic['pci']]