#
d4e8ad64 |
| 24-Jun-2015 |
Michael Qiu <michael.qiu@intel.com> |
app/testpmd: fix error message when closing port twice
When close one port twice, testpmd will give out wrong messagse.
testpmd> port stop 0 Stopping ports... Checking link statuses... Port 0 Link
app/testpmd: fix error message when closing port twice
When close one port twice, testpmd will give out wrong messagse.
testpmd> port stop 0 Stopping ports... Checking link statuses... Port 0 Link Up - speed 0 Mbps - full-duplex Port 1 Link Up - speed 0 Mbps - full-duplex Done testpmd> port close 0 Closing ports... Done testpmd> port close 0 Closing ports... Port 0 is now not stopped Done testpmd>
Signed-off-by: Michael Qiu <michael.qiu@intel.com>
show more ...
|
#
41b05095 |
| 27-Jul-2015 |
Bernard Iremonger <bernard.iremonger@intel.com> |
app/testpmd: fix bonding start
When the bonded port is started it also starts the slave port, but the slave port status is not set. A slave_flag has been added to struct rte_port to resolve this iss
app/testpmd: fix bonding start
When the bonded port is started it also starts the slave port, but the slave port status is not set. A slave_flag has been added to struct rte_port to resolve this issue.
Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Declan Doherty <declan.doherty@intel.com>
show more ...
|
#
20718201 |
| 15-Jul-2015 |
Bernard Iremonger <bernard.iremonger@intel.com> |
app/testpmd: fix port detaching with virtio
At this point the stop() and close() functions have already been called. The rte_eth_promiscuous_disable() function does not return on the VM.
Signed-off
app/testpmd: fix port detaching with virtio
At this point the stop() and close() functions have already been called. The rte_eth_promiscuous_disable() function does not return on the VM.
Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org>
show more ...
|
#
f3618dcb |
| 04-Jun-2015 |
Stephen Hemminger <shemming@brocade.com> |
app: fix whitespace
Fix trailing whitespace, space before tab and empty lines at end of file.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> [Thomas: fix indent and alignment in test
app: fix whitespace
Fix trailing whitespace, space before tab and empty lines at end of file.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> [Thomas: fix indent and alignment in test_acl.h and test_sched.c]
show more ...
|
#
ea0c20ea |
| 22-Apr-2015 |
Olivier Matz <olivier.matz@6wind.com> |
apps: use helper to create mbuf pools
When it's possible, use the new helper to create the mbuf pools. Most of the patch is trivial, except for the following files that have some specifics (indirect
apps: use helper to create mbuf pools
When it's possible, use the new helper to create the mbuf pools. Most of the patch is trivial, except for the following files that have some specifics (indirect mbufs): - ip_fragmentation - ip_pipeline - ipv4_multicast - vhost
Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
show more ...
|
#
dfb03bbe |
| 22-Apr-2015 |
Olivier Matz <olivier.matz@6wind.com> |
app/testpmd: use standard functions to initialize mbufs and mbuf pool
The rte_pktmbuf_pool_init() and rte_pktmbuf_init() functions now support to have a non-hardcoded buffer length. We can remove th
app/testpmd: use standard functions to initialize mbufs and mbuf pool
The rte_pktmbuf_pool_init() and rte_pktmbuf_init() functions now support to have a non-hardcoded buffer length. We can remove the specific functions used in testpmd and replace them by the standard ones.
Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
show more ...
|
#
1d493a49 |
| 22-Apr-2015 |
Olivier Matz <olivier.matz@6wind.com> |
mbuf: fix data room size calculation in pool init
Deduct the mbuf data room size from mempool->elt_size and priv_size, instead of using an hardcoded value that is not related to the real buffer size
mbuf: fix data room size calculation in pool init
Deduct the mbuf data room size from mempool->elt_size and priv_size, instead of using an hardcoded value that is not related to the real buffer size.
To use rte_pktmbuf_pool_init(), the user can either: - give a NULL parameter to rte_pktmbuf_pool_init(): in this case, the private size is assumed to be 0, and the room size is mp->elt_size - sizeof(struct rte_mbuf). - give the rte_pktmbuf_pool_private filled with appropriate data_room_size and priv_size values.
Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
show more ...
|
#
12a8e30f |
| 09-Mar-2015 |
Julien Cretin <julien.cretin@trust-in-soft.com> |
app/testpmd: fix potential out of bounds read
After the last enabled port has been seen, and the last time we evaluate the loop condition, there is an out of bounds read in ports[p].enabled because
app/testpmd: fix potential out of bounds read
After the last enabled port has been seen, and the last time we evaluate the loop condition, there is an out of bounds read in ports[p].enabled because p is equal to size, which is the length of ports.
Signed-off-by: Julien Cretin <julien.cretin@trust-in-soft.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
show more ...
|
#
8210ec25 |
| 27-Feb-2015 |
Pablo de Lara <pablo.de.lara.guarch@intel.com> |
app/testpmd: stop forwarding when quitting
When user quits testpmd, and there is traffic being forwarded, that may produce a segmentation fault, due to ports being closed, while they are still trans
app/testpmd: stop forwarding when quitting
When user quits testpmd, and there is traffic being forwarded, that may produce a segmentation fault, due to ports being closed, while they are still transmitting packets.
This patch prevents the issue from happening, by stopping packet forwarding before closing the ports.
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
show more ...
|
#
ff708fac |
| 04-Mar-2015 |
David Marchand <david.marchand@6wind.com> |
tailq: remove unneeded inclusions
Only keep inclusion where really needed.
Signed-off-by: David Marchand <david.marchand@6wind.com> Acked-by: Neil Horman <nhorman@tuxdriver.com>
|
#
4468635f |
| 09-Mar-2015 |
Michael Qiu <michael.qiu@intel.com> |
app/testpmd: forbid actions on invalid port
Currently, if try to start/stop/close one invalid port, no error shows in testpmd. This is a bug, need check the port number.
Signed-off-by: Michael Qiu
app/testpmd: forbid actions on invalid port
Currently, if try to start/stop/close one invalid port, no error shows in testpmd. This is a bug, need check the port number.
Signed-off-by: Michael Qiu <michael.qiu@intel.com> Acked-by: Tetsuya Mukawa <mukawa@igel.co.jp>
show more ...
|
#
92d2703e |
| 02-Mar-2015 |
Michael Qiu <michael.qiu@intel.com> |
app/testpmd: fix log with no bound device
As hotplug has been enabled, start the testpmd with no nic binded will show one error log "Please stop the ports first":
Interactive-mode selected Please s
app/testpmd: fix log with no bound device
As hotplug has been enabled, start the testpmd with no nic binded will show one error log "Please stop the ports first":
Interactive-mode selected Please stop the ports first Done testpmd>
This issue is cause by the logic of check link status.
Signed-off-by: Michael Qiu <michael.qiu@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
show more ...
|
#
ffc468ff |
| 27-Feb-2015 |
Tetsuya Mukawa <mukawa@igel.co.jp> |
app/testpmd: fix crash when portmask is specified
If testpmd is invoked with portmask option like below, segmentation fault will occur. This patch fixes the issue.
Reported-by: Pablo de Lara <pablo
app/testpmd: fix crash when portmask is specified
If testpmd is invoked with portmask option like below, segmentation fault will occur. This patch fixes the issue.
Reported-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
show more ...
|
#
edab33b1 |
| 25-Feb-2015 |
Tetsuya Mukawa <mukawa@igel.co.jp> |
app/testpmd: support port hotplug
The patch introduces following commands. - port attach [ident] - port detach [port_id] - attach: attaching a port - detach: detaching a port - ident: pci address
app/testpmd: support port hotplug
The patch introduces following commands. - port attach [ident] - port detach [port_id] - attach: attaching a port - detach: detaching a port - ident: pci address of physical device. Or device name and parameters of virtual device. (ex. 0000:02:00.0, eth_pcap0,iface=eth0) - port_id: port identifier
Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
show more ...
|
#
d9d5e6f2 |
| 29-Jan-2015 |
Jingjing Wu <jingjing.wu@intel.com> |
app/testpmd: set default flow director mask
This patch sets the default value of flow director's mask.
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com> Acked-by: Helin Zhang <helin.zhang@intel.co
app/testpmd: set default flow director mask
This patch sets the default value of flow director's mask.
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com> Acked-by: Helin Zhang <helin.zhang@intel.com>
show more ...
|
#
299191e0 |
| 29-Jan-2015 |
Jingjing Wu <jingjing.wu@intel.com> |
ethdev: remove flexbytes offset from flow director
This patch removes the flexbytes_offset from rte_fdir_conf, because the flexible payload setting is done by flex_conf instead of flexbytes_offset.
ethdev: remove flexbytes offset from flow director
This patch removes the flexbytes_offset from rte_fdir_conf, because the flexible payload setting is done by flex_conf instead of flexbytes_offset.
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com> Acked-by: Helin Zhang <helin.zhang@intel.com>
show more ...
|
#
f2c5125a |
| 12-Feb-2015 |
Pablo de Lara <pablo.de.lara.guarch@intel.com> |
app/testpmd: use default Rx/Tx port configuration
Function to get rx/tx port configuration from the PMDs was added in previous release to simplify the port configuration in all sample apps, but test
app/testpmd: use default Rx/Tx port configuration
Function to get rx/tx port configuration from the PMDs was added in previous release to simplify the port configuration in all sample apps, but testpmd was not modified.
This patch makes testpmd get the default rx/tx port configuration, but still uses the parameters passed by the command line.
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Acked-by: John McNamara <john.mcnamara@intel.com>
show more ...
|
#
a30979f6 |
| 12-Jan-2015 |
Ouyang Changchun <changchun.ouyang@intel.com> |
app/testpmd: set Rx VMDq RSS mode
Set VMDq RSS mode if it has VF (VF number is more than 1) and has RSS information.
Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com> Reviewed-by: Vlad Z
app/testpmd: set Rx VMDq RSS mode
Set VMDq RSS mode if it has VF (VF number is more than 1) and has RSS information.
Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com> Reviewed-by: Vlad Zolotarov <vladz@cloudius-systems.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>
|
#
4199fdea |
| 26-Nov-2014 |
Olivier Matz <olivier.matz@6wind.com> |
mbuf: generic support for TCP segmentation offload
Some of the NICs supported by DPDK have a possibility to accelerate TCP traffic by using segmentation offload. The application prepares a packet wi
mbuf: generic support for TCP segmentation offload
Some of the NICs supported by DPDK have a possibility to accelerate TCP traffic by using segmentation offload. The application prepares a packet with valid TCP header with size up to 64K and deleguates the segmentation to the NIC.
Implement the generic part of TCP segmentation offload in rte_mbuf. It introduces 2 new fields in rte_mbuf: l4_len (length of L4 header in bytes) and tso_segsz (MSS of packets).
To delegate the TCP segmentation to the hardware, the user has to:
- set the PKT_TX_TCP_SEG flag in mbuf->ol_flags (this flag implies PKT_TX_TCP_CKSUM) - set the flag PKT_TX_IPV4 or PKT_TX_IPV6 - set PKT_TX_IP_CKSUM if it's IPv4, and set the IP checksum to 0 in the packet - fill the mbuf offload information: l2_len, l3_len, l4_len, tso_segsz - calculate the pseudo header checksum without taking ip_len in account, and set it in the TCP header, for instance by using rte_ipv4_phdr_cksum(ip_hdr, ol_flags)
The API is inspired from ixgbe hardware (the next commit adds the support for ixgbe), but it seems generic enough to be used for other hw/drivers in the future.
This commit also reworks the way l2_len and l3_len are used in igb and ixgbe drivers as the l2_l3_len is not available anymore in mbuf.
Signed-off-by: Mirek Walukiewicz <miroslaw.walukiewicz@intel.com> 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>
|
#
b4bb86cc |
| 07-Nov-2014 |
Thomas Monjalon <thomas.monjalon@6wind.com> |
app,examples: remove references to drivers config
These references to drivers break the layering isolation between application and drivers.
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com
app,examples: remove references to drivers config
These references to drivers break the layering isolation between application and drivers.
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Helin Zhang <helin.zhang@intel.com>
show more ...
|
#
fa73fe80 |
| 23-Sep-2014 |
Bruce Richardson <bruce.richardson@intel.com> |
app/testpmd: change rxfreet default to 32
To improve performance by using bulk alloc or vectored RX routines, we need to set rx free threshold (rxfreet) value to 32, so make this the testpmd default
app/testpmd: change rxfreet default to 32
To improve performance by using bulk alloc or vectored RX routines, we need to set rx free threshold (rxfreet) value to 32, so make this the testpmd default.
Thirty-two is the minimum setting needed to enable either the bulk alloc or vector RX routines inside the ixgbe driver, so it's best made the default for that reason. Please see "check_rx_burst_bulk_alloc_preconditions()" in ixgbe_rxtx.c, and RX function assignment logic in "ixgbe_dev_rx_queue_setup()" in the same file.
The difference in IO performance for testpmd when called without any optional parameters, and using 10G NICs using the ixgbe driver, can be significant - approx 25% or more.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
show more ...
|
#
08b563ff |
| 11-Sep-2014 |
Olivier Matz <olivier.matz@6wind.com> |
mbuf: replace data pointer by an offset
The mbuf structure already contains a pointer to the beginning of the buffer (m->buf_addr). It is not needed to use 8 bytes again to store another pointer to
mbuf: replace data pointer by an offset
The mbuf structure already contains a pointer to the beginning of the buffer (m->buf_addr). It is not needed to use 8 bytes again to store another pointer to the beginning of the data.
Using a 16 bits unsigned integer is enough as we know that a mbuf is never longer than 64KB. We gain 6 bytes in the structure thanks to this modification.
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
* Updated to apply to latest on mainline. * Disabled vector PMD in config as it relies heavily on the mbuf layout This will be re-enabled in a subsequent commit once vPMD has been reworked to take account of mbuf changes.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
show more ...
|