#
950d1516 |
| 16-Dec-2014 |
Bruce Richardson <bruce.richardson@intel.com> |
app/testpmd: remove duplicated function for list parsing
There were two static functions called "parse_item_list" in testpmd app. Since one was a superset of the functionality of the other, we can c
app/testpmd: remove duplicated function for list parsing
There were two static functions called "parse_item_list" in testpmd app. Since one was a superset of the functionality of the other, we can collapse the two calls down into a single one, shared between the two C files.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
show more ...
|
#
44eb9456 |
| 03-Dec-2014 |
Thomas Monjalon <thomas.monjalon@6wind.com> |
app/testpmd: fix endianness detection
Use endianness detection factorized in EAL.
The comment about arpa/inet.h is not valid anymore since commit d07180f211c08 ("net: fix conflict with libc").
The
app/testpmd: fix endianness detection
Use endianness detection factorized in EAL.
The comment about arpa/inet.h is not valid anymore since commit d07180f211c08 ("net: fix conflict with libc").
The macro _htons could also be moved in rte_byteorder.h by providing some constant byte swapping.
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Chao Zhu <chaozhu@linux.vnet.ibm.com>
show more ...
|
#
fdf20fa7 |
| 19-Nov-2014 |
Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com> |
add prefix to cache line macros
CACHE_LINE_SIZE is a macro defined in machine/param.h in FreeBSD and conflicts with DPDK macro version. Adding RTE_ prefix to avoid conflicts. CACHE_LINE_MASK and CAC
add prefix to cache line macros
CACHE_LINE_SIZE is a macro defined in machine/param.h in FreeBSD and conflicts with DPDK macro version. Adding RTE_ prefix to avoid conflicts. CACHE_LINE_MASK and CACHE_LINE_ROUNDUP are also prefixed.
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com> [Thomas: updated on HEAD, including PPC]
show more ...
|
#
503f9e8b |
| 26-Sep-2014 |
David Marchand <david.marchand@6wind.com> |
app: no more bare metal environment
Signed-off-by: David Marchand <david.marchand@6wind.com> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Neil Horman <nhorman@tuxdriver.com>
|
#
b51c4753 |
| 26-Nov-2014 |
Olivier Matz <olivier.matz@6wind.com> |
app/testpmd: support TSO in checksum forward engine
Add two new commands in testpmd:
- tso set <segsize> <portid> - tso show <portid>
These commands can be used enable TSO when transmitting TCP pa
app/testpmd: support TSO in checksum forward engine
Add two new commands in testpmd:
- tso set <segsize> <portid> - tso show <portid>
These commands can be used enable TSO when transmitting TCP packets in the csum forward engine. Ex:
set fwd csum tx_checksum set ip hw 0 tso set 800 0 start
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
show more ...
|
#
51f694dd |
| 26-Nov-2014 |
Olivier Matz <olivier.matz@6wind.com> |
app/testpmd: rework checksum forward engine
The csum forward engine was becoming too complex to be used and extended (the next commits want to add the support of TSO):
- no explaination about what
app/testpmd: rework checksum forward engine
The csum forward engine was becoming too complex to be used and extended (the next commits want to add the support of TSO):
- no explaination about what the code does - code is not factorized, lots of code duplicated, especially between ipv4/ipv6 - user command line api: use of bitmasks that need to be calculated by the user - the user flags don't have the same semantic: - for legacy IP/UDP/TCP/SCTP, it selects software or hardware checksum - for other (vxlan), it selects between hardware checksum or no checksum - the code relies too much on flags set by the driver without software alternative (ex: PKT_RX_TUNNEL_IPV4_HDR). It is nice to be able to compare a software implementation with the hardware offload.
This commit tries to fix these issues, and provide a simple definition of what is done by the forward engine:
* Receive a burst of packets, and for supported packet types: * - modify the IPs * - reprocess the checksum in SW or HW, depending on testpmd command line * configuration * Then packets are transmitted on the output port. * * Supported packets are: * Ether / (vlan) / IP|IP6 / UDP|TCP|SCTP . * Ether / (vlan) / IP|IP6 / UDP / VxLAN / Ether / IP|IP6 / UDP|TCP|SCTP * * The network parser supposes that the packet is contiguous, which may * not be the case in real life.
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
show more ...
|
#
cf543fdb |
| 26-Nov-2014 |
Olivier Matz <olivier.matz@6wind.com> |
app/testpmd: fix use of offload flags
In testpmd the rte_port->tx_ol_flags flag was used in 2 incompatible manners: - sometimes used with testpmd specific flags (0xff for checksums, and bit 11 for
app/testpmd: fix use of offload flags
In testpmd the rte_port->tx_ol_flags flag was used in 2 incompatible manners: - sometimes used with testpmd specific flags (0xff for checksums, and bit 11 for vlan) - sometimes assigned to m->ol_flags directly, which is wrong in case of checksum flags
This commit replaces the hardcoded values by named definitions, which are not compatible with mbuf flags. The testpmd forward engines are fixed to use the flags properly.
Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
show more ...
|
#
a21d5a4b |
| 24-Nov-2014 |
Declan Doherty <declan.doherty@intel.com> |
app/testpmd: set socket id when adding new port
Signed-off-by: Declan Doherty <declan.doherty@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
|
#
97b74464 |
| 21-Nov-2014 |
Jingjing Wu <jingjing.wu@intel.com> |
app/testpmd: configure flow director flexible payload
Test command is added to configure flexible payload
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com> Acked-by: Konstantin Ananyev <konstantin
app/testpmd: configure flow director flexible payload
Test command is added to configure flexible payload
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
show more ...
|
#
aeca06df |
| 21-Nov-2014 |
Jingjing Wu <jingjing.wu@intel.com> |
app/testpmd: configure flow director flexible mask
test command added to configure flexible mask
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@
app/testpmd: configure flow director flexible mask
test command added to configure flexible mask
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
show more ...
|
#
66c59490 |
| 15-Nov-2014 |
Helin Zhang <helin.zhang@intel.com> |
ethdev: support multiple sizes of redirection table
As 40G NIC supports different sizes (128/512/64 entries) of redirection table from that (128 entries) of 1G and 10G NICs, support of multiple size
ethdev: support multiple sizes of redirection table
As 40G NIC supports different sizes (128/512/64 entries) of redirection table from that (128 entries) of 1G and 10G NICs, support of multiple sizes of redirection table is needed. It includes, * Redefine 'struct rte_eth_rss_reta' in ethdev. - To 'struct rte_eth_rss_reta_entry64' which contains 64 entries and 64 bits mask. - Array of above new structure can be used for any number of redirection table entries, as long as the number is multiple of 64. This is quite flexible for the future expanding of redirection table. * Redefinition of relevant interfaces in ethdev. - Interface of reta update has been redefined with new parameters. - Interface of reta query has been redefined with new parameters. * Rework of 1G PMD in igb. - reta update has been reworked. - reta query has been reworked. * Rework of 10G PMD in ixgbe. - reta update has been reworked. - reta query has been reworked. * Rework of 40G PMD (PF only) in i40e. - reta update has been reworked. - reta query has been reworked. * Implement relevant commands in testpmd.
Test report: http://dpdk.org/ml/archives/dev/2014-November/008362.html
Signed-off-by: Helin Zhang <helin.zhang@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com> Tested-by: Erlu Chen <erlu.chen@intel.com>
show more ...
|
#
bfd5051b |
| 23-Jul-2014 |
Olivier Matz <olivier.matz@6wind.com> |
app/testpmd: new command to get extended statistics
Add a new token in "show port" command to dump the extended statistics of a device. It validates the new xstats framework added in previous commit
app/testpmd: new command to get extended statistics
Add a new token in "show port" command to dump the extended statistics of a device. It validates the new xstats framework added in previous commit.
Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
4332beee |
| 11-Sep-2014 |
Bruce Richardson <bruce.richardson@intel.com> |
mbuf: expand ol_flags field to 64-bits
The offload flags field (ol_flags) was 16-bits and had no further room for expansion. This patch increases the field size to 64-bits, using up the remaining re
mbuf: expand ol_flags field to 64-bits
The offload flags field (ol_flags) was 16-bits and had no further room for expansion. This patch increases the field size to 64-bits, using up the remaining reserved space in the single-cache-line mbuf.
NOTE: none of the values for existing flags have been changed, i.e. no new numbers have been explicitly reserved between existing flag definitions.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
show more ...
|
#
ea672a8b |
| 28-Aug-2014 |
Olivier Matz <olivier.matz@6wind.com> |
mbuf: remove the rte_pktmbuf structure
The rte_pktmbuf structure was initially included in the rte_mbuf structure. This was needed when there was 2 types of mbuf (ctrl and packet). As the control mb
mbuf: remove the rte_pktmbuf structure
The rte_pktmbuf structure was initially included in the rte_mbuf structure. This was needed when there was 2 types of mbuf (ctrl and packet). As the control mbuf has been removed, we can merge the rte_pktmbuf into the rte_mbuf structure.
Advantages of doing this: - the access to mbuf fields is easier (ex: m->data instead of m->pkt.data) - make the structure more consistent: for instance, there was no reason to have the ol_flags field in rte_mbuf - it will allow a deeper reorganization of the rte_mbuf structure in the next commits, allowing to gain several bytes in it
Signed-off-by: Olivier Matz <olivier.matz@6wind.com> [Bruce: updated for latest code and new example apps] Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
show more ...
|
#
5f4ec54f |
| 14-Aug-2014 |
Chen Jing D(Mark) <jing.d.chen@intel.com> |
testpmd: queue start and stop
The API provides functions to start/stop specific RX/TX queues (see 0748be2). This change adds command in testpmd to start/stop specific RX/TX queues.
Signed-off-by: C
testpmd: queue start and stop
The API provides functions to start/stop specific RX/TX queues (see 0748be2). This change adds command in testpmd to start/stop specific RX/TX queues.
Signed-off-by: Chen Jing D(Mark) <jing.d.chen@intel.com> Reviewed-by: Konstantin Ananyev <konstantin.ananyev@intel.com> Reviewed-by: Changchun Ouyang <changchun.ouyang@intel.com> Reviewed-by: Huawei Xie <huawei.xie@intel.com>
show more ...
|
#
2950a769 |
| 25-Jun-2014 |
Declan Doherty <declan.doherty@intel.com> |
bond: testpmd support
- Includes the ability to create new bonded devices. - Add /remove bonding slave devices. - Interogate bonded device stats/configuration - Change bonding modes and select b
bond: testpmd support
- Includes the ability to create new bonded devices. - Add /remove bonding slave devices. - Interogate bonded device stats/configuration - Change bonding modes and select balance transmit polices
Signed-off-by: Declan Doherty <declan.doherty@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
show more ...
|
#
6f41fe75 |
| 24-Jun-2014 |
Stephen Hemminger <stephen@networkplumber.org> |
eal: deprecate rte_snprintf
The function rte_snprintf serves no useful purpose. It is the same as snprintf() for all valid inputs. Deprecate it and replace all uses in current code.
Leave the tests
eal: deprecate rte_snprintf
The function rte_snprintf serves no useful purpose. It is the same as snprintf() for all valid inputs. Deprecate it and replace all uses in current code.
Leave the tests for the deprecated function in place.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
show more ...
|
#
e9378bbc |
| 26-Jun-2014 |
Cunming Liang <cunming.liang@intel.com> |
app/testpmd: tune default parameters
We usually use testpmd fwd to demonstrate IO forwarding throughput. For best throughput, it has to assign special parameters to testpmd. To make it easier to run
app/testpmd: tune default parameters
We usually use testpmd fwd to demonstrate IO forwarding throughput. For best throughput, it has to assign special parameters to testpmd. To make it easier to run, now set it as defalut value. Such parameters are MBUF Mempool Cache and RX/TX threshold registers. MBCACHE: 250 RX threshold registers: pthresh=8 hthresh=8 wthresh=0 TX threshold registers: pthresh=32 hthresh=0 wthresh=0
Signed-off-by: Cunming Liang <cunming.liang@intel.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Yong Liu <yong.liu@intel.com> Tested-by: Zhaochen Zhan <zhaochen.zhan@intel.com>
show more ...
|
#
836853d3 |
| 26-Jun-2014 |
Cunming Liang <cunming.liang@intel.com> |
app/testpmd: increase default burst size to 32
The vpmd RX don't accept burst size less than 32. As vPMD is set =y by default, while default testpmd burst size is 16. Which will cause RX nothing if
app/testpmd: increase default burst size to 32
The vpmd RX don't accept burst size less than 32. As vPMD is set =y by default, while default testpmd burst size is 16. Which will cause RX nothing if not assign burst size correctly.
Signed-off-by: Cunming Liang <cunming.liang@intel.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Yong Liu <yong.liu@intel.com> Tested-by: Zhaochen Zhan <zhaochen.zhan@intel.com>
show more ...
|
#
ae03d0d1 |
| 17-Jun-2014 |
Ivan Boule <ivan.boule@6wind.com> |
app/testpmd: command to configure MTU
Take avantage of the .set_mtu ethdev function and make it possible to configure MTU on devices using testpmd.
Signed-off-by: Ivan Boule <ivan.boule@6wind.com>
app/testpmd: command to configure MTU
Take avantage of the .set_mtu ethdev function and make it possible to configure MTU on devices using testpmd.
Signed-off-by: Ivan Boule <ivan.boule@6wind.com> Signed-off-by: David Marchand <david.marchand@6wind.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
show more ...
|
#
529ba951 |
| 05-Jun-2014 |
Helin Zhang <helin.zhang@intel.com> |
ethdev: set port based vlan
To support i40e, new ops has been added to support setting port based vlan insertion.
New command 'tx_vlan set pvid port_id vlan_id (on|off)' has been added in testpmd t
ethdev: set port based vlan
To support i40e, new ops has been added to support setting port based vlan insertion.
New command 'tx_vlan set pvid port_id vlan_id (on|off)' has been added in testpmd to configure port based vlan insertion.
Signed-off-by: Helin Zhang <helin.zhang@intel.com> Signed-off-by: Jing Chen <jing.d.chen@intel.com> Acked-by: Cunming Liang <cunming.liang@intel.com> Acked-by: Jijiang Liu <jijiang.liu@intel.com> Acked-by: Jingjing Wu <jingjing.wu@intel.com> Acked-by: Heqing Zhu <heqing.zhu@intel.com> Tested-by: Waterman Cao <waterman.cao@intel.com>
show more ...
|
#
8a387fa8 |
| 05-Jun-2014 |
Helin Zhang <helin.zhang@intel.com> |
ethdev: more RSS flags
- i40e RSS flags have been added (and enlarged to 64-bit) - A new configuration of 'uint8_t rss_key_len' has been added in 'struct rte_eth_rss_conf' to support different len
ethdev: more RSS flags
- i40e RSS flags have been added (and enlarged to 64-bit) - A new configuration of 'uint8_t rss_key_len' has been added in 'struct rte_eth_rss_conf' to support different length of RSS keys. - In each PMD, only the supported flags are masked.
Signed-off-by: Helin Zhang <helin.zhang@intel.com> Signed-off-by: Jing Chen <jing.d.chen@intel.com> Acked-by: Cunming Liang <cunming.liang@intel.com> Acked-by: Jijiang Liu <jijiang.liu@intel.com> Acked-by: Jingjing Wu <jingjing.wu@intel.com> Acked-by: Heqing Zhu <heqing.zhu@intel.com> Tested-by: Waterman Cao <waterman.cao@intel.com>
show more ...
|
#
0db70a80 |
| 16-Jun-2014 |
Jingjing Wu <jingjing.wu@intel.com> |
app/testpmd: add commands for filters
add commands in testpmd for NIC filters: add_ethertype_filter remove_ethertype_filter get_ethertype_filter add_2tuple_filter remove_2tuple_filter get_2tuple_fil
app/testpmd: add commands for filters
add commands in testpmd for NIC filters: add_ethertype_filter remove_ethertype_filter get_ethertype_filter add_2tuple_filter remove_2tuple_filter get_2tuple_filter add_5tuple_filter remove_5tuple_filter get_5tuple_filter add_syn_filter remove_syn_filter get_syn_filter add_flex_filter remove_flex_filter get_flex_filter
Signed-off-by: jingjing.wu <jingjing.wu@intel.com> Tested-by: Waterman Cao <waterman.cao@intel.com> Reviewed-by: Vladimir Medvedkin <medvedkinv@gmail.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
show more ...
|
#
6a18e1af |
| 26-May-2014 |
Ouyang Changchun <changchun.ouyang@intel.com> |
app/testpmd: Tx rate limitation for queue and VF
Signed-off-by: Ouyang Changchun <changchun.ouyang@intel.com> Acked-by: Jijiang Liu <jijiang.liu@intel.com> Tested-by: Waterman Cao <waterman.cao@inte
app/testpmd: Tx rate limitation for queue and VF
Signed-off-by: Ouyang Changchun <changchun.ouyang@intel.com> Acked-by: Jijiang Liu <jijiang.liu@intel.com> Tested-by: Waterman Cao <waterman.cao@intel.com> Acked-by: Huawei Xie <huawei.xie@intel.com>
show more ...
|
#
cfae07fd |
| 28-May-2014 |
Ouyang Changchun <changchun.ouyang@intel.com> |
app/testpmd: add commands for link up and down
This patch adds commands to test the functionality of setting link up and down.
Signed-off-by: Ouyang Changchun <changchun.ouyang@intel.com> Tested-by
app/testpmd: add commands for link up and down
This patch adds commands to test the functionality of setting link up and down.
Signed-off-by: Ouyang Changchun <changchun.ouyang@intel.com> Tested-by: Waterman Cao <waterman.cao@intel.com> Acked by: Ivan Boule <ivan.boule@6wind.com>
show more ...
|