#
7eeda4d5 |
| 20-Feb-2020 |
Hariprasad Govindharajan <hariprasad.govindharajan@intel.com> |
app/testpmd: fix return of port list parser
The function parse_port_list() is designed to return unsigned int value. After sanitizing the inputs, it is returning -1. Changed it to return 0.
Fixes:
app/testpmd: fix return of port list parser
The function parse_port_list() is designed to return unsigned int value. After sanitizing the inputs, it is returning -1. Changed it to return 0.
Fixes: 2df00d562d20 ("app/testpmd: add --portlist option")
Signed-off-by: Hariprasad Govindharajan <hariprasad.govindharajan@intel.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
5e4154ce |
| 19-Feb-2020 |
Ferruh Yigit <ferruh.yigit@intel.com> |
app/testpmd: guarantee port array access in range
Coverity complains about out of bound access, which is a false positive.
The return value of the 'parse_port_list()' can't be bigger than 'maxsize'
app/testpmd: guarantee port array access in range
Coverity complains about out of bound access, which is a false positive.
The return value of the 'parse_port_list()' can't be bigger than 'maxsize' because of the logic in the function. ('value >= (int)maxsize' check and 'marked[]' usage.)
But this is not explicitly clear, causing coverity warning and same question can be rise by reviews later.
Adding a redundant check to highlight the access is in range, this is done by replacing existing redundant check.
This is also good to protect against out out bound access in case 'parse_port_list()' behaviour changes later unexpectedly.
Coverity issue: 354229 Fixes: 2df00d562d20 ("app/testpmd: add --portlist option")
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Reviewed-by: Herakliusz Lipiec <herakliusz.lipiec@intel.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
show more ...
|
#
150c9ac2 |
| 13-Feb-2020 |
Wei Hu (Xavier) <xavier.huwei@huawei.com> |
app/testpmd: update Rx offload after setting MTU
Currently, Rx offload capabilities and max_rx_pkt_len in the struct variable named rte_port are not updated after setting mtu successfully in port_mt
app/testpmd: update Rx offload after setting MTU
Currently, Rx offload capabilities and max_rx_pkt_len in the struct variable named rte_port are not updated after setting mtu successfully in port_mtu_set function by 'port config mtu <port_id> <value>' command. This may lead to reconfig mtu to the initial value in the driver when recalling rte_eth_dev_configure API interface.
This patch updates Rx offload capabilities and max_rx_pkt_len after setting mtu successfully when configuring mtu.
Fixes: ae03d0d18adf ("app/testpmd: command to configure MTU") Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
2df00d56 |
| 12-Feb-2020 |
Hariprasad Govindharajan <hariprasad.govindharajan@intel.com> |
app/testpmd: add --portlist option
In current version, we are setting the ports using portmask. With portmask, we can use only up to 64 ports. This portlist option enables the user to use more than
app/testpmd: add --portlist option
In current version, we are setting the ports using portmask. With portmask, we can use only up to 64 ports. This portlist option enables the user to use more than 64 ports. Now we can specify the ports in 2 different ways - Using portmask (-p [0x]nnn): mask must be in hex format - Using portlist in the following format --portlist <p1>[-p2][,p3[-p4],...]
--portmask 0x2 is same as --portlist 1 --portmask 0x3 is same as --portlist 0-1
Signed-off-by: Hariprasad Govindharajan <hariprasad.govindharajan@intel.com> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com> Reviewed-by: Herakliusz Lipiec <herakliusz.lipiec@intel.com>
show more ...
|
#
43e34a22 |
| 10-Feb-2020 |
Thomas Monjalon <thomas@monjalon.net> |
build: remove redundant config include
The header file rte_config.h is always included by make or meson. If required in an exported API header file, it must be included in the public header file for
build: remove redundant config include
The header file rte_config.h is always included by make or meson. If required in an exported API header file, it must be included in the public header file for external applications. In the internal files, explicit include of rte_config.h is useless, and can be removed.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Matan Azrad <matan@mellanox.com> Acked-by: David Marchand <david.marchand@redhat.com> Acked-by: Neil Horman <nhorman@tuxdriver.com>
show more ...
|
#
72512e18 |
| 20-Jan-2020 |
Viacheslav Ovsiienko <viacheslavo@mellanox.com> |
app/testpmd: add mempool with external data buffers
The new mbuf pool type is added to testpmd. To engage the mbuf pool with externally attached data buffers the parameter "--mp-alloc=xbuf" should b
app/testpmd: add mempool with external data buffers
The new mbuf pool type is added to testpmd. To engage the mbuf pool with externally attached data buffers the parameter "--mp-alloc=xbuf" should be specified in testpmd command line.
The objective of this patch is just to test whether mbuf pool with externally attached data buffers works OK. The memory for data buffers is allocated from DPDK memory, so this is not "true" external memory from some physical device (this is supposed the most common use case for such kind of mbuf pool).
The user should be aware that not all drivers support the mbuf with EXT_ATTACHED_BUF flags set in newly allocated mbuf (many PMDs just overwrite ol_flags field and flag value is getting lost).
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
show more ...
|
#
1e8a4e97 |
| 17-Jan-2020 |
Xueming Li <xuemingl@mellanox.com> |
app/testpmd: add flow dump command
New flow dump CLI to dump device internal representation information of flows into screen.
Signed-off-by: Xueming Li <xuemingl@mellanox.com> Signed-off-by: Xiaoyu
app/testpmd: add flow dump command
New flow dump CLI to dump device internal representation information of flows into screen.
Signed-off-by: Xueming Li <xuemingl@mellanox.com> Signed-off-by: Xiaoyu Min <jackmin@mellanox.com> Acked-by: Ori Kam <orika@mellanox.com>
show more ...
|
#
eda749cd |
| 16-Jan-2020 |
Bernard Iremonger <bernard.iremonger@intel.com> |
app/testpmd: improve flow command debug
print function name in port_flow_complain()
Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@i
app/testpmd: improve flow command debug
print function name in port_flow_complain()
Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
show more ...
|
#
c11562a1 |
| 04-Dec-2019 |
Ciara Power <ciara.power@intel.com> |
app/testpmd: fix device mcast list error handling
The multicast set list function now has a return value, which is checked by the calling functions. A rollback occurs on detection of failure, to rea
app/testpmd: fix device mcast list error handling
The multicast set list function now has a return value, which is checked by the calling functions. A rollback occurs on detection of failure, to realign local config with the device config.
The error print statement in the function had included the port_id and mc_addr_nb values in the wrong order, these are now swapped.
Fixes: 8fff667578a7 ("app/testpmd: new command to add/remove multicast MAC addresses") Cc: stable@dpdk.org
Signed-off-by: Ciara Power <ciara.power@intel.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
e1d44d0a |
| 25-Nov-2019 |
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> |
app/testpmd: show MAC addresses added to a port
Patch adds a runtime function to display the unicast and multicast MAC addresses added to a port.
Syntax: show port (port_id) macs|mcast_macs
Usage
app/testpmd: show MAC addresses added to a port
Patch adds a runtime function to display the unicast and multicast MAC addresses added to a port.
Syntax: show port (port_id) macs|mcast_macs
Usage: testpmd> show port 0 macs Number of MAC address added: 1 B0:26:28:7F:F5:C1 testpmd> testpmd> show port 0 mcast_macs Number of Multicast MAC address added: 0 testpmd> testpmd> mac_addr add 0 B0:26:28:7F:22:33 testpmd> mac_addr add 0 B0:26:28:7F:22:34 testpmd> show port 0 macs Number of MAC address added: 3 B0:26:28:7F:F5:C1 B0:26:28:7F:22:33 B0:26:28:7F:22:34 testpmd> testpmd> mac_addr remove 0 B0:26:28:7F:22:33 testpmd> show port 0 macs Number of MAC address added: 2 B0:26:28:7F:F5:C1 B0:26:28:7F:22:34
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
4a729092 |
| 11-Nov-2019 |
Dekel Peled <dekelp@mellanox.com> |
app/testpmd: set maximum LRO packet size
This patch implements use of the API for LRO aggregated packet max size. It adds command-line and runtime commands to configure this value, and adds option t
app/testpmd: set maximum LRO packet size
This patch implements use of the API for LRO aggregated packet max size. It adds command-line and runtime commands to configure this value, and adds option to show the supported value. Documentation is updated accordingly.
Signed-off-by: Dekel Peled <dekelp@mellanox.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Matan Azrad <matan@mellanox.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
bd67b677 |
| 01-Nov-2019 |
Stephen Hemminger <stephen@networkplumber.org> |
app/testpmd: block xstats for hidden ports
All the other testpmd commands block access to devices that are owned. Looks like xstat got overlooked.
Fixes: bfd5051b43b5 ("app/testpmd: new command to
app/testpmd: block xstats for hidden ports
All the other testpmd commands block access to devices that are owned. Looks like xstat got overlooked.
Fixes: bfd5051b43b5 ("app/testpmd: new command to get extended statistics") Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
show more ...
|
#
8dedb546 |
| 06-Nov-2019 |
Haiyue Wang <haiyue.wang@intel.com> |
ethdev: enhance burst mode information API
Change the type of burst mode information from bit field to free string data, so that each PMD can describe the Rx/Tx busrt functions flexibly.
Fixes: eb5
ethdev: enhance burst mode information API
Change the type of burst mode information from bit field to free string data, so that each PMD can describe the Rx/Tx busrt functions flexibly.
Fixes: eb5902504a13 ("ethdev: add API for getting burst mode information") Fixes: 6b6609f68ccd ("net/i40e: support Rx/Tx burst mode info") Fixes: e9a10e6c2102 ("net/ice: support Rx/Tx burst mode info") Fixes: 7fe108edcf53 ("app/testpmd: show Rx/Tx burst mode description")
Signed-off-by: Haiyue Wang <haiyue.wang@intel.com> Acked-by: Ray Kinsella <ray.kinsella@intel.com> Acked-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
show more ...
|
#
15e67d41 |
| 15-Oct-2019 |
Simei Su <simei.su@intel.com> |
app/testpmd: support extended RSS offload types
This patch adds cmdline support for extended rss types configuration.
Signed-off-by: Simei Su <simei.su@intel.com> Reviewed-by: Qi Zhang <qi.z.zhang@
app/testpmd: support extended RSS offload types
This patch adds cmdline support for extended rss types configuration.
Signed-off-by: Simei Su <simei.su@intel.com> Reviewed-by: Qi Zhang <qi.z.zhang@intel.com>
show more ...
|
#
7fe108ed |
| 15-Oct-2019 |
Haiyue Wang <haiyue.wang@intel.com> |
app/testpmd: show Rx/Tx burst mode description
Add the 'Burst mode' section into command 'show rxq|txq info <port_id> <queue_id>' to show the Rx/Tx burst mode description like: "Burst mode: Vector
app/testpmd: show Rx/Tx burst mode description
Add the 'Burst mode' section into command 'show rxq|txq info <port_id> <queue_id>' to show the Rx/Tx burst mode description like: "Burst mode: Vector AVX2 Scattered"
Signed-off-by: Haiyue Wang <haiyue.wang@intel.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com> Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
show more ...
|
#
2a0b4198 |
| 11-Oct-2019 |
Vivek Sharma <viveksharma@marvell.com> |
app/testpmd: support QinQ offload in VLAN set command
Segregate QinQ from Extend Offload and support QinQ offload in vlan set command. Merge all port wise rx vlan offloads in command line help and d
app/testpmd: support QinQ offload in VLAN set command
Segregate QinQ from Extend Offload and support QinQ offload in vlan set command. Merge all port wise rx vlan offloads in command line help and documentation for a cleaner structure.
Fix port info display to distinguish between qinq strip and extend offloads. Flatten all VLAN offload info into a single line to reduce info length.
Signed-off-by: Vivek Sharma <viveksharma@marvell.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
971a815b |
| 29-Jul-2019 |
Matan Azrad <matan@mellanox.com> |
app/testpmd: add bits per second to statistics
Traffic bps statistics is very useful for performance testing.
Add bits per second statistics for Rx and Tx.
Signed-off-by: Matan Azrad <matan@mellan
app/testpmd: add bits per second to statistics
Traffic bps statistics is very useful for performance testing.
Add bits per second statistics for Rx and Tx.
Signed-off-by: Matan Azrad <matan@mellanox.com> Acked-by: Moti Haimovsky <motih@mellanox.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
84057fd0 |
| 25-Sep-2019 |
Tao Zhu <taox.zhu@intel.com> |
app/testpmd: fix build for 16-byte Rx descriptor mode
This minor patch fixes unused variable ‘ret’ compile error When CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC was selected.
Fixes: 6f51deb903b2 ("app/t
app/testpmd: fix build for 16-byte Rx descriptor mode
This minor patch fixes unused variable ‘ret’ compile error When CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC was selected.
Fixes: 6f51deb903b2 ("app/testpmd: check status of getting ethdev info")
Signed-off-by: Tao Zhu <taox.zhu@intel.com> Reviewed-by: Qi Zhang <qi.z.zhang@intel.com>
show more ...
|
#
a5279d25 |
| 10-Sep-2019 |
Igor Romanov <igor.romanov@oktetlabs.ru> |
app/testpmd: check status of getting MAC address
Add a wrapper for rte_eth_macaddr_get() that prints an error and returns a status code if the function fails.
Signed-off-by: Igor Romanov <igor.roma
app/testpmd: check status of getting MAC address
Add a wrapper for rte_eth_macaddr_get() that prints an error and returns a status code if the function fails.
Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
e661a08b |
| 10-Sep-2019 |
Igor Romanov <igor.romanov@oktetlabs.ru> |
app/testpmd: check status of getting link info
Add a wrapper for rte_eth_eth_link_get_nowait() that prints an error and returns a status code if the function fails.
Signed-off-by: Igor Romanov <igo
app/testpmd: check status of getting link info
Add a wrapper for rte_eth_eth_link_get_nowait() that prints an error and returns a status code if the function fails.
Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
show more ...
|
#
da328f7f |
| 06-Sep-2019 |
Igor Romanov <igor.romanov@oktetlabs.ru> |
ethdev: change xstats reset function to return int
Change rte_eth_xstats_reset() return value from void to int and return negative errno values in case of error conditions.
Signed-off-by: Igor Roma
ethdev: change xstats reset function to return int
Change rte_eth_xstats_reset() return value from void to int and return negative errno values in case of error conditions.
Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
6f51deb9 |
| 12-Sep-2019 |
Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> |
app/testpmd: check status of getting ethdev info
Add eth_dev_info_get_print_err() which is a wrapper for rte_eth_dev_info_get() printing error if rte_eth_dev_info_get() fails and returning its statu
app/testpmd: check status of getting ethdev info
Add eth_dev_info_get_print_err() which is a wrapper for rte_eth_dev_info_get() printing error if rte_eth_dev_info_get() fails and returning its status code.
Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
show more ...
|
#
78402e16 |
| 12-Sep-2019 |
Andrew Rybchenko <arybchenko@solarflare.com> |
ethdev: remove redundant device info cleanup before get
rte_eth_dev_info_get() always fills in device information memory with zeros on entry.
Fixes: b6719879855d ("ethdev: avoid getting uninitializ
ethdev: remove redundant device info cleanup before get
rte_eth_dev_info_get() always fills in device information memory with zeros on entry.
Fixes: b6719879855d ("ethdev: avoid getting uninitialized info for bad port") Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
55e51c96 |
| 17-Jul-2019 |
Nithin Dabilpuram <ndabilpuram@marvell.com> |
app/testpmd: add device related commands
With the latest published interface of rte_eal_hotplug_[add,remove](), and rte_eth_dev_close(), rte_eth_dev_close() would cleanup all the data structures of
app/testpmd: add device related commands
With the latest published interface of rte_eal_hotplug_[add,remove](), and rte_eth_dev_close(), rte_eth_dev_close() would cleanup all the data structures of port's eth dev leaving the device common resource intact if RTE_ETH_DEV_CLOSE_REMOVE is set in dev flags.
So a new command "detach device" (~hotplug remove) to work, with device identifier like "port attach" is added to be able to detach closed devices.
Also to display currently probed devices, another command "show device info <identifier>|all" is also added as a part of this change.
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
#
a1be9d7d |
| 16-Jul-2019 |
Viacheslav Ovsiienko <viacheslavo@mellanox.com> |
app/testpmd: fix show port info routine
This patch updates "show port info [port_id]" command to display the tx_desc_lim.nb_seg_max and tx_desc_lim.nb_mtu_seg_max fields of rte_eth_dev_info structur
app/testpmd: fix show port info routine
This patch updates "show port info [port_id]" command to display the tx_desc_lim.nb_seg_max and tx_desc_lim.nb_mtu_seg_max fields of rte_eth_dev_info structure.
Fixes: 4fb7e803eb1a ("ethdev: add Tx preparation") Cc: stable@dpdk.org
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
show more ...
|