#
f4d623f9 |
| 19-Apr-2018 |
Adrien Mazarguil <adrien.mazarguil@6wind.com> |
app/testpmd: fix missing RSS fields in flow action
Users cannot override the default RSS settings when entering a RSS action, only a list of queues can be provided.
This patch enables them to set a
app/testpmd: fix missing RSS fields in flow action
Users cannot override the default RSS settings when entering a RSS action, only a list of queues can be provided.
This patch enables them to set a RSS hash key and types for a flow rule.
Fixes: 05d34c6e9d2c ("app/testpmd: add queue actions to flow command") Cc: stable@dpdk.org
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
d0ad8648 |
| 19-Apr-2018 |
Adrien Mazarguil <adrien.mazarguil@6wind.com> |
app/testpmd: fix RSS flow action configuration
Except for a list of queues, RSS configuration (hash key and fields) cannot be specified from the flow command line and testpmd does not provide safe d
app/testpmd: fix RSS flow action configuration
Except for a list of queues, RSS configuration (hash key and fields) cannot be specified from the flow command line and testpmd does not provide safe defaults either.
In order to validate their implementation with testpmd, PMDs had to interpret its NULL RSS configuration parameters somehow, however this has never been valid to begin with.
This patch makes testpmd always provide default values.
The list of RSS types to use is exclusively taken from the global "rss_hf" variable, itself configured through the "port config all rss" command or --rss-ip/--rss-udp command-line options.
Fixes: 05d34c6e9d2c ("app/testpmd: add queue actions to flow command") Cc: stable@dpdk.org
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
76877354 |
| 12-Mar-2018 |
Ferruh Yigit <ferruh.yigit@intel.com> |
app/testpmd: print Rx/Tx offload values on start
Which per port offloads are enabled is not clear. Printing offloads values at forwarding start.
CRC strip offload value was printed in more verbose
app/testpmd: print Rx/Tx offload values on start
Which per port offloads are enabled is not clear. Printing offloads values at forwarding start.
CRC strip offload value was printed in more verbose manner, it is removed since Rx/Tx offload values covers it and printing only CRC one can cause confusion.
Hexadecimal offloads values are not very user friendly but preferred to not create to much noise during forwarding start.
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
show more ...
|
#
cd8c7c7c |
| 09-Apr-2018 |
Ferruh Yigit <ferruh.yigit@intel.com> |
ethdev: replace bus specific struct with generic dev
Public struct rte_eth_dev_info has a "struct rte_pci_device" field in it although it is common for all ethdev in all buses.
Replacing pci specif
ethdev: replace bus specific struct with generic dev
Public struct rte_eth_dev_info has a "struct rte_pci_device" field in it although it is common for all ethdev in all buses.
Replacing pci specific struct with generic device struct and updating places that are using pci device in a way to get this information from generic device.
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Reviewed-by: David Marchand <david.marchand@6wind.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Acked-by: Thomas Monjalon <thomas@monjalon.net>
show more ...
|
#
41fc0151 |
| 05-Feb-2018 |
Matan Azrad <matan@mellanox.com> |
app/testpmd: rework simple forward config
A new function was added to get a Tx port index as a function of the topology mode and the Rx port index.
Use this function to get the Tx port index of sim
app/testpmd: rework simple forward config
A new function was added to get a Tx port index as a function of the topology mode and the Rx port index.
Use this function to get the Tx port index of simple stream.
Signed-off-by: Matan Azrad <matan@mellanox.com>
show more ...
|
#
4deefb6f |
| 05-Feb-2018 |
Matan Azrad <matan@mellanox.com> |
app/testpmd: fix port topology in RSS forward config
The testpmd user can configure port topology mode to define the port topology between the testpmd forward ports(paired, chained and loop).
When
app/testpmd: fix port topology in RSS forward config
The testpmd user can configure port topology mode to define the port topology between the testpmd forward ports(paired, chained and loop).
When multi-queue ports are configured by the user, the testpmd streams are created by rss_fwd_config_setup() function, this function doesn't take into account the chained topology mode and configures the forward streams with paired topology mode in this case.
Configure the stream Tx port by dedicated function which calculates a valid Tx port index as a function of the topology mode and the Rx port index.
Fixes: af75078 ("first public release") Cc: stable@dpdk.org
Signed-off-by: Matan Azrad <matan@mellanox.com>
show more ...
|
#
13cb6fae |
| 05-Feb-2018 |
Matan Azrad <matan@mellanox.com> |
app/testpmd: fix port index in RSS forward config
When multi-queue ports are configured by the user, the testpmd streams are created by rss_fwd_config_setup() function.
This function may configure
app/testpmd: fix port index in RSS forward config
When multi-queue ports are configured by the user, the testpmd streams are created by rss_fwd_config_setup() function.
This function may configure to the streams either invalid Rx ports or invalid Tx ports.
An invalid Tx port is configured when the number of ports is odd. In this case, the last Tx port will be always invalid.
An invalid Rx port is configured when NUMA support is configured by the user and the number of forward ports is much smaller than the number of all ports. In this case, also the Tx port is invalid.
Change calculations to get valid ports.
Fixes: af75078 ("first public release") Cc: stable@dpdk.org
Signed-off-by: Matan Azrad <matan@mellanox.com>
show more ...
|
#
7faa7292 |
| 29-Jan-2018 |
Olivier Matz <olivier.matz@6wind.com> |
app/testpmd: use SPDX tags in 6WIND copyrighted files
Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Thomas Monjalon <thomas@m
app/testpmd: use SPDX tags in 6WIND copyrighted files
Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Thomas Monjalon <thomas@monjalon.net>
show more ...
|
#
b8acbd65 |
| 28-Jan-2018 |
Tomasz Duszynski <tdu@semihalf.com> |
app/testpmd: add meter to flow actions table
Since METER action is supported by the testpmd application suitable entry should exist in flow actions information table.
Without that testpmd will retu
app/testpmd: add meter to flow actions table
Since METER action is supported by the testpmd application suitable entry should exist in flow actions information table.
Without that testpmd will return error on adding a new flow to the list of flows attached to a given port.
Fixes: 30ffb4e67ee3 ("app/testpmd: add commands traffic metering and policing") Cc: stable@dpdk.org
Signed-off-by: Tomasz Duszynski <tdu@semihalf.com> Acked-by: Jasvinder Singh <jasvinder.singh@intel.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
show more ...
|
#
1ae1b8c7 |
| 30-Jan-2018 |
Matan Azrad <matan@mellanox.com> |
app/testpmd: fix port validation
rte_eth_dev_is_valid_port() API validates each valid port from ethdev point of view and may validate ports which should not be used by the application.
Testpmd shou
app/testpmd: fix port validation
rte_eth_dev_is_valid_port() API validates each valid port from ethdev point of view and may validate ports which should not be used by the application.
Testpmd should use only the ports available through the RTE_ETH_FOREACH_DEV iterator.
Replace rte_eth_dev_is_valid_port() usage by RTE_ETH_FOREACH_DEV iterator usage for testpmd ports validation.
Fixes: 7d89b2610353 ("app/testpmd: use ethdev iterator to list devices") Cc: stable@dpdk.org
Signed-off-by: Matan Azrad <matan@mellanox.com>
show more ...
|
#
9999dc6f |
| 23-Nov-2017 |
Kirill Rybalchenko <kirill.rybalchenko@intel.com> |
app/testpmd: add raw flow type mode for FDIR
Add possibility to load file with raw packet and set it as a template for FDIR setup.
Signed-off-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com> A
app/testpmd: add raw flow type mode for FDIR
Add possibility to load file with raw packet and set it as a template for FDIR setup.
Signed-off-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
show more ...
|
#
0f4203fe |
| 01-Dec-2017 |
Roman Zhukov <roman.zhukov@oktetlabs.ru> |
app/testpmd: support GENEVE pattern item in flow rules
Add the ability to match VNI and protocol fields of GENEVE protocol header.
Signed-off-by: Roman Zhukov <roman.zhukov@oktetlabs.ru> Signed-off
app/testpmd: support GENEVE pattern item in flow rules
Add the ability to match VNI and protocol fields of GENEVE protocol header.
Signed-off-by: Roman Zhukov <roman.zhukov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
show more ...
|
#
aac6f11f |
| 14-Jan-2018 |
Wisam Jaddo <wisamm@mellanox.com> |
app/testpmd: add ethernet peer command
This command will simulate the process of setting the eth-peer from command line.
It will be useful to perform extra testing.
usage: testpmd> set eth-peer <
app/testpmd: add ethernet peer command
This command will simulate the process of setting the eth-peer from command line.
It will be useful to perform extra testing.
usage: testpmd> set eth-peer <port_id> <peer_addr>.
Signed-off-by: Wisam Jaddo <wisamm@mellanox.com> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
show more ...
|
#
384161e0 |
| 10-Jan-2018 |
Shahaf Shuler <shahafs@mellanox.com> |
app/testpmd: adjust on the fly VLAN configuration
On ethdev there is an API to configure VLAN offloads after the port was started and without reconfiguration of the port or queues.
In the current d
app/testpmd: adjust on the fly VLAN configuration
On ethdev there is an API to configure VLAN offloads after the port was started and without reconfiguration of the port or queues.
In the current design of the application, when the Rx offloads are changed (through "port config all" CLI command) the port configuration is overwritten, therefore the configuration made for the VLAN is lost.
This patch is to address the issue by a configuration of each port Rx offloads separately instead of using the global Rx config. Such adjustment is required due to the conversion of the application to the new offloads API.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
show more ...
|
#
3926dd2b |
| 10-Jan-2018 |
Shahaf Shuler <shahafs@mellanox.com> |
app/testpmd: enforce offload capabilities check
In the current design it was possible for offload to be set even though the device is not supporting it. A warning message was printed instead.
This
app/testpmd: enforce offload capabilities check
In the current design it was possible for offload to be set even though the device is not supporting it. A warning message was printed instead.
This is a wrong behaviour, as application should set only the offloads reported by the capabilities of the device.
This patch adds verification for the offloads being set and make sure the offload configuration passed to the device always match its capabilities.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
show more ...
|
#
28da7d75 |
| 10-Jan-2018 |
Shahaf Shuler <shahafs@mellanox.com> |
app/testpmd: remove txqflags option
Since testpmd is now using the new Ethdev offloads API and there is a way configure each of the tx offloads from CLI or command line, there is no need for the txq
app/testpmd: remove txqflags option
Since testpmd is now using the new Ethdev offloads API and there is a way configure each of the tx offloads from CLI or command line, there is no need for the txqflags configuration anymore.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
show more ...
|
#
3eecba26 |
| 10-Jan-2018 |
Shahaf Shuler <shahafs@mellanox.com> |
app/testpmd: cleanup internal Tx offloads flags field
The tx_ol_flags field was used in order to control the different Tx offloads set. After the conversion to the new Ethdev Tx offloads API it is n
app/testpmd: cleanup internal Tx offloads flags field
The tx_ol_flags field was used in order to control the different Tx offloads set. After the conversion to the new Ethdev Tx offloads API it is not needed anymore as the offloads configuration is stored in ethdev structs.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
show more ...
|
#
597f9faf |
| 10-Jan-2018 |
Shahaf Shuler <shahafs@mellanox.com> |
app/testpmd: convert to new Tx offloads API
Ethdev Tx offloads API has changed since:
commit cba7f53b717d ("ethdev: introduce Tx queue offloads API")
Convert the application to use the new API.
T
app/testpmd: convert to new Tx offloads API
Ethdev Tx offloads API has changed since:
commit cba7f53b717d ("ethdev: introduce Tx queue offloads API")
Convert the application to use the new API.
This patch mandates the port to be stopped when configure the Tx offloads. This is because the PMD must be aware to the offloads changes on the device and queue configuration.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
show more ...
|
#
0074d02f |
| 10-Jan-2018 |
Shahaf Shuler <shahafs@mellanox.com> |
app/testpmd: convert to new Rx offloads API
Ethdev Rx offloads API has changed since:
commit ce17eddefc20 ("ethdev: introduce Rx queue offloads API")
Convert the application to use the new API. Th
app/testpmd: convert to new Rx offloads API
Ethdev Rx offloads API has changed since:
commit ce17eddefc20 ("ethdev: introduce Rx queue offloads API")
Convert the application to use the new API. The is no functionality changes rather simple conversion of the flags.
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
show more ...
|
#
75c530c1 |
| 10-Jan-2018 |
Shahaf Shuler <shahafs@mellanox.com> |
app/testpmd: fix port configuration print
The print of the port configuration was only according to configuration of the first port.
Fixes: f2c5125a686a ("app/testpmd: use default Rx/Tx port config
app/testpmd: fix port configuration print
The print of the port configuration was only according to configuration of the first port.
Fixes: f2c5125a686a ("app/testpmd: use default Rx/Tx port configuration") Cc: stable@dpdk.org
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
show more ...
|
#
6191211f |
| 14-Dec-2017 |
Olivier Matz <olivier.matz@6wind.com> |
app/testpmd: dump more port info
Display some more useful information from dev_info when calling "show port info <portid>".
Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Reviewed-by: Ferruh
app/testpmd: dump more port info
Display some more useful information from dev_info when calling "show port info <portid>".
Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
fafee5e9 |
| 07-Nov-2017 |
Ophir Munk <ophirmu@mellanox.com> |
app/testpmd: fix forwarding between non consecutive ports
When defining two failsafe devices in testpmd the port numbers of the failsafe devices may not be consecutive. For example: if failsafe devi
app/testpmd: fix forwarding between non consecutive ports
When defining two failsafe devices in testpmd the port numbers of the failsafe devices may not be consecutive. For example: if failsafe device includes a PCI device and a TAP device then failsafe port numbers would be 0 and 3. Port 0 - failsafe #1 device Port 1 - PCI #1 device Port 2 - TAP #1 device Port 3 - failsafe #2 device Port 4 - PCI #2 device Port 5 - TAP #2 device
If forwarding is defined between the failsafe devices including a peer address the forwarding should be between peer addresses of ports 0 and 3. Instead testpmd establishes forwarding between peer addresses of consecutive ports 0 and 1. This commit fixes this bug.
Fixes: af75078fece3 ("first public release") Cc: stable@dpdk.org
Signed-off-by: Ophir Munk <ophirmu@mellanox.com> Signed-off-by: Raslan Darawsheh <rasland@mellanox.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
show more ...
|
#
a4fd5eee |
| 20-Oct-2017 |
Elza Mathew <elza.mathew@intel.com> |
app/testpmd: refine xstats show
When using "show port xstats all" command to show xstats, the output is usually too long to obtain what you really want, especially when multi-queue is enabled.
Adde
app/testpmd: refine xstats show
When using "show port xstats all" command to show xstats, the output is usually too long to obtain what you really want, especially when multi-queue is enabled.
Added an option to set whether zero values should be displayed or not for xstats. The "set xstats-hide-zero on|off" command enables the user to decide if the zero values should be shown while displaying xstats.
Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com> Signed-off-by: Elza Mathew <elza.mathew@intel.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
59e4985a |
| 24-Oct-2017 |
Aviad Yehezkel <aviadye@mellanox.com> |
app/testpmd: fix build without ixgbe and bnxt PMDs
Fixes: 4cfe399f6550 ("net/bnxt: support to set VF rxmode") Fixes: 36735a932ca7 ("net/bnxt: support set VF QOS and MAC anti spoof") Cc: stable@dpdk.
app/testpmd: fix build without ixgbe and bnxt PMDs
Fixes: 4cfe399f6550 ("net/bnxt: support to set VF rxmode") Fixes: 36735a932ca7 ("net/bnxt: support set VF QOS and MAC anti spoof") Cc: stable@dpdk.org
Signed-off-by: Aviad Yehezkel <aviadye@mellanox.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
28caa76a |
| 12-Oct-2017 |
Zhiyong Yang <zhiyong.yang@intel.com> |
app/testpmd: fix port id type
Fixes: f8244c6399d9 ("ethdev: increase port id range")
Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
|