56dd3ae1 | 16-Feb-2019 |
Rami Rosen <ramirose@gmail.com> |
doc: fix a minor typo in testpmd guide
This patch fixes a minor typo in testpmd guide.
Fixes: 3c272b280a50 ("app/testpmd: add commands for RSS queue region") Cc: stable@dpdk.org
Signed-off-by: Ram
doc: fix a minor typo in testpmd guide
This patch fixes a minor typo in testpmd guide.
Fixes: 3c272b280a50 ("app/testpmd: add commands for RSS queue region") Cc: stable@dpdk.org
Signed-off-by: Rami Rosen <ramirose@gmail.com> Acked-by: Wei Zhao <wei.zhao1@intel.com>
show more ...
|
62e8a5a8 | 22-Jan-2019 |
Viacheslav Ovsiienko <viacheslavo@mellanox.com> |
app/testpmd: add TOS and TTL fields to VXLAN encapsulation
The new testpmd set vxlan-tos-ttl command is added. It allows to specify tos and tll fields for encapsulation IP header.
IPv4 VXLAN outer
app/testpmd: add TOS and TTL fields to VXLAN encapsulation
The new testpmd set vxlan-tos-ttl command is added. It allows to specify tos and tll fields for encapsulation IP header.
IPv4 VXLAN outer header:
testpmd> set vxlan-tos-ttl ip-version ipv4 vni 4 udp-src 4 udp-dst 4 ip-tos 0 ip-ttl 255 ip-src 127.0.0.1 ip-dst 128.0.0.1 eth-src 11:11:11:11:11:11 eth-dst 22:22:22:22:22:22
IPv6 VXLAN outer header: testpmd> set vxlan-tos-ttl ip-version ipv6 vni 4 udp-src 4 udp-dst 4 ip-tos 0 ip-ttl 255 ::1 ip-dst ::2222 eth-src 11:11:11:11:11:11 eth-dst 22:22:22:22:22:22
Note: ip-ttl parameter corresponds the nop_limits field for IPv6.
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com> Acked-by: Ori Kam <orika@mellanox.com>
show more ...
|
48670ed6 | 17-Jan-2019 |
Rami Rosen <ramirose@gmail.com> |
doc: add missing loopback option in testpmd guide
This patch adds a missing topology "loop" mode for port-topology option in testpmd guide. The testpmd "loop" option (PORT_TOPOLOGY_LOOP) was added
doc: add missing loopback option in testpmd guide
This patch adds a missing topology "loop" mode for port-topology option in testpmd guide. The testpmd "loop" option (PORT_TOPOLOGY_LOOP) was added to testpmd parameter port-topology back in 2014, but it seems that it was never added to the testpmd guide. This patch adds it in the testpmd guide.
Fixes: 3e2006d6186c ("app/testpmd: add loopback topology") Cc: stable@dpdk.org
Signed-off-by: Rami Rosen <ramirose@gmail.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
show more ...
|
132a08b5 | 04-Jan-2019 |
Rami Rosen <ramirose@gmail.com> |
doc: fix a parameter name in testpmd guide
There is no parameter called "eth-peer-configfile" in testpmd. It should be "eth-peers-configfile". See the usage() method in app/test-pmd/parameters.c.
F
doc: fix a parameter name in testpmd guide
There is no parameter called "eth-peer-configfile" in testpmd. It should be "eth-peers-configfile". See the usage() method in app/test-pmd/parameters.c.
Fixes: a67857e97ba8 ("doc: clarify usage of testpmd MAC forward mode") Cc: stable@dpdk.org
Signed-off-by: Rami Rosen <ramirose@gmail.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
show more ...
|
3caef7e1 | 27-Dec-2018 |
Rami Rosen <ramirose@gmail.com> |
doc: fix a typo in testpmd guide
This patch fixes a typo in testpmd user guide.
Fixes: aac6f11f5864 ("app/testpmd: add ethernet peer command") Cc: stable@dpdk.org
Signed-off-by: Rami Rosen <ramiro
doc: fix a typo in testpmd guide
This patch fixes a typo in testpmd user guide.
Fixes: aac6f11f5864 ("app/testpmd: add ethernet peer command") Cc: stable@dpdk.org
Signed-off-by: Rami Rosen <ramirose@gmail.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
show more ...
|
47182a79 | 06-Dec-2018 |
Dekel Peled <dekelp@mellanox.com> |
doc: fix flow action command names in testpmd guide
testpmd actions set_tp_src and set_tp_dst documentation adds the of_ prefix to action names, while the implementation doesn't add it.
This patch
doc: fix flow action command names in testpmd guide
testpmd actions set_tp_src and set_tp_dst documentation adds the of_ prefix to action names, while the implementation doesn't add it.
This patch removes the prefix from action names in testpmd documentation.
Fixes: 9ccc94919500 ("ethdev: add flow API actions to modify TCP/UDP port numbers") Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@mellanox.com> Acked-by: Ori Kam <orika@mellanox.com> Acked-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
show more ...
|
10ad83d0 | 05-Dec-2018 |
Rami Rosen <ramirose@gmail.com> |
doc: fix a typo in testpmd guide
This patch fixes a typo in testpmd guide (should be ICMP and not IMCP).
Fixes: ac718398f477 ("doc: testpmd application user guide") Cc: stable@dpdk.org
Signed-off-
doc: fix a typo in testpmd guide
This patch fixes a typo in testpmd guide (should be ICMP and not IMCP).
Fixes: ac718398f477 ("doc: testpmd application user guide") Cc: stable@dpdk.org
Signed-off-by: Rami Rosen <ramirose@gmail.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Marko Kovacevic <marko.kovacevic@intel.com>
show more ...
|
3ee567cf | 19-Nov-2018 |
Anatoly Burakov <anatoly.burakov@intel.com> |
doc: document all EAL parameters in one place
Currently, the most complete (but still incomplete) user guide for EAL command-line parameters resides in user guide for testpmd. This is wrong on multi
doc: document all EAL parameters in one place
Currently, the most complete (but still incomplete) user guide for EAL command-line parameters resides in user guide for testpmd. This is wrong on multiple levels, and should not be the case.
To fix it, we have to create a document that lists all supported EAL command-line arguments. However, because different platforms support different subsets of available EAL parameters, instead of creating a single file, we will create a common file in doc/guides/common containing documentation for EAL parameters that are supported on all of our supported platforms (Linux and FreeBSD at the time of this writing).
We will then include this document in the Getting Started guides for all supported platforms, so that any changes made to documentation for commonly supported EAL parameters will be reflected in Getting Started guides for all platforms.
This patch also removes EAL parameters documentation from the testpmd user guide, and instead adds references to the newly created documents in both testpmd user guides and in sample applications guide.
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com> Reviewed-by: Rami Rosen <roszenrami@gmail.com>
show more ...
|
892cfadd | 04-Nov-2018 |
Dekel Peled <dekelp@mellanox.com> |
doc: clarify testpmd guide for flow API
The description of prefix for mask creation was misunderstood. I updated the description, so it is clearly understood which mask will be created by a certain
doc: clarify testpmd guide for flow API
The description of prefix for mask creation was misunderstood. I updated the description, so it is clearly understood which mask will be created by a certain prefix.
Signed-off-by: Dekel Peled <dekelp@mellanox.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
c2c15f76 | 22-Oct-2018 |
Rosen Xu <rosen.xu@intel.com> |
app/testpmd: fix shaper profile parameters
As struct rte_tm_shaper_params defined, the command line of testpmd should include committed and peak parameters, but right now the command line doesn't id
app/testpmd: fix shaper profile parameters
As struct rte_tm_shaper_params defined, the command line of testpmd should include committed and peak parameters, but right now the command line doesn't identify whether it's committed or peak parameter. This patch identifies and adds the clarify definition
Fixes: bddc2f40b594 ("app/testpmd: add commands for shaper and wred profiles") Cc: stable@dpdk.org
Signed-off-by: Rosen Xu <rosen.xu@intel.com>
show more ...
|
075b182b | 03-Oct-2018 |
Eric Zhang <eric.zhang@windriver.com> |
eal: force IOVA to a particular mode
This patch uses EAL option "--iova-mode" to force the IOVA mode to a particular value. There exists virtual devices that are not directly attached to the PCI bus
eal: force IOVA to a particular mode
This patch uses EAL option "--iova-mode" to force the IOVA mode to a particular value. There exists virtual devices that are not directly attached to the PCI bus, and therefore the auto detection of the IOVA mode based on probing the PCI bus and IOMMU configuration may not report the required addressing mode. Using the EAL option permits the mode to be explicitly configured in this scenario.
Signed-off-by: Eric Zhang <eric.zhang@windriver.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com> Reviewed-by: Marko Kovacevic <marko.kovacevic@intel.com>
show more ...
|
153ccd05 | 26-Oct-2018 |
Yong Wang <wang.yong19@zte.com.cn> |
doc: fix typo in testpmd guide
The forwarding mode mac_swap should be macswap in testpmd guide.
Fixes: e76d7a768ce0 ("doc: fix syntax in testpmd user guide") Cc: stable@dpdk.org
Signed-off-by: Yon
doc: fix typo in testpmd guide
The forwarding mode mac_swap should be macswap in testpmd guide.
Fixes: e76d7a768ce0 ("doc: fix syntax in testpmd user guide") Cc: stable@dpdk.org
Signed-off-by: Yong Wang <wang.yong19@zte.com.cn> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
4f1ed78e | 25-Oct-2018 |
Thomas Monjalon <thomas@monjalon.net> |
app/testpmd: setup attached ports on probe event
After probing is done, each new port must be setup. The new ports are currently guessed by iterating on ports matching the devargs string used for pr
app/testpmd: setup attached ports on probe event
After probing is done, each new port must be setup. The new ports are currently guessed by iterating on ports matching the devargs string used for probing.
When probing a port, it is possible that one more port probing get triggered (e.g. PF is automatically probed when probing a VF representor). Such automatic probing will be caught only on event.
The iterator loop may be replaced by a call from the event callback. In order to be able to test both modes, a command is added to choose between iterator and event modes.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
show more ...
|
3e77031b | 22-Oct-2018 |
Ori Kam <orika@mellanox.com> |
app/testpmd: add MPLSoGRE encapsulation
Example for MPLSoGRE tunnel: ETH / IPV4 / GRE / MPLS / IP / L4..L7
In order to encapsulate such a tunnel there is a need to remove L2 of the inner packet and
app/testpmd: add MPLSoGRE encapsulation
Example for MPLSoGRE tunnel: ETH / IPV4 / GRE / MPLS / IP / L4..L7
In order to encapsulate such a tunnel there is a need to remove L2 of the inner packet and encap the remaining tunnel, this is done by applying 2 rte flow commands l2_decap followed by mplsogre_encap. Both commands must appear in the same flow, and from the point of the packet it both actions are applied at the same time. (There is no part where a packet doesn't have L2 header).
Decapsulating such a tunnel works the other way, first we need to decap the outer tunnel header and then apply the new L2. So the commands will be mplsogre_decap / l2_encap
Due to the complex encapsulation of MPLSoGRE flow action and based on the fact testpmd does not allocate memory, this patch adds a new command in testpmd to initialise a global structure containing the necessary information to make the outer layer of the packet. This same global structures will then be used by the flow commands in testpmd when the action mplsogre_encap, mplsogre_decap, will be parsed, at this point, the conversion into such action becomes trivial.
Signed-off-by: Ori Kam <orika@mellanox.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
a1191d39 | 22-Oct-2018 |
Ori Kam <orika@mellanox.com> |
app/testpmd: add MPLSoUDP encapsulation
MPLSoUDP is an example for L3 tunnel encapsulation.
L3 tunnel type is a tunnel that is missing the layer 2 header of the inner packet.
Example for MPLSoUDP
app/testpmd: add MPLSoUDP encapsulation
MPLSoUDP is an example for L3 tunnel encapsulation.
L3 tunnel type is a tunnel that is missing the layer 2 header of the inner packet.
Example for MPLSoUDP tunnel: ETH / IPV4 / UDP / MPLS / IP / L4..L7
In order to encapsulate such a tunnel there is a need to remove L2 of the inner packet and encap the remaining tunnel, this is done by applying 2 rte flow commands l2_decap followed by mplsoudp_encap. Both commands must appear in the same flow, and from the point of the packet it both actions are applied at the same time. (There is no part where a packet doesn't have L2 header).
Decapsulating such a tunnel works the other way, first we need to decap the outer tunnel header and then apply the new L2. So the commands will be mplsoudp_decap / l2_encap
Due to the complex encapsulation of MPLSoUDP and L2 flow actions and based on the fact testpmd does not allocate memory, this patch adds a new command in testpmd to initialise a global structures containing the necessary information to make the outer layer of the packet. This same global structures will then be used by the flow commands in testpmd when the action mplsoudp_encap, mplsoudp_decap, l2_encap, l2_decap, will be parsed, at this point, the conversion into such action becomes trivial.
The l2_encap and l2_decap actions can also be used for other L3 tunnel types.
Signed-off-by: Ori Kam <orika@mellanox.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
c18feafa | 21-Oct-2018 |
Dekel Peled <dekelp@mellanox.com> |
app/testpmd: support metadata as flow rule item
As described in [1], this series adds option to set metadata value as match pattern when creating a new flow rule.
This patch introduces additional o
app/testpmd: support metadata as flow rule item
As described in [1], this series adds option to set metadata value as match pattern when creating a new flow rule.
This patch introduces additional options in testpmd commands: - New item type "meta" "data" - New per-port offload flag "match_metadata".
It also adds commands to configure the tx_metadata value to use: - New 'config' command takes a 32 bit value and stores it per port: port config <port_id> tx_metadata <value> testpmd will add to any Tx packet sent from this port the metadata value, and set ol_flags accordingly. - A matching 'show' command is added to read the configured value: port config <port_id> tx_metadata <value>
[1] "ethdev: support metadata as flow rule criteria"
Signed-off-by: Dekel Peled <dekelp@mellanox.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
b5b38ed8 | 17-Oct-2018 |
Raslan Darawsheh <rasland@mellanox.com> |
app/testpmd: set packet dump based on verbosity level
when changing verbosity level it will configure rx/tx callbacks to dump packets based on the verbosity value as following: 1- dump only rece
app/testpmd: set packet dump based on verbosity level
when changing verbosity level it will configure rx/tx callbacks to dump packets based on the verbosity value as following: 1- dump only received packets: testpmd> set verbose 1 2- dump only sent packets: testpmd> set verbose 2 3- dump sent and received packets: testpmd> set verbose (any number > 2) 4- disable dump testpmd> set verbose 0
Signed-off-by: Raslan Darawsheh <rasland@mellanox.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
show more ...
|
4dff9e29 | 11-Oct-2018 |
Xiaoyu Min <jackmin@mellanox.com> |
app/testpmd: add commands to modify MAC address
add commands to support following actions:
- RTE_FLOW_ACTION_TYPE_SET_MAC_SRC - RTE_FLOW_ACTION_TYPE_SET_MAC_DST
Signed-off-by: Xiaoyu Min <jackmin@
app/testpmd: add commands to modify MAC address
add commands to support following actions:
- RTE_FLOW_ACTION_TYPE_SET_MAC_SRC - RTE_FLOW_ACTION_TYPE_SET_MAC_DST
Signed-off-by: Xiaoyu Min <jackmin@mellanox.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
show more ...
|
708d0bcb | 16-Oct-2018 |
Xiaoyu Min <jackmin@mellanox.com> |
app/testpmd: add commands to modify TTL
add commands which supports following TTL actions: - RTE_FLOW_ACTION_TYPE_DEC_TTL - RTE_FLOW_ACTION_TYPE_SET_TTL
Signed-off-by: Xiaoyu Min <jackmin@mellanox.
app/testpmd: add commands to modify TTL
add commands which supports following TTL actions: - RTE_FLOW_ACTION_TYPE_DEC_TTL - RTE_FLOW_ACTION_TYPE_SET_TTL
Signed-off-by: Xiaoyu Min <jackmin@mellanox.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
show more ...
|
6673fe0c | 17-Aug-2018 |
Krzysztof Kanas <krzysztof.kanas@caviumnetworks.com> |
app/testpmd: add TM commands to mark packets
Add following testpmd run-time commands to support test of TM packet marking:
set port tm mark ip_ecn <port_id> <green> <yellow> <red> set port tm mar
app/testpmd: add TM commands to mark packets
Add following testpmd run-time commands to support test of TM packet marking:
set port tm mark ip_ecn <port_id> <green> <yellow> <red> set port tm mark ip_dscp <port_id> <green> <yellow> <red> set port tm mark vlan_dei <port_id> <green> <yellow> <red>
Signed-off-by: Krzysztof Kanas <krzysztof.kanas@caviumnetworks.com>
show more ...
|
3c156061 | 03-Oct-2018 |
Jens Freimann <jfreimann@redhat.com> |
app/testpmd: add noisy neighbour forwarding mode
This adds a new forwarding mode to testpmd to simulate more realistic behavior of a guest machine engaged in receiving and sending packets performing
app/testpmd: add noisy neighbour forwarding mode
This adds a new forwarding mode to testpmd to simulate more realistic behavior of a guest machine engaged in receiving and sending packets performing Virtual Network Function (VNF).
The goal is to enable a simple way of measuring performance impact on cache and memory footprint utilization from various VNF co-located on the same host machine. For this it does:
* Buffer packets in a FIFO:
Create a fifo to buffer received packets. Once it flows over put those packets into the actual tx queue. The fifo is created per tx queue and its size can be set with the --noisy-tx-sw-buffer-flushtime commandline parameter.
A second commandline parameter is used to set a timeout in milliseconds after which the fifo is flushed.
--noisy-tx-sw-buffer-size [packet numbers] Keep the mbuf in a FIFO and forward the over flooding packets from the FIFO. This queue is per TX-queue (after all other packet processing).
--noisy-tx-sw-buffer-flushtime [delay] Flush the packet queue if no packets have been seen during [delay]. As long as packets are seen, the timer is reset.
Add several options to simulate route lookups (memory reads) in tables that can be quite large, as well as route hit statistics update. These options simulates the while stack traversal and will trash the cache. Memory access is random.
* simulate route lookups:
Allocate a buffer and perform reads and writes on it as specified by commandline options:
--noisy-lkup-memory [size] Size of the VNF internal memory (MB), in which the random read/write will be done, allocated by rte_malloc (hugepages).
--noisy-lkup-num-writes [num] Number of random writes in memory per packet should be performed, simulating hit-flags update. 64 bits per write, all write in different cache lines.
--noisy-lkup-num-reads [num] Number of random reads in memory per packet should be performed, simulating FIB/table lookups. 64 bits per read, all write in different cache lines.
--noisy-lkup-num-reads-writes [num] Number of random reads and writes in memory per packet should be performed, simulating stats update. 64 bits per read-write, all reads and writes in different cache lines.
Signed-off-by: Jens Freimann <jfreimann@redhat.com> Acked-by: Kevin Traynor <ktraynor@redhat.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
show more ...
|
4bfcbcf5 | 25-Sep-2018 |
Emma Finn <emma.finn@intel.com> |
app/testpmd: add new command for show port info
existing testpmd command "show port info" is too verbose. Added a new summary command to print brief information on ports.
console output: testpmd>
app/testpmd: add new command for show port info
existing testpmd command "show port info" is too verbose. Added a new summary command to print brief information on ports.
console output: testpmd> show port summary all Number of available ports: 2 Port MAC Address Name Driver Status Link 0 11:22:33:44:55:66 0000:07:00.0 net_i40e up 40000Mbps 1 66:55:44:33:22:11 0000:07:00.1 net_i40e up 40000Mbps
Signed-off-by: Emma Finn <emma.finn@intel.com> Reviewed-by: Stephen Hemminger <stephen@networkplumber.org> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
show more ...
|
bf5618fa | 09-Oct-2018 |
Jerin Jacob <jerin.jacob@caviumnetworks.com> |
app/testpmd: support outer UDP HW checksum
Added outer-udp Tx HW checksum support for csum forward engine if device supports DEV_TX_OFFLOAD_OUTER_UDP_CKSUM.
Signed-off-by: Jerin Jacob <jerin.jacob@
app/testpmd: support outer UDP HW checksum
Added outer-udp Tx HW checksum support for csum forward engine if device supports DEV_TX_OFFLOAD_OUTER_UDP_CKSUM.
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
show more ...
|
82875970 | 06-Oct-2018 |
Rahul Lakkireddy <rahul.lakkireddy@chelsio.com> |
ethdev: add flow action to swap MAC addresses
This action is useful for offloading loopback mode, where the hardware will swap source and destination MAC addresses in the outermost Ethernet header b
ethdev: add flow action to swap MAC addresses
This action is useful for offloading loopback mode, where the hardware will swap source and destination MAC addresses in the outermost Ethernet header before looping back the packet. This action can be used in conjunction with other rewrite actions to achieve MAC layer transparent NAT where the MAC addresses are swapped before either the source or destination MAC address is rewritten and NAT is performed.
Must be used with a valid RTE_FLOW_ITEM_TYPE_ETH flow pattern item. Otherwise, RTE_FLOW_ERROR_TYPE_ACTION error should be returned by the PMDs.
Original work by Shagun Agrawal
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com> Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
9ccc9491 | 09-Oct-2018 |
Rahul Lakkireddy <rahul.lakkireddy@chelsio.com> |
ethdev: add flow API actions to modify TCP/UDP port numbers
Add actions: - SET_TP_SRC - set a new TCP/UDP source port number. - SET_TP_DST - set a new TCP/UDP destination port number.
Original work
ethdev: add flow API actions to modify TCP/UDP port numbers
Add actions: - SET_TP_SRC - set a new TCP/UDP source port number. - SET_TP_DST - set a new TCP/UDP destination port number.
Original work by Shagun Agrawal
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com> Acked-by: Xiaoyu Min <jackmin@mellanox.com> Acked-by: Ori Kam <orika@mellanox.com> Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|