Re: [dpdk-dev] [PATCH v2] mem: fix undefined behavior in NUMA code

2018-09-20 Thread Ilya Maximets
On 20.09.2018 15:50, Anatoly Burakov wrote: > When NUMA-aware hugepages config option is set, we rely on > libnuma to tell the kernel to allocate hugepages on a specific > NUMA node. However, we allocate node mask before we check if > NUMA is available in the first place, which, according to > the

Re: [dpdk-dev] [PATCH v2 2/3] kni: fix kni fifo synchronization

2018-09-20 Thread Honnappa Nagarahalli
> > > > > > > > > > > > @@ -69,5 +89,13 @@ kni_fifo_get(struct rte_kni_fifo *fifo, > > > > > > void **data, unsigned num) static inline uint32_t > > > > > > kni_fifo_count(struct rte_kni_fifo *fifo) { > > > > > > +#ifdef RTE_USE_C11_MEM_MODEL > > > > > > + unsigned fifo_write = __atomic_loa

[dpdk-dev] [PATCH] doc: update feature support for cryptodevs

2018-09-20 Thread Anoob Joseph
Adding 3DES-ECB & AES-XTS to the list of ciphers supported Signed-off-by: Anoob Joseph --- doc/guides/cryptodevs/features/default.ini | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/cryptodevs/features/default.ini b/doc/guides/cryptodevs/features/default.ini index 92a7ccf..81

Re: [dpdk-dev] [PATCH v2 2/3] kni: fix kni fifo synchronization

2018-09-20 Thread Jerin Jacob
-Original Message- > Date: Fri, 21 Sep 2018 05:48:44 + > From: Honnappa Nagarahalli > To: Jerin Jacob > CC: "Phil Yang (Arm Technology China)" , "dev@dpdk.org" > , nd , "kkokkilaga...@caviumnetworks.com" > , "Gavin Hu (Arm Technology China)" > , "ferruh.yi...@intel.com" > Subject:

Re: [dpdk-dev] [PATCH v2 2/3] kni: fix kni fifo synchronization

2018-09-20 Thread Honnappa Nagarahalli
> > > -Original Message- > > > > Date: Wed, 19 Sep 2018 21:42:39 +0800 > > > > From: Phil Yang > > > > To: dev@dpdk.org > > > > CC: n...@arm.com, jerin.ja...@caviumnetworks.com, > > > > kkokkilaga...@caviumnetworks.com, honnappa.nagaraha...@arm.com, > > > > gavin...@arm.com > > > > Subject

Re: [dpdk-dev] [PATCH v3 2/2] examples/vdpa: introduce a new sample for vDPA

2018-09-20 Thread Wang, Xiao W
Hi Xiaolong, > -Original Message- > From: Ye, Xiaolong > Sent: Friday, September 21, 2018 6:28 AM > To: dev@dpdk.org; Maxime Coquelin ; Bie, > Tiwei ; Wang, Zhihong > Cc: Wang, Xiao W ; Rami Rosen > ; Wang, Haiyue ; Ye, > Xiaolong > Subject: [PATCH v3 2/2] examples/vdpa: introduce a new

Re: [dpdk-dev] [PATCH v4 1/5] eventdev: add eth Tx adapter APIs

2018-09-20 Thread Jerin Jacob
-Original Message- > Date: Thu, 20 Sep 2018 23:11:12 +0530 > From: Nikhil Rao > To: jerin.ja...@caviumnetworks.com, olivier.m...@6wind.com, > marko.kovace...@intel.com, john.mcnam...@intel.com > CC: dev@dpdk.org, Nikhil Rao > Subject: [PATCH v4 1/5] eventdev: add eth Tx adapter APIs > X-

[dpdk-dev] [PATCH v4] doc: Clarify IOMMU usage with "uio_pci_generic" kernel module

2018-09-20 Thread tone.zhang
If the devices used for DPDK are bound to the "uio_pci_generic" kernel module, the IOMMU should be disabled in order not to break the IO transmission because of the virtual / physical address mapping. The patch clarifies the IOMMU configurations on both x86_64 and arm64 systems. Signed-off-by: to

Re: [dpdk-dev] [PATCH v3] doc: Clarify IOMMU usage with "uio_pci_generic" kernel module

2018-09-20 Thread Tone Zhang (Arm Technology China)
Hi Luca and Bruce, I appreciate for the comments. I ran more test cases in my test bed, and I will update the patch and push v4 soon. Thanks a lot for your help! Br, Tone -Original Message- From: Luca Boccassi Sent: Wednesday, September 19, 2018 7:54 PM To: Bruce Richardson ; Tone Zh

Re: [dpdk-dev] Incorrect latencystats implementation

2018-09-20 Thread longtb5
Hi Reshma, > -Original Message- > From: reshma.pat...@intel.com [mailto:reshma.pat...@intel.com] > Sent: Thursday, September 20, 2018 8:09 PM > To: long...@viettel.com.vn > Cc: dev@dpdk.org > Subject: RE: Incorrect latencystats implementation > > > > > -Original Message- > > Fro

Re: [dpdk-dev] [PATCH] vmxnet3: stats_reset implementation

2018-09-20 Thread Ferruh Yigit
On 9/20/2018 7:37 AM, Yogev Chaimovich wrote: > 'stats_reset()' callback was missing because the device backend doesn’t > support it. > This commit adds a workaround to this and implements the callback by taking a > snapshot of the stats (SNAPSHOT) each time 'stats_reset()' is called. > When gett

Re: [dpdk-dev] [dpdk-stable] [PATCH] net: fix Intel prepare function for IP checksum offload

2018-09-20 Thread Ferruh Yigit
On 9/20/2018 3:53 PM, Ananyev, Konstantin wrote: > > >> >> Current Intel tx prepare function does not properly handle the >> case where only IP checksum is requested, without requesting >> any L4 checksum or TSO: IP checksum is not properly reset to 0 >> and output packet may contain invalid IP c

Re: [dpdk-dev] [PATCH] app/testpmd: fix missing jump action in flow action

2018-09-20 Thread Ferruh Yigit
On 9/20/2018 5:11 PM, Iremonger, Bernard wrote: >> -Original Message- >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Reshma Pattan >> Sent: Wednesday, September 19, 2018 3:01 PM >> To: adrien.mazarg...@6wind.com; dev@dpdk.org >> Cc: Pattan, Reshma >> Subject: [dpdk-dev] [PATCH] ap

Re: [dpdk-dev] [PATCH v2] app/testpmd: add check for Rx offload security flag

2018-09-20 Thread Ferruh Yigit
On 9/10/2018 5:55 PM, Iremonger, Bernard wrote: > >> -Original Message- >> From: Laatz, Kevin >> Sent: Monday, September 10, 2018 5:29 PM >> To: dev@dpdk.org >> Cc: Iremonger, Bernard ; Laatz, Kevin >> >> Subject: [PATCH v2] app/testpmd: add check for Rx offload security flag >> >> Add a

Re: [dpdk-dev] [PATCH v2] net/pcap: Generate unique MAC addresses for interfaces

2018-09-20 Thread Ferruh Yigit
On 9/11/2018 12:36 PM, Ferruh Yigit wrote: > On 9/10/2018 4:52 PM, Cian Ferriter wrote: >> The MAC addresses are generated in a similar manner as in the TAP PMD, >> where the address is based on the number of PCAP ports created. >> >> This is useful for the purposes of debugging DPDK applications u

Re: [dpdk-dev] [PATCH 0/2] net/failsafe: support runtime queue setup

2018-09-20 Thread Ferruh Yigit
On 9/19/2018 4:02 PM, Gaëtan Rivet wrote: > Hi, > > for the series, > Acked-by: Gaetan Rivet Series applied to dpdk-next-net/master, thanks. > > On Fri, Aug 31, 2018 at 05:09:36PM +0100, Andrew Rybchenko wrote: >> The patch series should be applied on top of [1] and [2]. >> >> [1] https://patc

Re: [dpdk-dev] [PATCH v2 0/4] net/failsafe: support deferred queue start

2018-09-20 Thread Ferruh Yigit
On 9/20/2018 2:55 PM, Andrew Rybchenko wrote: > Since the topic is raised in multicast address list patchset, I'd like > to highlight it here as well. Current version uses failsafe ops directly > on sync to synchronize queues state which iterates over all sub-devices. > For already in sync sub-devi

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/failsafe: fix crash on slave queue release

2018-09-20 Thread Ferruh Yigit
On 9/19/2018 4:14 PM, Gaëtan Rivet wrote: > On Fri, Aug 31, 2018 at 05:16:32PM +0100, Andrew Rybchenko wrote: >> From: Igor Romanov >> >> Releasing a queue that is already released by slave may cause a >> segmentation fault. For example, after a successfull device >> configuration a queue is set u

Re: [dpdk-dev] [PATCH] net/ifc: add live migration support

2018-09-20 Thread Ferruh Yigit
On 9/10/2018 12:01 PM, Xiao Wang wrote: > IFCVF can help to log dirty page in live migration stage, > each queue's index can be read and configured to support > VHOST_USER_GET_VRING_BASE and VHOST_USER_SET_VRING_BASE. > > Signed-off-by: Xiao Wang <...> > +static void > +ifcvf_used_ring_log(stru

Re: [dpdk-dev] [PATCH 10/17] net/qede: reorganize filter code

2018-09-20 Thread Ferruh Yigit
On 9/8/2018 9:30 PM, Rasesh Mody wrote: > From: Shahed Shaikh > > - rename qede_fdir.c to qede_filter.c > - move all filter code to qede_filter.c > > Signed-off-by: Shahed Shaikh > --- > drivers/net/qede/Makefile |2 +- > drivers/net/qede/qede_ethdev.c | 687 +--

Re: [dpdk-dev] [PATCH v3 17/20] examples: add external memory example app

2018-09-20 Thread Ananyev, Konstantin
Hi Anatoly > > Introduce an example application demonstrating the use of > external memory support. This is a simple application based on > skeleton app, but instead of using internal DPDK memory, it is > using externally allocated memory. > > The RX/TX and init path is a carbon-copy of skelet

Re: [dpdk-dev] KNI performance is not what is claimed

2018-09-20 Thread Jay Rolette
On Thu, Sep 20, 2018 at 3:16 PM Stephen Hemminger < step...@networkplumber.org> wrote: > On Thu, 20 Sep 2018 15:02:53 -0500 > Jay Rolette wrote: > > > On Thu, Sep 20, 2018 at 1:11 PM Stephen Hemminger < > > step...@networkplumber.org> wrote: > > > > > I wonder if KNI is claiming performance that

[dpdk-dev] [PATCH] devtools: move forbidden tokens awk script to a separate file

2018-09-20 Thread Arnon Warshavsky
The awk code previously read inline in checkpatches.pl was using -d which is a bash option, while bash is not the default shell in all distributions. Now moved to be read from a separate file. Signed-off-by: Arnon Warshavsky --- devtools/check-forbidden-tokens.awk | 68 ++

[dpdk-dev] ipv4-frag support for DPDK?

2018-09-20 Thread Sungho Hong
Hello DPDK dev, I was struggling with the packet fragmentation, since the dpdk application(l3fwd, ip-fragmentation, ip-assemble) did not recognized the received packet as the ipv4 header. At first, I have crafted my own packets when sending ipv4 headers so I assumed that I was crafting the pack

Re: [dpdk-dev] KNI performance is not what is claimed

2018-09-20 Thread Stephen Hemminger
On Thu, 20 Sep 2018 15:02:53 -0500 Jay Rolette wrote: > On Thu, Sep 20, 2018 at 1:11 PM Stephen Hemminger < > step...@networkplumber.org> wrote: > > > I wonder if KNI is claiming performance that was never measured on current > > CPU, OS, DPDK. > > > > With single stream and TCP testing on IXG

Re: [dpdk-dev] KNI performance is not what is claimed

2018-09-20 Thread Stephen Hemminger
On Thu, 20 Sep 2018 15:02:53 -0500 Jay Rolette wrote: > On Thu, Sep 20, 2018 at 1:11 PM Stephen Hemminger < > step...@networkplumber.org> wrote: > > > I wonder if KNI is claiming performance that was never measured on current > > CPU, OS, DPDK. > > > > With single stream and TCP testing on IXG

Re: [dpdk-dev] KNI performance is not what is claimed

2018-09-20 Thread Jay Rolette
On Thu, Sep 20, 2018 at 1:11 PM Stephen Hemminger < step...@networkplumber.org> wrote: > I wonder if KNI is claiming performance that was never measured on current > CPU, OS, DPDK. > > With single stream and TCP testing on IXGBE (DPDK), I see lowest > performance with KNI. > > Rx

[dpdk-dev] KNI performance is not what is claimed

2018-09-20 Thread Stephen Hemminger
I wonder if KNI is claiming performance that was never measured on current CPU, OS, DPDK. With single stream and TCP testing on IXGBE (DPDK), I see lowest performance with KNI. Rx Tx KNI 3.2 Gbit/sec1.3 Gbit/sec TAP 4.9 4.7

Re: [dpdk-dev] [PATCH] vmxnet3: stats_reset implementation

2018-09-20 Thread Yong Wang
-Original Message- From: dev on behalf of Yogev Chaimovich Date: Wednesday, September 19, 2018 at 11:37 PM To: "dev@dpdk.org" Cc: Yogev Chaimovich Subject: [dpdk-dev] [PATCH] vmxnet3: stats_reset implementation 'stats_reset()' callback was missing because the device backend doesn’

Re: [dpdk-dev] [PATCH] drivers/net: do not redefine bool

2018-09-20 Thread Shaikh, Shahed
> -Original Message- > From: Thomas Monjalon > Sent: Thursday, September 20, 2018 5:49 AM > To: Ferruh Yigit ; Rahul Lakkireddy > ; Wenzhuo Lu ; Qi > Zhang ; Xiao Wang ; > Konstantin Ananyev ; Mody, Rasesh > ; Patil, Harish ; Shaikh, > Shahed ; Yong Wang > Cc: dev@dpdk.org > Subject: [PAT

[dpdk-dev] [PATCH v4 5/5] doc: add event eth Tx adapter guide

2018-09-20 Thread Nikhil Rao
Add programmer's guide doc to explain the use of the Event Ethernet Tx Adapter library. Signed-off-by: Nikhil Rao Acked-by: Jerin Jacob --- MAINTAINERS| 1 + .../prog_guide/event_ethernet_tx_adapter.rst | 165 + doc/guides/prog

[dpdk-dev] [PATCH v4 4/5] eventdev: add auto test for eth Tx adapter

2018-09-20 Thread Nikhil Rao
This patch adds tests for the eth Tx adapter APIs. It also tests the data path for the rte_service function based implementation of the APIs. Signed-off-by: Nikhil Rao Acked-by: Jerin Jacob --- test/test/test_event_eth_tx_adapter.c | 699 ++ MAINTAINERS

[dpdk-dev] [PATCH v4 2/5] eventdev: add caps API and PMD callbacks for eth Tx adapter

2018-09-20 Thread Nikhil Rao
The caps API allows the application to query if the transmit stage is implemented in the eventdev PMD or uses the common rte_service function. The PMD callbacks support the eventdev PMD implementation of the adapter. Signed-off-by: Nikhil Rao Acked-by: Jerin Jacob --- lib/librte_eventdev/rte_ev

[dpdk-dev] [PATCH v4 3/5] eventdev: add eth Tx adapter implementation

2018-09-20 Thread Nikhil Rao
This patch implements the Tx adapter APIs by invoking the corresponding eventdev PMD callbacks and also provides the common rte_service function based implementation when the eventdev PMD support is absent. Signed-off-by: Nikhil Rao --- config/rte_config.h|1 + li

[dpdk-dev] [PATCH v4 1/5] eventdev: add eth Tx adapter APIs

2018-09-20 Thread Nikhil Rao
The ethernet Tx adapter abstracts the transmit stage of an event driven packet processing application. The transmit stage may be implemented with eventdev PMD support or use a rte_service function implemented in the adapter. These APIs provide a common configuration and control interface and an tra

Re: [dpdk-dev] [PATCH v6] app/testpmd: add forwarding mode to simulate a noisy neighbour

2018-09-20 Thread Kevin Traynor
On 09/18/2018 10:35 AM, Jens Freimann wrote: > This adds a new forwarding mode to testpmd to simulate > more realistic behavior of a guest machine engaged in receiving > and sending packets performing Virtual Network Function (VNF). > > The goal is to enable a simple way of measuring performance i

Re: [dpdk-dev] [PATCH 00/17] net/qede: add enhancements and fixes

2018-09-20 Thread Ferruh Yigit
On 9/8/2018 9:30 PM, Rasesh Mody wrote: > This patchset adds enhancements and fixes for QEDE PMD. > > Rasesh Mody (8): > net/qede/base: fix to handle stag update event > net/qede/base: add support for OneView APIs > net/qede/base: get pre-negotiated values for stag and bw > net/qede: fix t

Re: [dpdk-dev] [PATCH v2 07/13] ethdev: add device matching field name

2018-09-20 Thread Thomas Monjalon
19/09/2018 18:03, Gaetan Rivet: > The eth device class can now parse a field name, > matching the eth_dev name with one passed as > >"class=eth,name=xx" I am not sure what is the purpose of the "name" property. I think we should not need it to choose a port by its ethdev name. If you are

Re: [dpdk-dev] [PATCH] app/testpmd: fix missing jump action in flow action

2018-09-20 Thread Iremonger, Bernard
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Reshma Pattan > Sent: Wednesday, September 19, 2018 3:01 PM > To: adrien.mazarg...@6wind.com; dev@dpdk.org > Cc: Pattan, Reshma > Subject: [dpdk-dev] [PATCH] app/testpmd: fix missing jump action in flow > action >

Re: [dpdk-dev] [PATCH v2 04/13] bus/vdev: add device matching field driver

2018-09-20 Thread Thomas Monjalon
19/09/2018 18:03, Gaetan Rivet: > The vdev bus parses a field "driver", matching > a vdev driver name with one passed as follows: > >"bus=vdev,driver=" I think the property should be "name". We already have a "driver" category. So it may be "bus=vdev,name=mytap/driver=tap" Until now we w

Re: [dpdk-dev] [PATCH] test: disable alarm autotest in FreeBSD

2018-09-20 Thread Burakov, Anatoly
On 19-Sep-18 3:39 PM, Pallantla Poornima wrote: Disabled the alarm_autotest UT in FreeBSD Interrupts are not supported in FreeBSD. Alarm API depends on interrupts, so disabled alarm test on FreeBSD. Signed-off-by: Pallantla Poornima --- Reviewed-by: Anatoly Burakov -- Thanks, Anatoly

Re: [dpdk-dev] [PATCH v3 1/5] vhost: unify VhostUserMsg usage

2018-09-20 Thread Burakov, Anatoly
On 15-Sep-18 6:20 AM, Nikolay Nikolaev wrote: Use the typedef version of struct VhostUserMsg. Also unify the related parameter name. Signed-off-by: Nikolay Nikolaev --- I'm probably missing some background on this, but according to DPDK coding style guide, typedef structs are to be avoided [

[dpdk-dev] [PATCH v2] mem: store memory mode flags in shared config

2018-09-20 Thread Anatoly Burakov
Currently, command-line switches for legacy mem mode or single-file segments mode are only stored in internal config. This leads to a situation where these flags have to always match between primary and secondary, which is bad for usability. Fix this by storing these flags in the shared config as

[dpdk-dev] [PATCH v3 2/2] examples/vdpa: introduce a new sample for vDPA

2018-09-20 Thread Xiaolong Ye
The vdpa sample application creates vhost-user sockets by using the vDPA backend. vDPA stands for vhost Data Path Acceleration which utilizes virtio ring compatible devices to serve virtio driver directly to enable datapath acceleration. As vDPA driver can help to set up vhost datapath, this applic

[dpdk-dev] [PATCH v3 1/2] vhost: introduce API to get vDPA device number

2018-09-20 Thread Xiaolong Ye
Signed-off-by: Xiaolong Ye --- lib/librte_vhost/rte_vdpa.h| 3 +++ lib/librte_vhost/rte_vhost_version.map | 1 + lib/librte_vhost/vdpa.c| 6 ++ 3 files changed, 10 insertions(+) diff --git a/lib/librte_vhost/rte_vdpa.h b/lib/librte_vhost/rte_vdpa.h index 90465ca26

[dpdk-dev] [PATCH v3 0/2] introduce vdpa sample

2018-09-20 Thread Xiaolong Ye
Hi, This patchset introduces vdpa sample to demonstrate the vDPA use case. v3 changes: * list cmd would show queue number and supported features of vdpa devices. * address Xiao's review comments v2 changes: * fix a compilation error reported by Rosen * improve create cmd in interactive mode and

Re: [dpdk-dev] [PATCH v2 2/3] kni: fix kni fifo synchronization

2018-09-20 Thread Jerin Jacob
-Original Message- > Date: Thu, 20 Sep 2018 15:20:53 + > From: Honnappa Nagarahalli > To: Jerin Jacob , "Phil Yang (Arm > Technology China)" > CC: "dev@dpdk.org" , nd , > "kkokkilaga...@caviumnetworks.com" , > "Gavin Hu (Arm Technology China)" , > "ferruh.yi...@intel.com" > Subje

[dpdk-dev] [PATCH v2 0/7] Improve core EAL musl compatibility

2018-09-20 Thread Anatoly Burakov
This patchset fixes numerous issues with musl compatibility in the core EAL libraries. It does not fix anything beyond core EAL (so, PCI driver is still broken, so are a few other drivers), but it's a good start. Tested on container with Alpine Linux. Alpine dependencies: build-base bsd-compat-he

[dpdk-dev] [PATCH v2 4/7] eal/hugepage_info: improve musl compatibility

2018-09-20 Thread Anatoly Burakov
When built against musl, fcntl.h doesn't silently get included. Fix by including it explicitly. Bugzilla ID: 33 Signed-off-by: Anatoly Burakov --- lib/librte_eal/linuxapp/eal/eal_hugepage_info.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/linuxapp/eal/eal_hugepage_info.c

[dpdk-dev] [PATCH v2 2/7] pci/vfio: improve musl compatibility

2018-09-20 Thread Anatoly Burakov
Musl already has PAGE_SIZE defined, and our define clashed with it. Rename our define to SYS_PAGE_SIZE. Bugzilla ID: 36 Signed-off-by: Anatoly Burakov --- drivers/bus/pci/linux/pci_vfio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/bus/pci/linux/pci_vfio.c b/drivers/bus/pci/li

[dpdk-dev] [PATCH v2 1/7] linuxapp: build with _GNU_SOURCE defined by default

2018-09-20 Thread Anatoly Burakov
We use _GNU_SOURCE all over the place, but often times we miss defining it, resulting in broken builds on musl. Rather than fixing every library's and driver's and application's makefile, fix it by simply defining _GNU_SOURCE by default for all Linuxapp builds. Signed-off-by: Anatoly Burakov ---

[dpdk-dev] [PATCH v2 5/7] mem: improve musl compatibility

2018-09-20 Thread Anatoly Burakov
When built against musl, fcntl.h doesn't silently get included. Fix by including it explicitly. Bugzilla ID: 31 Signed-off-by: Anatoly Burakov --- lib/librte_eal/common/eal_common_memory.c | 1 + lib/librte_eal/linuxapp/eal/eal_memory.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lib

[dpdk-dev] [PATCH v2 3/7] fbarray: improve musl compatibility

2018-09-20 Thread Anatoly Burakov
When built against musl, fcntl.h doesn't silently get included. Fix by including it explicitly. Bugzilla ID: 34 Signed-off-by: Anatoly Burakov --- lib/librte_eal/common/eal_common_fbarray.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/common/eal_common_fbarray.c b/lib/lib

[dpdk-dev] [PATCH v2 6/7] string_fns: improve musl compatibility

2018-09-20 Thread Anatoly Burakov
Musl wraps various string functions such as strlcpy in order to harden them. However, the fortify wrappers are included without including the actual string functions being wrapped, which throws missing definition compile errors. Fix by including string.h in string functions header. Signed-off-by:

[dpdk-dev] [PATCH v2 7/7] eal: improve musl compatibility

2018-09-20 Thread Anatoly Burakov
Musl complains about pthread id being of wrong size, because on musl, pthread_t is a struct pointer, not an unsinged int. Fix the printing code by casting pthread id to unsigned pointer type and adjusting the format specifier to be of appropriate size. Signed-off-by: Anatoly Burakov --- lib/libr

Re: [dpdk-dev] [PATCH v2 2/3] kni: fix kni fifo synchronization

2018-09-20 Thread Honnappa Nagarahalli
> -Original Message- > > Date: Wed, 19 Sep 2018 21:42:39 +0800 > > From: Phil Yang > > To: dev@dpdk.org > > CC: n...@arm.com, jerin.ja...@caviumnetworks.com, > > kkokkilaga...@caviumnetworks.com, honnappa.nagaraha...@arm.com, > > gavin...@arm.com > > Subject: [PATCH v2 2/3] kni: fix kni fi

Re: [dpdk-dev] [PATCH] net: fix Intel prepare function for IP checksum offload

2018-09-20 Thread Ananyev, Konstantin
> > Current Intel tx prepare function does not properly handle the > case where only IP checksum is requested, without requesting > any L4 checksum or TSO: IP checksum is not properly reset to 0 > and output packet may contain invalid IP checksum. > > Fixes: 4fb7e803eb1a ("ethdev: add Tx prepa

Re: [dpdk-dev] [RFC] ipsec: new library for IPsec data-path processing

2018-09-20 Thread Akhil Goyal
Hi Konstantin, On 9/18/2018 6:12 PM, Ananyev, Konstantin wrote: I am not saying this should be the ONLY way to do as it does not work very well with non NPU/FPGA class of SoC. So how about making the proposed IPSec library as plugin/driver to rte_security. As I mentioned above, I don't think t

Re: [dpdk-dev] [PATCH] test: restructure and cleanup ring PMD test

2018-09-20 Thread Parthasarathy, JananeeX M
Adding Bruce in CC Thanks M.P.Jananee >-Original Message- >From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Jananee >Parthasarathy >Sent: Thursday, September 20, 2018 6:54 PM >To: dev@dpdk.org >Cc: Pattan, Reshma ; Chaitanya Babu, TalluriX > >Subject: [dpdk-dev] [PATCH] test: restruc

[dpdk-dev] [PATCH v2 2/4] net/failsafe: add checks for deferred queue setup

2018-09-20 Thread Andrew Rybchenko
From: Ian Dolzhansky Fixes: a46f8d584eb8 ("net/failsafe: add fail-safe PMD") Cc: sta...@dpdk.org Signed-off-by: Ian Dolzhansky Signed-off-by: Andrew Rybchenko Acked-by: Gaetan Rivet --- drivers/net/failsafe/failsafe_ops.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/driver

[dpdk-dev] [PATCH v2 4/4] net/failsafe: add Tx queue start and stop functions

2018-09-20 Thread Andrew Rybchenko
From: Ian Dolzhansky Support Tx queue deferred start. Signed-off-by: Ian Dolzhansky Signed-off-by: Andrew Rybchenko Acked-by: Gaetan Rivet --- doc/guides/nics/features/failsafe.ini | 2 +- doc/guides/rel_notes/release_18_11.rst | 4 +- drivers/net/failsafe/failsafe_ether.c | 44 +

[dpdk-dev] [PATCH v2 0/4] net/failsafe: support deferred queue start

2018-09-20 Thread Andrew Rybchenko
Since the topic is raised in multicast address list patchset, I'd like to highlight it here as well. Current version uses failsafe ops directly on sync to synchronize queues state which iterates over all sub-devices. For already in sync sub-devices it does not go to driver since ethdev functions ch

[dpdk-dev] [PATCH v2 3/4] net/failsafe: add Rx queue start and stop functions

2018-09-20 Thread Andrew Rybchenko
From: Ian Dolzhansky Support Rx queue deferred start. Signed-off-by: Ian Dolzhansky Signed-off-by: Andrew Rybchenko Acked-by: Gaetan Rivet --- doc/guides/nics/features/failsafe.ini | 1 + doc/guides/rel_notes/release_18_11.rst | 7 ++ drivers/net/failsafe/failsafe_ether.c | 44 ++

[dpdk-dev] [PATCH v2 1/4] app/testpmd: add queue deferred start switch

2018-09-20 Thread Andrew Rybchenko
From: Ian Dolzhansky Signed-off-by: Ian Dolzhansky Signed-off-by: Andrew Rybchenko Acked-by: Gaetan Rivet --- app/test-pmd/cmdline.c | 91 + doc/guides/rel_notes/release_18_11.rst | 8 ++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 ++ 3 fil

Re: [dpdk-dev] [PATCH v3] doc: support building HTML guides with meson

2018-09-20 Thread Timothy Redaelli
On Thu, 20 Sep 2018 14:22:08 +0100 Luca Boccassi wrote: > From: Bruce Richardson > > Signed-off-by: Bruce Richardson > Signed-off-by: Luca Boccassi Tested on Fedora 28 (sphinx 1.7.5) and RHEL 7.5 (sphinx 1.1.3) Tested-by: Timothy Redaelli

[dpdk-dev] [PATCH v3] doc: support building HTML guides with meson

2018-09-20 Thread Luca Boccassi
From: Bruce Richardson Signed-off-by: Bruce Richardson Signed-off-by: Luca Boccassi --- v2: send on behalf of Bruce on request. - tell sphinx to create .doctrees working files in the parent of the target directory so that they don't get installed - change the output director

Re: [dpdk-dev] [PATCH 1/4] app/testpmd: add queue deferred start switch

2018-09-20 Thread Andrew Rybchenko
On 9/3/18 7:56 PM, Ferruh Yigit wrote: On 8/29/2018 8:16 AM, Andrew Rybchenko wrote: From: Ian Dolzhansky Signed-off-by: Ian Dolzhansky Signed-off-by: Andrew Rybchenko --- app/test-pmd/cmdline.c | 91 ++ doc/guides/rel_notes/release_18_11.rst | 6 +

[dpdk-dev] [PATCH] test: restructure and cleanup ring PMD test

2018-09-20 Thread Jananee Parthasarathy
From: Chaitanya Babu Talluri Divided main test to smaller logical tests. Registered with UT framework. Added cleanup of the resources else ring creation fails during consecutive test runs. Freed the allocated mempool, rings and uninitalized the drivers. Signed-off-by: Chaitanya Babu Talluri ---

Re: [dpdk-dev] [PATCH v2] doc: support building HTML guides with meson

2018-09-20 Thread Timothy Redaelli
On Wed, 19 Sep 2018 14:48:27 +0100 Luca Boccassi wrote: > From: Bruce Richardson > > Signed-off-by: Bruce Richardson > Signed-off-by: Luca Boccassi > --- > v2: send on behalf of Bruce on request. > - tell sphinx to create .doctrees working files in the > parent of the target directo

[dpdk-dev] [PATCH v3] pci/vfio: allow mapping MSI-X BARs if kernel allows it

2018-09-20 Thread Anatoly Burakov
Currently, DPDK will skip mapping some areas (or even an entire BAR) if MSI-X table happens to be in them but is smaller than page size. Kernels 4.16+ will allow mapping MSI-X BARs [1], and will report this as a capability flag. Capability flags themselves are also only supported since kernel 4.6

Re: [dpdk-dev] Incorrect latencystats implementation

2018-09-20 Thread Pattan, Reshma
> -Original Message- > From: long...@viettel.com.vn [mailto:long...@viettel.com.vn] > Sent: Wednesday, September 19, 2018 9:17 AM > To: Pattan, Reshma > Cc: dev@dpdk.org; Bao-Long Tran > Subject: Incorrect latencystats implementation > > > I have submit a patch to implement the trivi

Re: [dpdk-dev] How to replace rte_eth_dev_attach with rte_eal_hotplug_add

2018-09-20 Thread Thomas Monjalon
20/09/2018 11:09, Gaëtan Rivet: > On Thu, Sep 20, 2018 at 05:46:37PM +0900, Hideyuki Yamashita wrote: > > Hello, > > > > From dpdk 18.08 release rte_eth_dev_attach and > > rte_eth_dev_detach becom deprecated API and > > it is recommended to replace with rte_eal_hotplug_add > > and rte_eal_hotplu

Re: [dpdk-dev] [PATCH v2] eal/bsd: fix unused parameters compile error

2018-09-20 Thread Thomas Monjalon
20/09/2018 14:26, Anatoly Burakov: > When compiling on FreeBSD, lots of warnings/errors are thrown for > unused parameter. Fix these by marking the parameters as unused > in the code. > > Fixes: 1009ba1704f9 ("mem: add internal API to get and set segment fd") > Fixes: 3a44687139eb ("mem: allow que

[dpdk-dev] [PATCH v2] net/bonding: fix RX slave fairness

2018-09-20 Thread Chas Williams
From: Chas Williams Some PMDs, especially ones with vector receives, require a minimum number of receive buffers in order to receive any packets. If the first slave read leaves less than this number available, a read from the next slave may return 0 implying that the slave doesn't have any packe

[dpdk-dev] [PATCH v2] mem: fix undefined behavior in NUMA code

2018-09-20 Thread Anatoly Burakov
When NUMA-aware hugepages config option is set, we rely on libnuma to tell the kernel to allocate hugepages on a specific NUMA node. However, we allocate node mask before we check if NUMA is available in the first place, which, according to the manpage [1], causes undefined behaviour. Fix by only

Re: [dpdk-dev] [PATCH] net/bonding: ensure fairness among slaves

2018-09-20 Thread Chas Williams
On Thu, Sep 20, 2018 at 2:28 AM Matan Azrad wrote: > > Hi Chas > Please see small comments. > > > From: Chas Williams > > Some PMDs, especially ones with vector receives, require a minimum > > number of receive buffers in order to receive any packets. If the first > > slave > > read leaves less

[dpdk-dev] [PATCH v2] eal/bsd: fix unused parameters compile error

2018-09-20 Thread Anatoly Burakov
When compiling on FreeBSD, lots of warnings/errors are thrown for unused parameter. Fix these by marking the parameters as unused in the code. Fixes: 1009ba1704f9 ("mem: add internal API to get and set segment fd") Fixes: 3a44687139eb ("mem: allow querying offset into segment fd") Signed-off-by:

Re: [dpdk-dev] [PATCH] latency: clear mbuf timestamp after latency calculation

2018-09-20 Thread longtb5
Hi, Thanks, I have sent a v2. Any comment on the problem of dropped mbuf that I described in the cover letter? In our application the max_latency_ns metric is useless since after running for a while it would always take on obviously incorrect value (up to a few minutes). I suspect the impact o

Re: [dpdk-dev] [PATCH v2 2/2] net/failsafe: support multicast address list set

2018-09-20 Thread Andrew Rybchenko
On 9/19/18 6:12 PM, Gaëtan Rivet wrote: On Wed, Sep 19, 2018 at 04:50:57PM +0200, Gaëtan Rivet wrote: Hi, Sorry about the delay on this, overall it looks ok; I have an issue however, see inline. On Mon, Sep 03, 2018 at 07:55:22AM +0100, Andrew Rybchenko wrote: From: Evgeny Im Signed-off-by:

[dpdk-dev] [PATCH v3 10/20] malloc: allow creating malloc heaps

2018-09-20 Thread Anatoly Burakov
Add API to allow creating new malloc heaps. They will be created with socket ID's going above RTE_MAX_NUMA_NODES, to avoid clashing with internal heaps. Signed-off-by: Anatoly Burakov --- lib/librte_eal/common/include/rte_malloc.h | 19 lib/librte_eal/common/malloc_heap.c| 30 ++

[dpdk-dev] [PATCH v3 15/20] malloc: allow detaching from external memory

2018-09-20 Thread Anatoly Burakov
Add API to detach from existing chunk of external memory in a process. Signed-off-by: Anatoly Burakov --- lib/librte_eal/common/include/rte_malloc.h | 27 ++ lib/librte_eal/common/rte_malloc.c | 27 ++ lib/librte_eal/rte_eal_version.map |

[dpdk-dev] [PATCH v3 08/20] malloc: add name to malloc heaps

2018-09-20 Thread Anatoly Burakov
We will need to refer to external heaps in some way. While we use heap ID's internally, for external API use it has to be something more user-friendly. So, we will be using a string to uniquely identify a heap. Signed-off-by: Anatoly Burakov --- lib/librte_eal/common/include/rte_malloc_heap.h |

[dpdk-dev] [PATCH v3 04/20] mem: do not check for invalid socket ID

2018-09-20 Thread Anatoly Burakov
We will be assigning "invalid" socket ID's to external heap, and malloc will now be able to verify if a supplied socket ID is in fact a valid one, rendering parameter checks for sockets obsolete. This changes the semantics of what we understand by "socket ID", so document the change in the release

[dpdk-dev] [PATCH v3 12/20] malloc: allow adding memory to named heaps

2018-09-20 Thread Anatoly Burakov
Add an API to add externally allocated memory to malloc heap. The memory will be stored in memseg lists like regular DPDK memory. Multiple segments are allowed within a heap. If IOVA table is not provided, IOVA addresses are filled in with RTE_BAD_IOVA. Signed-off-by: Anatoly Burakov --- lib/lib

[dpdk-dev] [PATCH v3 01/20] mem: add length to memseg list

2018-09-20 Thread Anatoly Burakov
Previously, to calculate length of memory area covered by a memseg list, we would've needed to multiply page size by length of fbarray backing that memseg list. This is not obvious and unnecessarily low level, so store length in the memseg list itself. Signed-off-by: Anatoly Burakov --- drivers/

[dpdk-dev] [PATCH v3 17/20] examples: add external memory example app

2018-09-20 Thread Anatoly Burakov
Introduce an example application demonstrating the use of external memory support. This is a simple application based on skeleton app, but instead of using internal DPDK memory, it is using externally allocated memory. The RX/TX and init path is a carbon-copy of skeleton app, with no modifications

[dpdk-dev] [PATCH v3 09/20] malloc: add function to query socket ID of named heap

2018-09-20 Thread Anatoly Burakov
When we will be creating external heaps, they will have their own "fake" socket ID, so add a function that will map the heap name to its socket ID. Signed-off-by: Anatoly Burakov --- lib/librte_eal/common/include/rte_malloc.h | 14 lib/librte_eal/common/rte_malloc.c | 37 +++

[dpdk-dev] [PATCH v3 20/20] doc: add external memory sample application guide

2018-09-20 Thread Anatoly Burakov
Add a guide for external memory sample application. The application is identical to Basic Forwarding example in everything except parts of initialization code, so the bits that are identical will not be described. It is also not necessary to describe how external memory is being allocated due to t

[dpdk-dev] [PATCH v3 06/20] pipeline: do not check for invalid socket ID

2018-09-20 Thread Anatoly Burakov
We will be assigning "invalid" socket ID's to external heap, and malloc will now be able to verify if a supplied socket ID is in fact a valid one, rendering parameter checks for sockets obsolete. Signed-off-by: Anatoly Burakov --- lib/librte_pipeline/rte_pipeline.c | 3 +-- 1 file changed, 1 ins

[dpdk-dev] [PATCH v3 14/20] malloc: allow attaching to external memory chunks

2018-09-20 Thread Anatoly Burakov
In order to use external memory in multiple processes, we need to attach to primary process's memseg lists, so add a new API to do that. It is the responsibility of the user to ensure that memory is accessible and that it has been previously added to the malloc heap by another process. Signed-off-

[dpdk-dev] [PATCH v3 16/20] test: add unit tests for external memory support

2018-09-20 Thread Anatoly Burakov
Add simple unit tests to test external memory support. The tests are pretty basic and mostly consist of checking if invalid API calls are handled correctly, plus a simple allocation/deallocation test for malloc and memzone. Signed-off-by: Anatoly Burakov --- test/test/Makefile| 1 +

[dpdk-dev] [PATCH v3 02/20] mem: allow memseg lists to be marked as external

2018-09-20 Thread Anatoly Burakov
When we allocate and use DPDK memory, we need to be able to differentiate between DPDK hugepage segments and segments that were made part of DPDK but are externally allocated. Add such a property to memseg lists. This breaks the ABI, so bump the EAL library ABI version and document the change in r

[dpdk-dev] [PATCH v3 18/20] doc: add external memory feature to the release notes

2018-09-20 Thread Anatoly Burakov
Document the addition of external memory support to DPDK. Signed-off-by: Anatoly Burakov --- doc/guides/rel_notes/release_18_11.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/release_18_11.rst b/doc/guides/rel_notes/release_18_11.rst index 63bbb1b51..9a05c9980

[dpdk-dev] [PATCH v3 19/20] doc: add external memory feature to programmer's guide

2018-09-20 Thread Anatoly Burakov
Add a short chapter on usage of external memory in DPDK to the Programmer's Guide. Signed-off-by: Anatoly Burakov --- .../prog_guide/env_abstraction_layer.rst | 38 +++ 1 file changed, 38 insertions(+) diff --git a/doc/guides/prog_guide/env_abstraction_layer.rst b/doc/guid

[dpdk-dev] [PATCH v3 13/20] malloc: allow removing memory from named heaps

2018-09-20 Thread Anatoly Burakov
Add an API to remove memory from specified heaps. This will first check if all elements within the region are free, and that the region is the original region that was added to the heap (by comparing its length to length of memory addressed by the underlying memseg list). Signed-off-by: Anatoly Bu

[dpdk-dev] [PATCH v3 07/20] sched: do not check for invalid socket ID

2018-09-20 Thread Anatoly Burakov
We will be assigning "invalid" socket ID's to external heap, and malloc will now be able to verify if a supplied socket ID is in fact a valid one, rendering parameter checks for sockets obsolete. Signed-off-by: Anatoly Burakov --- lib/librte_sched/rte_sched.c | 2 +- 1 file changed, 1 insertion(

[dpdk-dev] [PATCH v3 11/20] malloc: allow destroying heaps

2018-09-20 Thread Anatoly Burakov
Add an API to destroy specified heap. Signed-off-by: Anatoly Burakov --- lib/librte_eal/common/include/rte_malloc.h | 23 + lib/librte_eal/common/malloc_heap.c| 22 lib/librte_eal/common/malloc_heap.h| 3 ++ lib/librte_eal/common/rte_malloc.c | 58 ++

[dpdk-dev] [PATCH v3 03/20] malloc: index heaps using heap ID rather than NUMA node

2018-09-20 Thread Anatoly Burakov
Switch over all parts of EAL to use heap ID instead of NUMA node ID to identify heaps. Heap ID for DPDK-internal heaps is NUMA node's index within the detected NUMA node list. Heap ID for external heaps will be order of their creation. Signed-off-by: Anatoly Burakov --- config/common_base

[dpdk-dev] [PATCH v3 05/20] flow_classify: do not check for invalid socket ID

2018-09-20 Thread Anatoly Burakov
We will be assigning "invalid" socket ID's to external heap, and malloc will now be able to verify if a supplied socket ID is in fact a valid one, rendering parameter checks for sockets obsolete. Signed-off-by: Anatoly Burakov --- lib/librte_flow_classify/rte_flow_classify.c | 3 +-- 1 file chan

[dpdk-dev] [PATCH v3 00/20] Support externally allocated memory in DPDK

2018-09-20 Thread Anatoly Burakov
This is a proposal to enable using externally allocated memory in DPDK. In a nutshell, here is what is being done here: - Index internal malloc heaps by NUMA node index, rather than NUMA node itself (external heaps will have ID's in order of creation) - Add identifier string to malloc heap, to

  1   2   >