[dpdk-dev] dpdk/vpp and cross-version migration for vhost

2016-11-24 Thread Yuanhan Liu
On Thu, Nov 24, 2016 at 09:30:49AM +, Kevin Traynor wrote: > On 11/24/2016 06:31 AM, Yuanhan Liu wrote: > > On Tue, Nov 22, 2016 at 04:53:05PM +0200, Michael S. Tsirkin wrote: > You keep assuming that you have the VM started first and > figure out things afterwards, but this does not

[dpdk-dev] [PATCH 00/56] Solarflare libefx-based PMD

2016-11-24 Thread Andrew Rybchenko
On 11/23/2016 06:29 PM, Ferruh Yigit wrote: > On 11/21/2016 3:00 PM, Andrew Rybchenko wrote: >> The patch series adds Solarflare libefx-based network PMD. >> >> This version of the driver supports Solarflare SFN7xxx and SFN8xxx >> families of 10/40 Gbps adapters. >> >> libefx is a platform-independ

[dpdk-dev] [PATCH 01/56] net/sfc: libefx-based PMD stub sufficient to build and init

2016-11-24 Thread Andrew Rybchenko
On 11/23/2016 06:26 PM, Ferruh Yigit wrote: > On 11/21/2016 3:00 PM, Andrew Rybchenko wrote: >> The PMD is put into the sfc/efx subdirectory to have a place for >> the second PMD and library shared by both. >> >> Enable the PMD by default on supported configuratons. >> >> Reviewed-by: Andy Moreton

[dpdk-dev] [PATCH 30/56] net/sfc: include libefx in build

2016-11-24 Thread Andrew Rybchenko
See one question below. On 11/23/2016 06:26 PM, Ferruh Yigit wrote: > On 11/21/2016 3:00 PM, Andrew Rybchenko wrote: >> From: Artem Andreev >> >> Implement efsys.h for the PMD. >> >> Reviewed-by: Andy Moreton >> Signed-off-by: Artem Andreev >> Signed-off-by: Andrew Rybchenko >> --- >> driver

[dpdk-dev] [PATCH 1/1] net/i40e: enable auto link update for XXV710

2016-11-24 Thread Qi Zhang
This patch remove the limitation that XXV710 device does not support auto link update. Signed-off-by: Qi Zhang --- drivers/net/i40e/i40e_ethdev.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 6777

[dpdk-dev] [PATCH] test: adding AES cipher-only tests on QAT PMD

2016-11-24 Thread Fiona Trahe
Extended functional AES-CBC and AES-CTR cipher-only tests to run on QAT PMD. Added AES_CBC cipher-only performance tests on QAT PMD. No driver changes, but as now tested, QAT documentation is updated to remove constraint. Signed-off-by: Fiona Trahe --- app/test/test_cryptodev.c

[dpdk-dev] [PATCH 31/56] net/sfc: implement dummy callback to get device information

2016-11-24 Thread Andrew Rybchenko
On 11/23/2016 06:26 PM, Ferruh Yigit wrote: > On 11/21/2016 3:00 PM, Andrew Rybchenko wrote: >> Just a stub to be filled in when corresponding functionality is >> implemented. > What about merging this stub with real implementation? > Or perhaps replace with code that adds dummy .dev_configure? Th

[dpdk-dev] [PATCH v2] ethdev: check number of queues less than RTE_ETHDEV_QUEUE_STAT_CNTRS

2016-11-24 Thread Olivier Matz
Hi, On Mon, 2016-11-21 at 09:59 +, Alejandro Lucero wrote: > From: Bert van Leeuwen > > Arrays inside rte_eth_stats have size=RTE_ETHDEV_QUEUE_STAT_CNTRS. > Some devices report more queues than that and this code blindly uses > the reported number of queues by the device to fill those arrays

[dpdk-dev] [PATCH 32/56] net/sfc: implement driver operation to init device on attach

2016-11-24 Thread Andrew Rybchenko
On 11/23/2016 06:26 PM, Ferruh Yigit wrote: > On 11/21/2016 3:00 PM, Andrew Rybchenko wrote: >> The setup and configuration of the PMD is not performance sensitive, >> but is not thread safe either. It is possible that the multiple >> read/writes during PMD setup and configuration could be corrupte

[dpdk-dev] [PATCH 33/56] net/sfc: add device configure and close stubs

2016-11-24 Thread Andrew Rybchenko
On 11/23/2016 06:26 PM, Ferruh Yigit wrote: > On 11/21/2016 3:00 PM, Andrew Rybchenko wrote: >> Reviewed-by: Andy Moreton >> Signed-off-by: Andrew Rybchenko >> --- > <...> > >> diff --git a/drivers/net/sfc/efx/sfc.h b/drivers/net/sfc/efx/sfc.h >> index 01d652d..d040f98 100644 >> --- a/drivers/net

[dpdk-dev] [PATCH] doc: introduce PVP reference benchmark

2016-11-24 Thread Mcnamara, John
> -Original Message- > From: Maxime Coquelin [mailto:maxime.coquelin at redhat.com] > Sent: Wednesday, November 23, 2016 9:00 PM > To: yuanhan.liu at linux.intel.com; thomas.monjalon at 6wind.com; Mcnamara, > John > ; Yang, Zhiyong ; > dev at dpdk.org > Cc: fbaudin at redhat.com; Maxime Co

[dpdk-dev] [PATCH 7/7] net/mlx5: remove inefficient prefetching

2016-11-24 Thread Nelio Laranjeiro
Prefetching completion queue entries is inefficient because too few CPU cycles are spent before their use, which results into cache misses anyway. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_rxtx.c | 21 - 1 file changed, 21 deletions

[dpdk-dev] [PATCH 6/7] net/mlx5: optimize copy of Ethernet header

2016-11-24 Thread Nelio Laranjeiro
Use fewer instructions to copy the first two bytes of Ethernet headers to work queue elements. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_rxtx.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/

[dpdk-dev] [PATCH 5/7] net/mlx5: move static prototype

2016-11-24 Thread Nelio Laranjeiro
Gather function prototypes at the beginning of the file. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_rxtx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 52733d

[dpdk-dev] [PATCH 4/7] net/mlx5: fix missing inline attributes

2016-11-24 Thread Nelio Laranjeiro
These functions must be forced inline for better performance. Fixes: 99c12dcca65d ("net/mlx5: handle Rx CQE compression") Fixes: 1d88ba171942 ("net/mlx5: refactor Tx data path") Fixes: 67fa62bc672d ("mlx5: support checksum offload") CC: stable at dpdk.org Signed-off-by: Nelio Laranjeiro Acked-by

[dpdk-dev] [PATCH 3/7] net/mlx5: use vector types to speed up processing

2016-11-24 Thread Nelio Laranjeiro
Let compiler automatically use the vector capabilities of the target machine to optimize instructions. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_prm.h | 7 + drivers/net/mlx5/mlx5_rxtx.c | 74 +++- 2 files

[dpdk-dev] [PATCH 2/7] net/mlx5: use work queue buffer as a raw buffer

2016-11-24 Thread Nelio Laranjeiro
Define a single work queue element type that encompasses them all. It includes control, Ethernet segment and raw data all grouped in a single place. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_prm.h | 13 -- drivers/net/mlx5/mlx5_rxtx.c | 103

[dpdk-dev] [PATCH 1/7] net/mlx5: prepare Tx vectorization

2016-11-24 Thread Nelio Laranjeiro
Prepare the code to write the Work Queue Element with vectorized instructions. Signed-off-by: Nelio Laranjeiro Signed-off-by: Elad Persiko Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_rxtx.c | 44 1 file changed, 28 insertions(+), 16 deletio

[dpdk-dev] [PATCH 0/7] net/mlx5: improve single core performance

2016-11-24 Thread Nelio Laranjeiro
This series applies on top of "[PATCH] eal: define generic vector types" [1][2] Using built-in vector types forces compilers to consider SIMD instructions in specific places in order to improve performance on both IBM POWER8 and Intel architectures. For example, testpmd single-thread I/O forwardi

[dpdk-dev] [PATCH 1/4] eventdev: introduce event driven programming model

2016-11-24 Thread Thomas Monjalon
2016-11-24 07:29, Jerin Jacob: > On Wed, Nov 23, 2016 at 07:39:09PM +0100, Thomas Monjalon wrote: > > 2016-11-18 11:14, Jerin Jacob: > > > +Eventdev API - EXPERIMENTAL > > > +M: Jerin Jacob > > > +F: lib/librte_eventdev/ > > > > OK to mark it experimental. > > What is the plan to remove the exper

[dpdk-dev] [PATCH 1/4] eventdev: introduce event driven programming model

2016-11-24 Thread Bruce Richardson
On Fri, Nov 18, 2016 at 11:14:59AM +0530, Jerin Jacob wrote: > In a polling model, lcores poll ethdev ports and associated > rx queues directly to look for packet. In an event driven model, > by contrast, lcores call the scheduler that selects packets for > them based on programmer-specified criter

[dpdk-dev] [virtio] virtio-net PMD cannot be used on Ubuntu 16.10

2016-11-24 Thread Hobywan Kenoby
Hello, While I (almost) never had a problem with testpmd, Ubuntu 16.10 make it fail: $ sudo ./testpmd -c 0x3 -n1 --no-huge -- --disable-hw-vlan --disable-rss -i --rxq=1 --txq=1 --rxd=256 --txd=256 EAL: Detected 4 lcore(s) EAL: Probing VFIO support... EAL: WARNING: cpu flags constant_tsc=yes nons

[dpdk-dev] [RFC PATCH] i40e: fix setting of default MAC address

2016-11-24 Thread Igor Ryzhov
While testing X710 cards in our lab I found that setting of default MAC address doesn't work correctly for i40e driver. I compared DPDK driver implementation with Linux driver implementation and found that a lot of code is lost in DPDK. I tried to make DPDK implementation similar to Linux implement

[dpdk-dev] dpdk/vpp and cross-version migration for vhost

2016-11-24 Thread Kavanagh, Mark B
> >On 11/24/2016 12:47 PM, Maxime Coquelin wrote: >> >> >> On 11/24/2016 01:33 PM, Yuanhan Liu wrote: >>> On Thu, Nov 24, 2016 at 09:30:49AM +, Kevin Traynor wrote: > On 11/24/2016 06:31 AM, Yuanhan Liu wrote: > > > On Tue, Nov 22, 2016 at 04:53:05PM +0200, Michael S. Tsirkin wrote: >>

[dpdk-dev] dpdk/vpp and cross-version migration for vhost

2016-11-24 Thread Kevin Traynor
On 11/24/2016 12:47 PM, Maxime Coquelin wrote: > > > On 11/24/2016 01:33 PM, Yuanhan Liu wrote: >> On Thu, Nov 24, 2016 at 09:30:49AM +, Kevin Traynor wrote: >>> > On 11/24/2016 06:31 AM, Yuanhan Liu wrote: > > On Tue, Nov 22, 2016 at 04:53:05PM +0200, Michael S. Tsirkin wrote: >>> >

[dpdk-dev] dpdk/vpp and cross-version migration for vhost

2016-11-24 Thread Yuanhan Liu
On Tue, Nov 22, 2016 at 04:53:05PM +0200, Michael S. Tsirkin wrote: > > > You keep assuming that you have the VM started first and > > > figure out things afterwards, but this does not work. > > > > > > Think about a cluster of machines. You want to start a VM in > > > a way that will ensure compa

[dpdk-dev] [RFC 2/9] ethdev: move queue id check in generic layer

2016-11-24 Thread Olivier Matz
Hi Ferruh, On Thu, 2016-11-24 at 10:59 +, Ferruh Yigit wrote: > On 11/24/2016 9:54 AM, Olivier Matz wrote: > > The check of queue_id is done in all drivers implementing > > rte_eth_rx_queue_count(). Factorize this check in the generic > > function. > > > > Note that the nfp driver was doing t

[dpdk-dev] [PATCH 00/56] Solarflare libefx-based PMD

2016-11-24 Thread Andrew Rybchenko
On 11/23/2016 10:21 PM, Stephen Hemminger wrote: > On Wed, 23 Nov 2016 10:49:33 +0300 > Andrew Rybchenko wrote: > >> I've tried to explain it above in item (2): >> >> >>> >> >>2. Another Solarflare PMD with in-kernel part (for control operations) >> is considered and could be added in

[dpdk-dev] Proposal for a new Committer model

2016-11-24 Thread Yuanhan Liu
On Wed, Nov 23, 2016 at 03:19:19PM -0500, Neil Horman wrote: > On Wed, Nov 23, 2016 at 11:41:20PM +0800, Yuanhan Liu wrote: > > On Wed, Nov 23, 2016 at 09:11:54AM -0500, Neil Horman wrote: > > > > Could we define some of the potential subtrees now and look to > > > > introduce them in the this rel

[dpdk-dev] dpdk/vpp and cross-version migration for vhost

2016-11-24 Thread Maxime Coquelin
On 11/24/2016 01:33 PM, Yuanhan Liu wrote: > On Thu, Nov 24, 2016 at 09:30:49AM +, Kevin Traynor wrote: >> > On 11/24/2016 06:31 AM, Yuanhan Liu wrote: >>> > > On Tue, Nov 22, 2016 at 04:53:05PM +0200, Michael S. Tsirkin wrote: >> > You keep assuming that you have the VM started firs

[dpdk-dev] [PATCH] doc: introduce PVP reference benchmark

2016-11-24 Thread Maxime Coquelin
On 11/24/2016 12:58 PM, Kevin Traynor wrote: > On 11/23/2016 09:00 PM, Maxime Coquelin wrote: >> Having reference benchmarks is important in order to obtain >> reproducible performance figures. >> >> This patch describes required steps to configure a PVP setup >> using testpmd in both host and gu

[dpdk-dev] [PATCH] doc: introduce PVP reference benchmark

2016-11-24 Thread Yuanhan Liu
First of all, thanks for the doc! It's a great one. On Wed, Nov 23, 2016 at 10:00:06PM +0100, Maxime Coquelin wrote: > +Qemu build > +~~ > + > + .. code-block:: console > + > +git clone git://dpdk.org/dpdk > +cd dpdk > +export RTE_SDK=$PWD > +make install T=x86_64-native-

[dpdk-dev] [PATCH v2 5/5] Revert "bonding: use existing enslaved device queues"

2016-11-24 Thread Jan Blunck
From: Ilya Maximets This reverts commit 5b7bb2bda5519b7800f814df64d4e015282140e5. It is necessary to reconfigure all queues every time because configuration can be changed. For example, if we're reconfiguring bonding device with new memory pool, already configured queues will still use the old

[dpdk-dev] [PATCH v2 4/5] net/bonding: Force reconfiguration of removed slave interfaces

2016-11-24 Thread Jan Blunck
After a slave interface is removed from a bond group it still has the configuration of the bond interface. Lets enforce that the slave interface is reconfigured after removal by resetting it. Signed-off-by: Jan Blunck --- drivers/net/bonding/rte_eth_bond_pmd.c | 3 +++ 1 file changed, 3 insertio

[dpdk-dev] [PATCH v2 3/5] ethdev: Add DPDK internal _rte_eth_dev_reset()

2016-11-24 Thread Jan Blunck
This is a helper for DPDK internal users to force a reconfiguration of a device. Signed-off-by: Jan Blunck --- lib/librte_ether/rte_ethdev.c | 16 lib/librte_ether/rte_ethdev.h | 13 + lib/librte_ether/rte_ether_version.map | 6 ++ 3 files chan

[dpdk-dev] [PATCH v2 2/5] ethdev: Free rx/tx_queues after releasing all queues

2016-11-24 Thread Jan Blunck
If all queues are released lets also free up the dev->data->rx/tx_queues to be able to properly reinitialize. Signed-off-by: Jan Blunck --- lib/librte_ether/rte_ethdev.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index

[dpdk-dev] [PATCH v2 1/5] ethdev: Call rx/tx_queue_release before rx/tx_queue_setup

2016-11-24 Thread Jan Blunck
If a queue has been setup before lets release it before we setup. Otherwise we might leak resources. Signed-off-by: Jan Blunck --- lib/librte_ether/rte_ethdev.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c i

[dpdk-dev] [PATCH v2 0/5] bonding: setup all queues of slave devices

2016-11-24 Thread Jan Blunck
Prior to 16.11 some drivers (e.g. virtio) still had problems if their queues where setup repeatedly. The bonding driver was working around the problem by reusing already setup queues. This series of patches changes the way how queue setup is done to give control to the driver to properly release al

[dpdk-dev] [PATCH 1/4] eventdev: introduce event driven programming model

2016-11-24 Thread Bruce Richardson
On Thu, Nov 24, 2016 at 07:29:13AM +0530, Jerin Jacob wrote: > On Wed, Nov 23, 2016 at 07:39:09PM +0100, Thomas Monjalon wrote: Just some comments on mine triggered by Thomas comments? > > + */ > > > +static inline int > > > +rte_event_enqueue(uint8_t dev_id, uint8_t port_id, struct rte_event *e

[dpdk-dev] [RFC 1/9] ethdev: clarify api comments of rx queue count

2016-11-24 Thread Olivier Matz
On Thu, 2016-11-24 at 10:52 +, Ferruh Yigit wrote: > On 11/24/2016 9:54 AM, Olivier Matz wrote: > > The API comments are not consistent between each other. > > > > The function rte_eth_rx_queue_count() returns the number of used > > descriptors on a receive queue. > > > > PR=52423 > > What i

[dpdk-dev] [PATCH] doc: introduce PVP reference benchmark

2016-11-24 Thread Kevin Traynor
On 11/23/2016 09:00 PM, Maxime Coquelin wrote: > Having reference benchmarks is important in order to obtain > reproducible performance figures. > > This patch describes required steps to configure a PVP setup > using testpmd in both host and guest. > > Not relying on external vSwitch ease integr

[dpdk-dev] [PATCH v2 1/2] net: remove dead driver names

2016-11-24 Thread Ferruh Yigit
On 11/21/2016 6:06 PM, David Marchand wrote: > Since commit b1fb53a39d88 ("ethdev: remove some PCI specific handling"), > rte_eth_dev_info_get() relies on dev->data->drv_name to report the driver > name to caller. > > Having the pmds set driver_info->driver_name in the pmds is useless, > since eth

[dpdk-dev] [PATCH] crypto/qat: fix to avoid buffer overwrite in OOP case

2016-11-24 Thread Fiona Trahe
In out-of-place operation, data is DMAed from source mbuf to destination mbuf. To avoid header data in dest mbuf being overwritten, the minimal data-set should be DMAed. Fixes: 39e0bee48e81 ("crypto/qat: rework request builder for performance") Signed-off-by: Fiona Trahe --- This patch depends o

[dpdk-dev] [RFC 2/9] ethdev: move queue id check in generic layer

2016-11-24 Thread Ferruh Yigit
On 11/24/2016 9:54 AM, Olivier Matz wrote: > The check of queue_id is done in all drivers implementing > rte_eth_rx_queue_count(). Factorize this check in the generic function. > > Note that the nfp driver was doing the check differently, which could > induce crashes if the queue index was too big

[dpdk-dev] [RFC 9/9] net/e1000: add handler for tx queue descriptor count

2016-11-24 Thread Olivier Matz
Like for TX, use a binary search algorithm to get the number of used Tx descriptors. PR=52423 Signed-off-by: Olivier Matz Acked-by: Ivan Boule --- drivers/net/e1000/e1000_ethdev.h | 5 +++- drivers/net/e1000/em_ethdev.c| 1 + drivers/net/e1000/em_rxtx.c | 51 +

[dpdk-dev] [RFC 8/9] net/e1000: optimize rx queue descriptor count

2016-11-24 Thread Olivier Matz
Use a binary search algorithm to find the first empty DD bit. The ring-empty and ring-full cases are managed separately as they are more likely to happen. PR=52423 Signed-off-by: Olivier Matz Acked-by: Ivan Boule --- drivers/net/e1000/em_rxtx.c | 55 +

[dpdk-dev] [RFC 7/9] net/igb: add handler for tx queue descriptor count

2016-11-24 Thread Olivier Matz
Like for TX, use a binary search algorithm to get the number of used Tx descriptors. PR=52423 Signed-off-by: Olivier Matz Acked-by: Ivan Boule --- drivers/net/e1000/e1000_ethdev.h | 5 +++- drivers/net/e1000/igb_ethdev.c | 1 + drivers/net/e1000/igb_rxtx.c | 51 +

[dpdk-dev] [RFC 6/9] net/igb: optimize rx queue descriptor count

2016-11-24 Thread Olivier Matz
Use a binary search algorithm to find the first empty DD bit. The ring-empty and ring-full cases are managed separately as they are more likely to happen. PR=52423 Signed-off-by: Olivier Matz Acked-by: Ivan Boule --- drivers/net/e1000/igb_rxtx.c | 55 +---

[dpdk-dev] [RFC 5/9] net/ixgbe: add handler for Tx queue descriptor count

2016-11-24 Thread Olivier Matz
Like for TX, use a binary search algorithm to get the number of used Tx descriptors. PR=52423 Signed-off-by: Olivier Matz Acked-by: Ivan Boule --- drivers/net/ixgbe/ixgbe_ethdev.c | 1 + drivers/net/ixgbe/ixgbe_ethdev.h | 4 ++- drivers/net/ixgbe/ixgbe_rxtx.c | 57 ++

[dpdk-dev] [RFC 4/9] net/ixgbe: optimize Rx queue descriptor count

2016-11-24 Thread Olivier Matz
Use a binary search algorithm to find the first empty DD bit. The ring-empty and ring-full cases are managed separately as they are more likely to happen. PR=52423 Signed-off-by: Olivier Matz Acked-by: Ivan Boule --- drivers/net/ixgbe/ixgbe_rxtx.c | 63 --

[dpdk-dev] [RFC 3/9] ethdev: add handler for Tx queue descriptor count

2016-11-24 Thread Olivier Matz
Implement the Tx counterpart of rte_eth_rx_queue_count() in ethdev API, which returns the number of used descriptors in a Tx queue. It can help an application to detect that a link is too slow and cannot send at the desired rate. In this case, the application can decide to decrease the rate, or dr

[dpdk-dev] [RFC 2/9] ethdev: move queue id check in generic layer

2016-11-24 Thread Olivier Matz
The check of queue_id is done in all drivers implementing rte_eth_rx_queue_count(). Factorize this check in the generic function. Note that the nfp driver was doing the check differently, which could induce crashes if the queue index was too big. By the way, also move the is_supported test before

[dpdk-dev] [RFC 1/9] ethdev: clarify api comments of rx queue count

2016-11-24 Thread Olivier Matz
The API comments are not consistent between each other. The function rte_eth_rx_queue_count() returns the number of used descriptors on a receive queue. PR=52423 Signed-off-by: Olivier Matz Acked-by: Ivan Boule --- lib/librte_ether/rte_ethdev.h | 11 +++ 1 file changed, 7 insertions(+)

[dpdk-dev] [RFC 0/9] get Rx and Tx used descriptors

2016-11-24 Thread Olivier Matz
This RFC patchset introduces a new ethdev API function rte_eth_tx_queue_count() which is the tx counterpart of rte_eth_rx_queue_count(). It implements this API on some Intel drivers for reference, and it also optimizes the implementation of rte_eth_rx_queue_count(). The usage of these functions ca

[dpdk-dev] [RFC 1/9] ethdev: clarify api comments of rx queue count

2016-11-24 Thread Ferruh Yigit
On 11/24/2016 9:54 AM, Olivier Matz wrote: > The API comments are not consistent between each other. > > The function rte_eth_rx_queue_count() returns the number of used > descriptors on a receive queue. > > PR=52423 What is this marker? > Signed-off-by: Olivier Matz > Acked-by: Ivan Boule A

[dpdk-dev] Proposal for a new Committer model

2016-11-24 Thread Thomas Monjalon
2016-11-23 15:13, Neil Horman: > Can either you or thomas provide some detail as to how you are doing patch > management between trees (details of the commands you use are what I would be > interested in). It sounds to me like there may be some optimization to be made > here before we even make cha

[dpdk-dev] [PATCH 5/5] net/virtio: fix Tso when mbuf is shared

2016-11-24 Thread Olivier Matz
With virtio, doing tso requires to modify the network packet data: - the dpdk API requires to set the l4 checksum to an Intel-Nic-like pseudo header checksum that does not include the ip length - the virtio peer expects that the l4 checksum is a standard pseudo header checksum. This is a pro

[dpdk-dev] [PATCH 4/5] mbuf: new helper to copy data from a mbuf

2016-11-24 Thread Olivier Matz
Signed-off-by: Olivier Matz --- app/test/test_mbuf.c | 7 +++ lib/librte_mbuf/rte_mbuf.h | 32 +++- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/app/test/test_mbuf.c b/app/test/test_mbuf.c index 5f1bc5d..73fd7df 100644 --- a/app/test/test_m

[dpdk-dev] [PATCH 3/5] mbuf: new helper to write data in a mbuf chain

2016-11-24 Thread Olivier Matz
Introduce a new helper to write data in a chain of mbufs, spreading it in the segments. Signed-off-by: Olivier Matz --- app/test/test_mbuf.c | 21 +++ lib/librte_mbuf/rte_mbuf.c | 44 +++ lib/librte_mbuf/rte_mbuf.h | 50

[dpdk-dev] [PATCH 2/5] mbuf: new helper to check if a mbuf is shared

2016-11-24 Thread Olivier Matz
Introduce 2 new helpers rte_pktmbuf_seg_is_shared() and rte_pktmbuf_data_is_shared() to check if the packet data inside a mbuf is shared (and shall not be modified). To avoid a "discards const qualifier" error, add a const to the argument of rte_mbuf_from_indirect(). Signed-off-by: Olivier Matz

[dpdk-dev] [PATCH 1/5] mbuf: remove const attribute in mbuf read function

2016-11-24 Thread Olivier Matz
There is no good reason to have this const attribute: rte_pktmbuf_read() returns a pointer which is either in a private buffer, or in the mbuf. In the first case, it is clearly not const. In the second case, it is up to the user to check that the mbuf is not shared and that data can be modified.

[dpdk-dev] [PATCH 0/5] virtio/mbuf: fix virtio tso with shared mbufs

2016-11-24 Thread Olivier Matz
This patchset fixes the transmission of cloned mbufs when using virtio + TSO. The problem is we need to fix the L4 checksum in the packet, but it should be considered as read-only, as pointed-out by Stephen here: http://dpdk.org/ml/archives/dev/2016-October/048873.html Unfortunatly the patchset is

[dpdk-dev] dpdk/vpp and cross-version migration for vhost

2016-11-24 Thread Kevin Traynor
On 11/24/2016 06:31 AM, Yuanhan Liu wrote: > On Tue, Nov 22, 2016 at 04:53:05PM +0200, Michael S. Tsirkin wrote: You keep assuming that you have the VM started first and figure out things afterwards, but this does not work. Think about a cluster of machines. You want to start a

[dpdk-dev] [PATCH] doc: introduce PVP reference benchmark

2016-11-24 Thread Maxime Coquelin
On 11/24/2016 06:07 AM, Yuanhan Liu wrote: > First of all, thanks for the doc! It's a great one. Thanks. I would be interested to know if you have other tuning I don't mention in this doc. > > On Wed, Nov 23, 2016 at 10:00:06PM +0100, Maxime Coquelin wrote: >> +Qemu build >> +~~ >> + >>

[dpdk-dev] Recall: [PATCH 1/1] net/i40e: enable auto link update for XXV710

2016-11-24 Thread Zhang, Qi Z
Zhang, Qi Z would like to recall the message, "[PATCH 1/1] net/i40e: enable auto link update for XXV710".

[dpdk-dev] Recall: [PATCH 1/1] net/i40e: enable auto link update for XXV710

2016-11-24 Thread Zhang, Qi Z
Zhang, Qi Z would like to recall the message, "[PATCH 1/1] net/i40e: enable auto link update for XXV710".

[dpdk-dev] [PATCH 1/4] eventdev: introduce event driven programming model

2016-11-24 Thread Jerin Jacob
On Wed, Nov 23, 2016 at 07:39:09PM +0100, Thomas Monjalon wrote: > Hi Jerin, Hi Thomas, > > Thanks for bringing a big new piece in DPDK. > > I made some comments below. Thanks for the review. > > 2016-11-18 11:14, Jerin Jacob: > > +Eventdev API - EXPERIMENTAL > > +M: Jerin Jacob > > +F: lib