[dpdk-dev] [PATCH 5/5] examples_ip_pipeline: fix possible string overrun

2015-08-31 Thread Stephen Hemminger
If a long name was passed the code would clobber memory with strcpy. Signed-off-by: Stephen Hemminger --- examples/ip_pipeline/app.h | 2 +- examples/ip_pipeline/init.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/ip_pipeline/app.h

[dpdk-dev] [PATCH 4/5] examples_ip_pipeline: remove useless code

2015-08-31 Thread Stephen Hemminger
Code here checks return from strdup() in only one place in this whole module, and then does nothing useful by setting one value that is then cleared. Just remove the check. Signed-off-by: Stephen Hemminger --- examples/ip_pipeline/config_parse.c | 3 --- 1 file changed, 3 deletions(-) diff

[dpdk-dev] [PATCH 3/5] example_ip_pipeline: fix sizeof() on memcpy

2015-08-31 Thread Stephen Hemminger
Found by Coverity: Sizeof not portable (SIZEOF_MISMATCH) suspicious_sizeof: Passing argument >cmds[app->n_cmds] of type cmdline_parse_ctx_t * and argument n_cmds * 8UL /* sizeof (cmdline_parse_ctx_t *) */ to function memcpy is suspicious. In this case, sizeof (cmdline_parse_ctx_t *) is

[dpdk-dev] [PATCH 2/5] example_ip_pipeline: avoid strncpy issue

2015-08-31 Thread Stephen Hemminger
If name is so long that it fills buffer, then string would not be null terminated. Signed-off-by: Stephen Hemminger --- examples/ip_pipeline/config_parse_tm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/ip_pipeline/config_parse_tm.c

[dpdk-dev] [PATCH 1/5] examples_ip_pipeline: fix typo's

2015-08-31 Thread Stephen Hemminger
Coverity found these as dead-code and/or copy-paste bugs. Signed-off-by: Stephen Hemminger --- examples/ip_pipeline/config_parse.c | 2 +- examples/ip_pipeline/config_parse_tm.c | 2 +- examples/ip_pipeline/pipeline/pipeline_flow_classification.c |

[dpdk-dev] [PATCH 0/5] fixup ip pipeline examples

2015-08-31 Thread Stephen Hemminger
Lots of little trivial bugs/typos here. Let's not start users off with a bad example. Stephen Hemminger (5): examples_ip_pipeline: fix typo's example_ip_pipeline: avoid strncpy issue example_ip_pipeline: fix sizeof() on memcpy examples_ip_pipeline: remove useless code

[dpdk-dev] [RFC PATCH 8/8] app/testpmd: modify the mac of csum forwarding

2015-08-31 Thread Jijiang Liu
The change will affect on the csum fwd performance. But I also think the change is necessary, or we cannot use csumonly fwd mode in a VM. Signed-off-by: Jijiang Liu --- app/test-pmd/csumonly.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/app/test-pmd/csumonly.c

[dpdk-dev] [RFC PATCH 7/8] examples/vhost:support tso in vhost sample

2015-08-31 Thread Jijiang Liu
Change the vhost sample in order to support and test TSO offload. Signed-off-by: Jijiang Liu --- examples/vhost/main.c | 20 ++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 1b137b9..482f7af 100644 ---

[dpdk-dev] [RFC PATCH 6/8] lib/librte_vhost:extend supported vhost features

2015-08-31 Thread Jijiang Liu
Add TSO into supported vhost features Signed-off-by: Jijiang Liu --- lib/librte_vhost/virtio-net.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c index b520ec5..2f9ac25 100644 ---

[dpdk-dev] [RFC PATCH 5/8] lib/librte_vhost:dequeue vhost TSO offload

2015-08-31 Thread Jijiang Liu
Dequeue vhost TSO offload Signed-off-by: Jijiang Liu --- lib/librte_vhost/vhost_rxtx.c | 29 - 1 files changed, 28 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c index 0d07338..9adfdb1 100644 ---

[dpdk-dev] [RFC PATCH 4/8] driver/virtio:enqueue TSO offload

2015-08-31 Thread Jijiang Liu
Enqueue TSO4/6 offload. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_rxtx.c | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c index c5b53bb..4c2d838 100644 ---

[dpdk-dev] [RFC PATCH 3/8] driver/virtio: record virtual address of virtio net header

2015-08-31 Thread Jijiang Liu
Record virtual address of virtio net header. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 465d3cd..cb5dfee 100644 ---

[dpdk-dev] [RFC PATCH 2/8] driver/virtio: add virtual addr for virtio net header

2015-08-31 Thread Jijiang Liu
The virtual addr for virtio net header need to be recorded. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtqueue.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtqueue.h b/drivers/net/virtio/virtqueue.h index 7789411..530f840 100644 ---

[dpdk-dev] [RFC PATCH 1/8] driver/virtio:add vhost TSO support capability

2015-08-31 Thread Jijiang Liu
Extend the VIRTIO_PMD_GUEST_FEATURES for supporting vhost TSO. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.h |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.h b/drivers/net/virtio/virtio_ethdev.h index

[dpdk-dev] [RFC PATCH 0/8] Add vhost TSO capability

2015-08-31 Thread Jijiang Liu
The patch set add the negotiation between us-vhost and virtio-net for vhost TSO feature, and enqueue/dequeue vhost TSO offload, and change vhost sample and csum application to test these. Jijiang Liu (8): add host TSO support in virtio_ethdev.h file add virtual addr for virtio net header

[dpdk-dev] [RFC PATCH 0/6] remove pci driver from vdevs

2015-08-31 Thread Thomas Monjalon
2015-08-31 08:59, Neil Horman: > On Mon, Aug 31, 2015 at 10:23:33AM +, Iremonger, Bernard wrote: > > The purpose of this RFC is to remove the need for a PCI device driver > > from Vdev's that that do not use a PCI driver. Removing the PCI driver > > is implemented in the ethdev changes. I

[dpdk-dev] [RFC PATCH 3/6] null: remove pci device driver

2015-08-31 Thread Thomas Monjalon
2015-08-27 16:40, Bernard Iremonger: > remove rte_null_pmd and pci_dev. > > Signed-off-by: Bernard Iremonger [...] > - eth_dev->pci_dev = pci_dev; > - eth_dev->driver = _null_pmd; > + eth_dev->pci_dev = NULL; Simple comment: Why a driver should reset a PCI field if it does not care

[dpdk-dev] [RFC PATCH 1/6] librte_ether: add fields from rte_pci_driver to rte_eth_dev and rte_eth_dev_data.

2015-08-31 Thread Thomas Monjalon
2015-08-27 16:40, Bernard Iremonger: > add dev_flags to rte_eth_dev, add macros for dev_flags. > add numa_node to rte_eth_dev_data. > use dev_type to distinguish between vdev's and pdev's. > remove unused RTE_ETH_DEV_MAX. > > Signed-off-by: Bernard Iremonger [...] > @@ -424,7 +425,10 @@

[dpdk-dev] [RFC PATCH 3/6] null: remove pci device driver

2015-08-31 Thread Iremonger, Bernard
Hi Thomas, > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Monday, August 31, 2015 3:11 PM > To: Iremonger, Bernard > Cc: dev at dpdk.org; david.marchand at 6wind.com > Subject: Re: [RFC PATCH 3/6] null: remove pci device driver > > 2015-08-27

[dpdk-dev] [RFC PATCH] vhost: Add VHOST PMD

2015-08-31 Thread Tetsuya Mukawa
On 2015/08/31 14:14, Ouyang, Changchun wrote: > > +struct pmd_internal { > + TAILQ_ENTRY(pmd_internal) next; > + char *dev_name; > + char *iface_name; > + unsigned nb_rx_queues; > + unsigned nb_tx_queues; > + rte_atomic16_t xfer; > + > + struct vhost_queue >

[dpdk-dev] [PATCH RFC] mbuf/ip_frag: Move mbuf chaining to common code

2015-08-31 Thread Simon Kagstrom
Chaining/segmenting mbufs can be useful in many places, so make it global. Signed-off-by: Simon Kagstrom Signed-off-by: Johan Faltstrom --- NOTE! Only compile-tested. We were looking for packet segmenting functionality in the MBUF API but didn't find it. This patch moves the implementation,

[dpdk-dev] [PATCH] hash: fix wrong size memory calculation

2015-08-31 Thread Pablo de Lara
When calculating the size for the table which allocates the keys, size was calculated wrongly from multiplying two 32-bit variables, resulting on a 32-bit number, before casting to 64-bit, so maximum size was 4G. Fixes: 48a399119619 ("hash: replace with cuckoo hash implementation")

[dpdk-dev] Removal of IP version from packet offload feature flags

2015-08-31 Thread Thomas Monjalon
2015-08-31 12:40, Martin Dra?ar: > Dne 31.8.2015 v 10:56 Thomas Monjalon napsal(a): > > In order to keep compatibility with your old code, you have to disable > > RTE_NEXT_ABI in your configuration file (.config). > > I have done this and the code works, but because the project is in > prototype

[dpdk-dev] Broken RSS hash computation on Intel 82574L

2015-08-31 Thread Martin Drašar
Hi, I am using RSS to get identical hash for both directions of a flow. Everything is working as it should with the Intel 82599ES, but when I run the same code with the Intel 82574L, then the hash is not calculated correctly and returns 0 as a hash value for all flows. I could use the Toeplitz

[dpdk-dev] [RFC PATCH v2] vhost: Add VHOST PMD

2015-08-31 Thread Tetsuya Mukawa
The patch introduces a new PMD. This PMD is implemented as thin wrapper of librte_vhost. It means librte_vhost is also needed to compile the PMD. The PMD can have 'iface' parameter like below to specify a path to connect to a virtio-net device. $ ./testpmd -c f -n 4 --vdev

[dpdk-dev] [RFC PATCH 0/6] remove pci driver from vdevs

2015-08-31 Thread Iremonger, Bernard
Hi Keith, Neil, > >> > On Thu, Aug 27, 2015 at 04:40:35PM +0100, Bernard Iremonger wrote: > >> > > There is a dummy pci driver in the vdev PMD's at present. > >> > > This RFC proposes to remove the pci driver from the vdev PMD's. > >> > > Changes have been made to librte_ether to handle vdevs

[dpdk-dev] flow_director_filter error!!

2015-08-31 Thread Mcnamara, John
> From: Navneet Rao [mailto:navneet.rao at oracle.com] > Sent: Friday, August 28, 2015 11:11 PM > To: De Lara Guarch, Pablo; Wu, Jingjing; Mcnamara, John; dev at dpdk.org > Subject: RE: [dpdk-dev] flow_director_filter error!! > > Hi John et al: > I am using the X540, and setting it up to receive

[dpdk-dev] Removal of IP version from packet offload feature flags

2015-08-31 Thread Thomas Monjalon
2015-08-31 10:03, Martin Dra?ar: > I just tried to upgrade to 2.1.0 and suddenly my code stopped compiling, > because of using PKT_RX_IPV4_HDR feature flag and the like. In the > rte_mbuf.h there is this code: > > > #ifndef RTE_NEXT_ABI > > #define PKT_RX_IPV4_HDR (1ULL << 5) /**< RX packet

[dpdk-dev] [RFC PATCH 0/6] remove pci driver from vdevs

2015-08-31 Thread Iremonger, Bernard
Hi John, > -Original Message- > From: John W. Linville [mailto:linville at tuxdriver.com] > Sent: Friday, August 28, 2015 6:52 PM > To: Iremonger, Bernard > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [RFC PATCH 0/6] remove pci driver from vdevs > > On Fri, Aug 28, 2015 at 08:15:47AM

[dpdk-dev] Removal of IP version from packet offload feature flags

2015-08-31 Thread Martin Drašar
Hi, I just tried to upgrade to 2.1.0 and suddenly my code stopped compiling, because of using PKT_RX_IPV4_HDR feature flag and the like. In the rte_mbuf.h there is this code: > #ifndef RTE_NEXT_ABI > #define PKT_RX_IPV4_HDR (1ULL << 5) /**< RX packet with IPv4 header. */ > #define

[dpdk-dev] [PATCH 2/3] virtio: fix Coverity unsigned warnings

2015-08-31 Thread Stephen Hemminger
On Mon, 31 Aug 2015 01:38:44 + "Ouyang, Changchun" wrote: > Hi Stephen, > > > -Original Message- > > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > > Sent: Saturday, August 29, 2015 12:24 AM > > To: Xie, Huawei; Ouyang, Changchun > > Cc: dev at dpdk.org; Stephen

[dpdk-dev] [PATCH v1] net: i40e: add VLAN tag size to RXMAX

2015-08-31 Thread Vlad Zolotarov
HW requires it regardless the presence of the VLAN tag in the received frame. Otherwise Rx frames are being filtered out on the MTU-4 boundary. Signed-off-by: Vlad Zolotarov --- drivers/net/i40e/i40e_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[dpdk-dev] i40e: XL710 Rx filters out frames above 1510 bytes

2015-08-31 Thread Vlad Zolotarov
On 08/30/15 16:03, Vlad Zolotarov wrote: > Hi, I have the most strange issue on a setup of 2 pairs of connected > back to back XL710 cards. > It seems that frames above 1510 bytes are being filtered out by an > i40e PMD receiver. > The same setup works perfectly when I use Linux drivers on

[dpdk-dev] [RFC PATCH 0/6] remove pci driver from vdevs

2015-08-31 Thread Neil Horman
On Mon, Aug 31, 2015 at 10:23:33AM +, Iremonger, Bernard wrote: > Hi John, > > > -Original Message- > > From: John W. Linville [mailto:linville at tuxdriver.com] > > Sent: Friday, August 28, 2015 6:52 PM > > To: Iremonger, Bernard > > Cc: dev at dpdk.org > > Subject: Re: [dpdk-dev]