Re: [dpdk-dev] [RFC] mbuf: support dynamic fields and flags

2019-07-11 Thread Olivier Matz
Hi, On Wed, Jul 10, 2019 at 05:14:33PM +, Wang, Haiyue wrote: > Hi, > > Sounds cool, just have some questions inline. > > > -Original Message- > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Olivier Matz > > Sent: Wednesday, July 10, 2019 17:29 > > To: dev@dpdk.org > > Subje

Re: [dpdk-dev] [RFC] mbuf: support dynamic fields and flags

2019-07-11 Thread Olivier Matz
On Wed, Jul 10, 2019 at 10:49:17AM -0700, Stephen Hemminger wrote: > On Wed, 10 Jul 2019 11:29:07 +0200 > Olivier Matz wrote: > > > /** > > * Indicate that the metadata field in the mbuf is in use. > > @@ -738,6 +741,8 @@ struct rte_mbuf { > > */ > > struct rte_mbuf_ext_shared_info *s

Re: [dpdk-dev] [PATCH] ethdev: extend flow metadata

2019-07-11 Thread Adrien Mazarguil
On Wed, Jul 10, 2019 at 04:37:46PM +, Yongseok Koh wrote: > > > On Jul 10, 2019, at 5:26 AM, Thomas Monjalon wrote: > > > > 10/07/2019 14:01, Bruce Richardson: > >> On Wed, Jul 10, 2019 at 12:07:43PM +0200, Olivier Matz wrote: > >>> On Wed, Jul 10, 2019 at 10:55:34AM +0100, Bruce Richardson

Re: [dpdk-dev] [PATCH v3] kni: fix possible kernel crash with va2pa

2019-07-11 Thread Ferruh Yigit
On 7/10/2019 9:09 PM, Ferruh Yigit wrote: > On 6/25/2019 4:04 PM, Yangchao Zhou wrote: >> va2pa depends on the physical address and virtual address offset of >> current mbuf. It may get the wrong physical address of next mbuf which >> allocated in another hugepage segment. >> >> In rte_mempool_popu

Re: [dpdk-dev] [RFC] mbuf: support dynamic fields and flags

2019-07-11 Thread Olivier Matz
Hi Keith, On Wed, Jul 10, 2019 at 06:12:16PM +, Wiles, Keith wrote: > > > > On Jul 10, 2019, at 12:49 PM, Stephen Hemminger > > wrote: > > > > On Wed, 10 Jul 2019 11:29:07 +0200 > > Olivier Matz wrote: > > > >> /** > >> * Indicate that the metadata field in the mbuf is in use. > >> @@

Re: [dpdk-dev] [RFC] mbuf: support dynamic fields and flags

2019-07-11 Thread Wang, Haiyue
> -Original Message- > From: Olivier Matz [mailto:olivier.m...@6wind.com] > Sent: Thursday, July 11, 2019 15:26 > To: Wang, Haiyue > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [RFC] mbuf: support dynamic fields and flags > > Hi, > > On Wed, Jul 10, 2019 at 05:14:33PM +, Wang, Haiyue

Re: [dpdk-dev] [dpdk-stable] [PATCH v3 1/2] metrics: new API to deinitialise metrics library

2019-07-11 Thread Harman Kalra
On Thu, Jul 11, 2019 at 12:08:09AM +0200, Thomas Monjalon wrote: > 10/07/2019 12:52, Harman Kalra: > > Once the library usage is over, it must be deinitialized which > > will free the shared memory reserved during initialization. > > > > Observed an issue while running 'metrics_autotest' continuou

Re: [dpdk-dev] [PATCH] octeontx2: do not put escape sequences in log

2019-07-11 Thread Jerin Jacob Kollanukkaran
> -Original Message- > From: Stephen Hemminger > Sent: Thursday, July 11, 2019 8:42 AM > To: Jerin Jacob Kollanukkaran ; Nithin Kumar > Dabilpuram ; Vamsi Krishna Attunuru > > Cc: dev@dpdk.org; Stephen Hemminger > Subject: [EXT] [PATCH] octeontx2: do not put escape sequences in log > ---

[dpdk-dev] [PATCH] doc: remove invalid parameter from af_xdp example

2019-07-11 Thread David Marchand
queue= parameter does not exist. It might have been the previous name of the queue_count parameter, but anyway, the default value 1 for the number of queues works fine. Fixes: f1debd77efaf ("net/af_xdp: introduce AF_XDP PMD") Cc: sta...@dpdk.org Signed-off-by: David Marchand --- doc/guides/nics

Re: [dpdk-dev] [RFC] mbuf: support dynamic fields and flags

2019-07-11 Thread Olivier Matz
On Thu, Jul 11, 2019 at 08:04:00AM +, Wang, Haiyue wrote: > > -Original Message- > > From: Olivier Matz [mailto:olivier.m...@6wind.com] > > Sent: Thursday, July 11, 2019 15:26 > > To: Wang, Haiyue > > Cc: dev@dpdk.org > > Subject: Re: [dpdk-dev] [RFC] mbuf: support dynamic fields and f

[dpdk-dev] [Bug 289] mlx5: 100G interface capability not recognized

2019-07-11 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=289 Thomas Monjalon (tho...@monjalon.net) changed: What|Removed |Added CC||tho...@monjalon.net

Re: [dpdk-dev] [RFC] mbuf: support dynamic fields and flags

2019-07-11 Thread Wang, Haiyue
> -Original Message- > From: Olivier Matz [mailto:olivier.m...@6wind.com] > Sent: Thursday, July 11, 2019 16:21 > To: Wang, Haiyue > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [RFC] mbuf: support dynamic fields and flags > > On Thu, Jul 11, 2019 at 08:04:00AM +, Wang, Haiyue wrote: >

Re: [dpdk-dev] [dpdk-stable] [PATCH v3 1/2] metrics: new API to deinitialise metrics library

2019-07-11 Thread Thomas Monjalon
11/07/2019 10:12, Harman Kalra: > On Thu, Jul 11, 2019 at 12:08:09AM +0200, Thomas Monjalon wrote: > > " > > I would vote for not backporting this new API. > > " > > > > In case it is not clear, this comment means you should not Cc > > sta...@dpdk.org > > I added CC because of the following comm

Re: [dpdk-dev] [RFC PATCH 02/13] add vhost packed ring fast enqueue function

2019-07-11 Thread Jason Wang
On 2019/7/9 上午1:13, Marvin Liu wrote: In fast enqueue function, will first check whether descriptors are cache aligned. Fast enqueue function will check prerequisites in the beginning. Fast enqueue function do not support chained mbufs, normal function will handle that. Signed-off-by: Marvin L

Re: [dpdk-dev] [PATCH v7] net/i40e: i40e get link status update from ipn3ke

2019-07-11 Thread Zhang, Qi Z
> -Original Message- > From: Pei, Andy > Sent: Thursday, July 11, 2019 2:39 PM > To: dev@dpdk.org > Cc: Pei, Andy ; Zhang, Qi Z ; Wu, > Jingjing ; Xing, Beilei ; Yigit, > Ferruh ; Xu, Rosen ; Ye, > Xiaolong ; Zhang, Roy Fan > ; sta...@dpdk.org > Subject: [PATCH v7] net/i40e: i40e get link

[dpdk-dev] [RFC] doc: deprecate legacy code path in ipsec-secgw

2019-07-11 Thread Bernard Iremonger
All the functionality of the legacy code path in now available in the librte_ipsec library. It is planned to deprecate the legacy code path in the 19.11 release and remove the legacy code path in the 20.02 release. Signed-off-by: Bernard Iremonger --- doc/guides/rel_notes/deprecation.rst | 5 +++

Re: [dpdk-dev] [PATCH v9 0/2] match on GRE's key

2019-07-11 Thread Raslan Darawsheh
Hi, > -Original Message- > From: dev On Behalf Of Xiaoyu Min > Sent: Tuesday, July 9, 2019 1:59 PM > To: Adrien Mazarguil ; Ori Kam > ; Slava Ovsiienko ; > Thomas Monjalon > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v9 0/2] match on GRE's key > > This series patchs are based on RFC [

Re: [dpdk-dev] [PATCH] vfio: fix build errors on old Linux

2019-07-11 Thread Burakov, Anatoly
On 11-Jul-19 3:22 AM, Takeshi Yoshimura wrote: The commit db90b4969e2e ("vfio: retry creating sPAPR DMA window") introduced a build breakage on old Linux. Linux <4.2 does not define ddw in struct vfio_iommu_spapr_tce_info. Without ddw, we cannot change window size and so should give up the creati

Re: [dpdk-dev] [RFC] mbuf: support dynamic fields and flags

2019-07-11 Thread Thomas Monjalon
10/07/2019 11:29, Olivier Matz: > Many features require to store data inside the mbuf. As the room in mbuf > structure is limited, it is not possible to have a field for each > feature. Also, changing fields in the mbuf structure can break the API > or ABI. > > This commit addresses these issues,

[dpdk-dev] [PATCH v4 1/2] metrics: new API to deinitialise metrics library

2019-07-11 Thread Harman Kalra
Once the library usage is over, it must be deinitialized which will free the shared memory reserved during initialization. Observed an issue while running 'metrics_autotest' continuously without quiting. For the first run 'metrics_autotest' passes all test cases but second run onwards first test c

[dpdk-dev] [PATCH v4 2/2] test/metrics: fix metrics autotest failure

2019-07-11 Thread Harman Kalra
Issue is observed while running 'metrics_autotest' continuously without quiting. During first execution all test cases pass but second run onwards first test case fails as library is already initialized. To resolve, introduced a new API to deinitialise the library after all test cases are executed

Re: [dpdk-dev] [PATCH] vfio: fix build errors on old Linux

2019-07-11 Thread Thomas Monjalon
11/07/2019 11:17, Burakov, Anatoly: > On 11-Jul-19 3:22 AM, Takeshi Yoshimura wrote: > > The commit db90b4969e2e ("vfio: retry creating sPAPR DMA window") > > introduced a build breakage on old Linux. Linux <4.2 does not define ddw in > > struct vfio_iommu_spapr_tce_info. Without ddw, we cannot cha

Re: [dpdk-dev] [PATCH v2 1/1] fbarray: get fbarrays from containerized secondary

2019-07-11 Thread Yasufumi Ogawa
On 2019/07/09 19:26, Burakov, Anatoly wrote: On 09-Jul-19 11:24 AM, Burakov, Anatoly wrote: On 09-Jul-19 11:22 AM, Yasufumi Ogawa wrote: Hi Anatoly, On 2019/07/05 17:53, Burakov, Anatoly wrote: On 16-Apr-19 4:43 AM, ogawa.yasuf...@lab.ntt.co.jp wrote: From: Yasufumi Ogawa In secondary_msl_

Re: [dpdk-dev] [RFC PATCH 02/13] add vhost packed ring fast enqueue function

2019-07-11 Thread Liu, Yong
> -Original Message- > From: Jason Wang [mailto:jasow...@redhat.com] > Sent: Thursday, July 11, 2019 4:35 PM > To: Liu, Yong ; Bie, Tiwei ; > maxime.coque...@redhat.com; dev@dpdk.org > Subject: Re: [dpdk-dev] [RFC PATCH 02/13] add vhost packed ring fast enqueue > function > > > On 2019/

Re: [dpdk-dev] [PATCH v2 1/1] fbarray: get fbarrays from containerized secondary

2019-07-11 Thread Burakov, Anatoly
On 11-Jul-19 10:37 AM, Yasufumi Ogawa wrote: On 2019/07/09 19:26, Burakov, Anatoly wrote: On 09-Jul-19 11:24 AM, Burakov, Anatoly wrote: On 09-Jul-19 11:22 AM, Yasufumi Ogawa wrote: Hi Anatoly, On 2019/07/05 17:53, Burakov, Anatoly wrote: On 16-Apr-19 4:43 AM, ogawa.yasuf...@lab.ntt.co.jp wr

Re: [dpdk-dev] [RFC PATCH 02/13] add vhost packed ring fast enqueue function

2019-07-11 Thread Jason Wang
On 2019/7/11 下午5:37, Liu, Yong wrote: -Original Message- From: Jason Wang [mailto:jasow...@redhat.com] Sent: Thursday, July 11, 2019 4:35 PM To: Liu, Yong ; Bie, Tiwei ; maxime.coque...@redhat.com; dev@dpdk.org Subject: Re: [dpdk-dev] [RFC PATCH 02/13] add vhost packed ring fast enque

Re: [dpdk-dev] [RFC PATCH 02/13] add vhost packed ring fast enqueue function

2019-07-11 Thread Liu, Yong
> -Original Message- > From: Jason Wang [mailto:jasow...@redhat.com] > Sent: Thursday, July 11, 2019 12:11 PM > To: Liu, Yong ; Bie, Tiwei ; > maxime.coque...@redhat.com; dev@dpdk.org > Subject: Re: [dpdk-dev] [RFC PATCH 02/13] add vhost packed ring fast enqueue > function > > > On 2019

Re: [dpdk-dev] [RFC PATCH 02/13] add vhost packed ring fast enqueue function

2019-07-11 Thread Jason Wang
On 2019/7/11 下午5:49, Liu, Yong wrote: -Original Message- From: Jason Wang [mailto:jasow...@redhat.com] Sent: Thursday, July 11, 2019 12:11 PM To: Liu, Yong ; Bie, Tiwei ; maxime.coque...@redhat.com; dev@dpdk.org Subject: Re: [dpdk-dev] [RFC PATCH 02/13] add vhost packed ring fast enqu

Re: [dpdk-dev] [EXT] Re: [PATCH v2] net/af_packet: add string error for system errors

2019-07-11 Thread Krzysztof Kanas
On 19-07-10 09:04, Stephen Hemminger wrote: > External Email > > -- > On Wed, 10 Jul 2019 16:46:30 +0200 > wrote: > > > > > +#define PMD_LOG_ERRNO(level, fmt, args...) \ > > + rte_log(RTE_LOG_ ## level, af_packet_logtype, \

[dpdk-dev] [PATCH v3 00/11] sched: feature enhancements

2019-07-11 Thread Jasvinder Singh
This patchset refactors the dpdk qos sched library to allow flexibile configuration of the pipe traffic classes and queue sizes. Currently, each pipe has 16 queues hardwired into 4 TCs scheduled with strict priority, and each TC has exactly with 4 queues that are scheduled with Weighted Fair Queui

[dpdk-dev] [PATCH v3 02/11] sched: add config flexibility to tc queue sizes

2019-07-11 Thread Jasvinder Singh
Add support for zero queue sizes of the traffic classes. The queues which are not used can be set to zero size. This helps in reducing memory footprint of the hierarchical scheduler. Signed-off-by: Jasvinder Singh Signed-off-by: Abraham Tovar Signed-off-by: Lukasz Krakowiak --- lib/librte_sche

[dpdk-dev] [PATCH v3 03/11] sched: add max pipe profiles config in run time

2019-07-11 Thread Jasvinder Singh
Allow setting the maximum number of pipe profiles in run time. Signed-off-by: Jasvinder Singh Signed-off-by: Abraham Tovar Signed-off-by: Lukasz Krakowiak --- lib/librte_sched/rte_sched.c | 8 +--- lib/librte_sched/rte_sched.h | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff

[dpdk-dev] [PATCH v3 04/11] sched: rename tc3 params to best-effort tc

2019-07-11 Thread Jasvinder Singh
Change the traffic class 3 related params name to best-effort(be) traffic class. Signed-off-by: Jasvinder Singh Signed-off-by: Abraham Tovar Signed-off-by: Lukasz Krakowiak --- lib/librte_sched/rte_sched.c | 48 ++-- 1 file changed, 24 insertions(+), 24 deletion

[dpdk-dev] [PATCH v3 01/11] sched: remove wrr from strict priority tc queues

2019-07-11 Thread Jasvinder Singh
All higher priority traffic classes contain only one queue, thus remove wrr function for them. The lowest priority best-effort traffic class conitnue to have multiple queues and packet are scheduled from its queues using wrr function. Signed-off-by: Jasvinder Singh Signed-off-by: Abraham Tovar S

[dpdk-dev] [PATCH v3 06/11] sched: improve doxygen comments

2019-07-11 Thread Jasvinder Singh
Improve doxygen comments. Signed-off-by: Jasvinder Singh Signed-off-by: Abraham Tovar Signed-off-by: Lukasz Krakowiak --- lib/librte_sched/rte_sched.h | 145 ++- 1 file changed, 93 insertions(+), 52 deletions(-) diff --git a/lib/librte_sched/rte_sched.h b/lib/l

[dpdk-dev] [PATCH v3 07/11] net/softnic: add config flexibility to softnic tm

2019-07-11 Thread Jasvinder Singh
Update softnic tm function for configuration flexiblity of pipe traffic classes and queues size. Signed-off-by: Jasvinder Singh Signed-off-by: Abraham Tovar Signed-off-by: Lukasz Krakowiak --- drivers/net/softnic/rte_eth_softnic.c | 131 ++ drivers/net/softnic/rte_eth_softnic_cli.c

[dpdk-dev] [PATCH v3 05/11] sched: improve error log messages

2019-07-11 Thread Jasvinder Singh
Replace hard-coded numbers for reporting errors with error messages. Signed-off-by: Jasvinder Singh Signed-off-by: Abraham Tovar Signed-off-by: Lukasz Krakowiak --- lib/librte_sched/rte_sched.c | 295 ++- 1 file changed, 221 insertions(+), 74 deletions(-) diff

[dpdk-dev] [PATCH v3 09/11] examples/ip_pipeline: add config flexibility to tm function

2019-07-11 Thread Jasvinder Singh
Update ip pipeline sample app for configuration flexiblity of pipe traffic classes and queues. Signed-off-by: Jasvinder Singh Signed-off-by: Abraham Tovar Signed-off-by: Lukasz Krakowiak --- examples/ip_pipeline/cli.c | 45 +++--- examples/ip_pipeline/tmgr.c

[dpdk-dev] [PATCH v3 08/11] test_sched: modify tests for config flexibility

2019-07-11 Thread Jasvinder Singh
update unit tests for configuration flexibility of pipe traffic classes and queues size. Signed-off-by: Jasvinder Singh Signed-off-by: Abraham Tovar Signed-off-by: Lukasz Krakowiak --- app/test/test_sched.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/test

[dpdk-dev] [PATCH v3 10/11] examples/qos_sched: add tc and queue config flexibility

2019-07-11 Thread Jasvinder Singh
Update qos sched sample app for configuration flexibility of pipe traffic classes and queues. Signed-off-by: Jasvinder Singh Signed-off-by: Abraham Tovar Signed-off-by: Lukasz Krakowiak --- examples/qos_sched/app_thread.c | 9 +- examples/qos_sched/cfg_file.c | 119 +--- examples/q

[dpdk-dev] [PATCH v3 11/11] sched: remove redundant macros

2019-07-11 Thread Jasvinder Singh
Remove unused macros from the library, and update release notes. Signed-off-by: Jasvinder Singh Signed-off-by: Abraham Tovar Signed-off-by: Lukasz Krakowiak --- doc/guides/rel_notes/release_19_08.rst | 10 +- lib/librte_sched/rte_sched.h | 10 -- 2 files changed, 9 in

[dpdk-dev] DPDK Release Status Meeting 11/7/2019

2019-07-11 Thread Ferruh Yigit
Minutes 11 July 2019 Agenda: * Release Dates * RC1 Status * Subtrees * OvS * Opens Participants: * Arm * Debian/Microsoft * Intel * Mellanox * Red Hat Release Dates - * v19.08 dates: * RC1 is released on Monday 08 July * https://mails.dpdk.org/archives/a

[dpdk-dev] [PATCH v3 0/1] fbarray: get fbarrays from containerized secondary

2019-07-11 Thread yasufum . o
From: Yasufumi Ogawa In secondary_msl_create_walk(), it creates a file for fbarrays with its PID for reserving unique name among secondary processes. However, it does not work if secondary is run as app container because each of containerized secondary has PID 1. To reserve unique name, use hostn

[dpdk-dev] [PATCH v3 1/1] fbarray: get fbarrays from containerized secondary

2019-07-11 Thread yasufum . o
From: Yasufumi Ogawa In secondary_msl_create_walk(), it creates a file for fbarrays with its PID for reserving unique name among secondary processes. However, it does not work if secondary is run as app container because each of containerized secondary has PID 1. To reserve unique name, use hostn

Re: [dpdk-dev] [PATCH v3 1/1] fbarray: get fbarrays from containerized secondary

2019-07-11 Thread Burakov, Anatoly
On 11-Jul-19 11:31 AM, yasufu...@gmail.com wrote: From: Yasufumi Ogawa In secondary_msl_create_walk(), it creates a file for fbarrays with its PID for reserving unique name among secondary processes. However, it does not work if secondary is run as app container because each of containerized se

Re: [dpdk-dev] [PATCH] common/octeontx2: add CNF95xx SoC support

2019-07-11 Thread Jerin Jacob Kollanukkaran
> -Original Message- > From: Nithin Dabilpuram > Sent: Wednesday, July 10, 2019 10:32 PM > To: Jerin Jacob Kollanukkaran ; Nithin Kumar > Dabilpuram ; Vamsi Krishna Attunuru > ; John McNamara ; > Marko Kovacevic ; Pavan Nikhilesh > Bhagavatula ; Kiran Kumar Kokkilagadda > > Cc: dev@dpdk.o

Re: [dpdk-dev] [PATCH v3 1/1] fbarray: get fbarrays from containerized secondary

2019-07-11 Thread Yasufumi Ogawa
On 2019/07/11 19:53, Burakov, Anatoly wrote: On 11-Jul-19 11:31 AM, yasufu...@gmail.com wrote: From: Yasufumi Ogawa <...> +    if (getpid() == 1) { +    FILE *hn_fp; +    hn_fp = fopen("/etc/hostname", "r"); +    if (hn_fp == NULL) { +    RTE_LOG(ERR, EAL, + 

Re: [dpdk-dev] [PATCH v2 2/2] vhost: Add vhost-user-blk example which support inflight

2019-07-11 Thread Yu, Jin
> -Original Message- > From: Bie, Tiwei > Sent: Thursday, July 11, 2019 12:08 PM > To: Yu, Jin > Cc: dev@dpdk.org; Liu, Changpeng ; > maxime.coque...@redhat.com; Wang, Zhihong > Subject: Re: [PATCH v2 2/2] vhost: Add vhost-user-blk example which > support inflight > > On Thu, Jul 11, 2

[dpdk-dev] [PATCH] kni: fix possible buffer overflow

2019-07-11 Thread Ferruh Yigit
'kni_net_rx_lo_fifo()' can get segmented buffers, using 'pkt_len' for that case will be wrong and some values can cause buffer overflow in destination mbuf data. Signed-off-by: Ferruh Yigit --- kernel/linux/kni/kni_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/

[dpdk-dev] Failed to hotplug add a device from secondary process

2019-07-11 Thread Ogawa Yasufumi
Hi all, I have developed a multi-process app and am struggling to fix an error while adding PMD from secondary process with hotplug feature. As we reported in [1], I think it is because initializing hogplugged device is changed to be done by primary first, then secondary. However, initialization i

Re: [dpdk-dev] [PATCH v2] devtools: better freebsd support

2019-07-11 Thread Olivier Matz
On Mon, Jul 08, 2019 at 06:35:25PM +0200, Thomas Monjalon wrote: > 05/07/2019 15:58, Olivier Matz: > > - As "readlink -e" and "readlink -m" do not exist on freebsd, > > use "readlink -f", it should not have any impact in these cases. > > - "sed -ri" is invalid on freebsd and should be replaced by

Re: [dpdk-dev] [PATCH v3 1/1] fbarray: get fbarrays from containerized secondary

2019-07-11 Thread Burakov, Anatoly
On 11-Jul-19 12:57 PM, Yasufumi Ogawa wrote: On 2019/07/11 19:53, Burakov, Anatoly wrote: On 11-Jul-19 11:31 AM, yasufu...@gmail.com wrote: From: Yasufumi Ogawa <...> +    if (getpid() == 1) { +    FILE *hn_fp; +    hn_fp = fopen("/etc/hostname", "r"); +    if (hn_fp == NULL) {

[dpdk-dev] [PATCH v1 0/2] add tests for RSA key type CRT

2019-07-11 Thread Ayuj Verma
This patch series add new RSA CRT key based test cases, improve code organization and also rebase it to latest changes. It covers following changes: * Add crt key based rsa sign/verify, enc/decrypt test cases * Move common code of enqueue/dequeue into separate function * Configure device with ff_d

[dpdk-dev] [PATCH v1 1/2] test/crypto: move rsa enqueue/dequeue into separate functions

2019-07-11 Thread Ayuj Verma
Move common code of enqueue/dequeue into separate functions. Signed-off-by: Kanaka Durga Kotamarthy Signed-off-by: Ayuj Verma Signed-off-by: Shally Verma --- app/test/test_cryptodev_asym.c | 413 - 1 file changed, 199 insertions(+), 214 deletions(-) dif

[dpdk-dev] [PATCH v1 2/2] test/crypto: add tests for RSA key type CRT

2019-07-11 Thread Ayuj Verma
Added RSA sign/verify and enc/dec tests for RSA key type CRT(quintuple) and associated test vectors. Signed-off-by: Kanaka Durga Kotamarthy Signed-off-by: Ayuj Verma Signed-off-by: Shally Verma --- app/test/test_cryptodev_asym.c | 97 ++ app/test/test_cr

Re: [dpdk-dev] Dpdk version 17.11.4 (i40e) switchover is not working

2019-07-11 Thread chetan bhasin
Hello Everyone, I have figured out the DPDK version , i.e 18.11.2 , where LSC is working fine for i40e (X722) under bond setup. So command-line I am using is ./testpmd -c f -n 4 --vdev 'net_bonding0,mode=1,slave=:009:00.2,slave=:009:00.0,primary=:009:00.2' -- -I Can anybody please

[dpdk-dev] [Bug 319] dpdk-i40e could not receive vlan packet whose ip_len was bigger than 1496

2019-07-11 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=319 Bug ID: 319 Summary: dpdk-i40e could not receive vlan packet whose ip_len was bigger than 1496 Product: DPDK Version: 19.05 Hardware: x86 OS: Linux Statu

Re: [dpdk-dev] [PATCH v2 1/1] app/test: fix --socket-mem option in eal flag autotest

2019-07-11 Thread Aaron Conole
writes: > From: Vamsi Attunuru > > eal flag autotest fails when multiple mem size flags are passed > to --socket-mem option irrespective of RTE_MAX_NUMA_NODES. > > Patch fixes --socket-mem option by setting enough numbers > of numa node mem flags based on RTE_MAX_NUMA_NODES config. > > Fixes: 45

Re: [dpdk-dev] [PATCH v6 14/15] net/hinic: add Rx/Tx package burst

2019-07-11 Thread Ferruh Yigit
On 6/27/2019 9:19 AM, Ziyang Xuan wrote: > This patch add package sending and receiving function codes. > > Signed-off-by: Ziyang Xuan Hi Ziyang, The lgtm.com tool is reporting some errors on this patch, can you please check: https://lgtm.com/projects/g/DPDK/dpdk/snapshot/b3d3e3a1c7ad57931c28c

[dpdk-dev] [PATCH] net/pcap: fix issue with unnecessary mbufs freeing

2019-07-11 Thread A.McLoughlin
In the eth_pcap_tx() and eth_pcap_tx_dumper() functions mbufs were freed without incrementing num_tx. To fix the issue, the mbuf freeing was removed as it was not of any benefit. Fixes: 6db141c91e1f ("pcap: support jumbo frames") Cc: sta...@dpdk.org Cc: tero@coriant.com Signed-off-by: A.McLou

Re: [dpdk-dev] Dpdk version 17.11.4 (i40e) switchover is not working

2019-07-11 Thread Bruce Richardson
On Thu, Jul 11, 2019 at 06:54:31PM +0530, chetan bhasin wrote: > Hello Everyone, > > I have figured out the DPDK version , i.e 18.11.2 , where LSC is working > fine for i40e (X722) under bond setup. > > So command-line I am using is > ./testpmd -c f -n 4 --vdev > 'net_bonding0,mode=1,slave=

Re: [dpdk-dev] [PATCH] net/pcap: fix issue with unnecessary mbufs freeing

2019-07-11 Thread Ferruh Yigit
On 7/11/2019 2:59 PM, A.McLoughlin wrote: > In the eth_pcap_tx() and eth_pcap_tx_dumper() functions mbufs were freed > without incrementing num_tx. To fix the issue, the mbuf freeing was > removed as it was not of any benefit. > > Fixes: 6db141c91e1f ("pcap: support jumbo frames") > Cc: sta...@dpd

Re: [dpdk-dev] [PATCH v2] devtools: better freebsd support

2019-07-11 Thread Olivier Matz
Hi, On Tue, Jul 09, 2019 at 12:05:59PM +0100, Musatescu, Flavia wrote: > > On 05/07/2019 14:58, Olivier Matz wrote: > > - As "readlink -e" and "readlink -m" do not exist on freebsd, > >use "readlink -f", it should not have any impact in these cases. > > - "sed -ri" is invalid on freebsd and s

[dpdk-dev] [PATCH v3] devtools: better freebsd support

2019-07-11 Thread Olivier Matz
- As "readlink -e" and "readlink -m" do not exist on freebsd, use "readlink -f", it should not have any impact in these cases. - "sed -ri" is invalid on freebsd and should be replaced by "sed -ri=''" - Use gmake instead of make. This fixes the following command: SYSDIR=/usr/src/sys ./devtool

Re: [dpdk-dev] [RFC] mbuf: support dynamic fields and flags

2019-07-11 Thread Wiles, Keith
> On Jul 11, 2019, at 2:53 AM, Olivier Matz wrote: > > Hi Keith, > > On Wed, Jul 10, 2019 at 06:12:16PM +, Wiles, Keith wrote: >> >> >>> On Jul 10, 2019, at 12:49 PM, Stephen Hemminger >>> wrote: >>> >>> On Wed, 10 Jul 2019 11:29:07 +0200 >>> Olivier Matz wrote: >>> /** *

Re: [dpdk-dev] [PATCH 2/2] eal: fix IOVA mode selection as VA for pci drivers

2019-07-11 Thread Thomas Monjalon
I was expecting some replies / reviews of this patch today. 10/07/2019 23:48, David Marchand: > The incriminated commit broke the use of RTE_PCI_DRV_IOVA_AS_VA which > was intended to mean "driver only supports VA" but had been understood > as "driver supports both PA and VA" by most net drivers

Re: [dpdk-dev] [PATCH] kni: fix possible buffer overflow

2019-07-11 Thread Stephen Hemminger
On Thu, 11 Jul 2019 13:35:07 +0100 Ferruh Yigit wrote: > 'kni_net_rx_lo_fifo()' can get segmented buffers, using 'pkt_len' for > that case will be wrong and some values can cause buffer overflow > in destination mbuf data. > > Signed-off-by: Ferruh Yigit > --- > kernel/linux/kni/kni_net.c | 2

Re: [dpdk-dev] [PATCH] doc: remove invalid parameter from af_xdp example

2019-07-11 Thread Ye Xiaolong
On 07/11, David Marchand wrote: >queue= parameter does not exist. >It might have been the previous name of the queue_count parameter, but >anyway, the default value 1 for the number of queues works fine. > >Fixes: f1debd77efaf ("net/af_xdp: introduce AF_XDP PMD") >Cc: sta...@dpdk.org > >Signed-off-

Re: [dpdk-dev] [RFC] mbuf: support dynamic fields and flags

2019-07-11 Thread Stephen Hemminger
On Thu, 11 Jul 2019 09:26:19 +0200 Olivier Matz wrote: > For generic fields, I think they should be declared in this file. For > instance, if we decide to replace the current m->timestamp field by a > dynamic field, we should add like this: > > #define RTE_MBUF_DYN_TIMESTAMP_ID "rte_timestamp" >

Re: [dpdk-dev] [EXT] Re: [PATCH v2] net/af_packet: add string error for system errors

2019-07-11 Thread Stephen Hemminger
On Thu, 11 Jul 2019 09:56:32 + Krzysztof Kanas wrote: > On 19-07-10 09:04, Stephen Hemminger wrote: > > External Email > > > > -- > > On Wed, 10 Jul 2019 16:46:30 +0200 > > wrote: > > > > > > > > +#define PMD_LOG_ERRNO

Re: [dpdk-dev] [PATCH v6 0/4] add IOVA = VA support in KNI

2019-07-11 Thread Ferruh Yigit
On 7/4/2019 10:48 AM, Jerin Jacob Kollanukkaran wrote: >> From: Vamsi Krishna Attunuru >> Sent: Thursday, July 4, 2019 12:13 PM >> To: dev@dpdk.org >> Cc: ferruh.yi...@intel.com; olivier.m...@6wind.com; >> arybche...@solarflare.com; Jerin Jacob Kollanukkaran ; >> Burakov, Anatoly >> Subject: Re

Re: [dpdk-dev] [PATCH v6 2/4] lib/kni: add PCI related information

2019-07-11 Thread Ferruh Yigit
On 6/25/2019 4:56 AM, vattun...@marvell.com wrote: > From: Vamsi Attunuru > > PCI related information is needed in KNI kernel module, > since it requires iommu domain info for address > translations(using iommu_iova_to_phys() call) when > KNI runs in IOVA = VA mode. > > Signed-off-by: Vamsi Attu

Re: [dpdk-dev] [PATCH v6 3/4] example/kni: add IOVA support for kni application

2019-07-11 Thread Ferruh Yigit
On 6/25/2019 4:56 AM, vattun...@marvell.com wrote: > From: Vamsi Attunuru > > Current KNI implementation operates in IOVA = PA mode, > Patch adds support for IOVA = VA mode by addressing > the issues with page address translations(IOVA <==> KVA). > > In this patch KNI application creates mempool

Re: [dpdk-dev] [PATCH v6 4/4] kernel/linux/kni: add IOVA support in kni module

2019-07-11 Thread Ferruh Yigit
On 6/25/2019 4:57 AM, vattun...@marvell.com wrote: > From: Kiran Kumar K > > Patch adds support for kernel module to work in IOVA = VA mode, > the idea is to get physical address from iova address using > iommu_iova_to_phys API and later use phys_to_virt API to > convert the physical address to k

Re: [dpdk-dev] [PATCH v6 4/4] kernel/linux/kni: add IOVA support in kni module

2019-07-11 Thread Stephen Hemminger
On Tue, 25 Jun 2019 09:27:00 +0530 wrote: > diff --git a/kernel/linux/kni/kni_misc.c b/kernel/linux/kni/kni_misc.c > index 1fc5eeb..b70c827 100644 > --- a/kernel/linux/kni/kni_misc.c > +++ b/kernel/linux/kni/kni_misc.c > @@ -294,6 +294,9 @@ kni_ioctl_create(struct net *net, uint32_t ioctl_num, >

[dpdk-dev] [PATCH v1] net/ice: use rx/tx DMA iova instead of phys_addr which is deprecated

2019-07-11 Thread Haiyue Wang
The phys_addr concept is deprecated in rte_memzone, change it to access iova member, and use the type 'rte_iova_t'. Also rename the rx/tx_ring_phys_addr definitions to rx/tx_ring_dma that matches the IOVA concept design. Fixes: 50370662b727 ("net/ice: support device and queue ops") Cc: sta...@dpd

[dpdk-dev] [PATCH] net/tap: remove redundant declarations

2019-07-11 Thread Stephen Hemminger
The rte_vdev_drivers are declared twice. The first one is not necessary. Signed-off-by: Stephen Hemminger --- drivers/net/tap/rte_eth_tap.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index 3841842f01f8..64bd049110e1 100644 -

Re: [dpdk-dev] [PATCH] net/tap: remove redundant declarations

2019-07-11 Thread Stephen Hemminger
On Thu, 11 Jul 2019 12:48:05 -0700 Stephen Hemminger wrote: > The rte_vdev_drivers are declared twice. > The first one is not necessary. > > Signed-off-by: Stephen Hemminger Many drivers have same problem. Will send new series

[dpdk-dev] [PATCH 2/9] net/af_packet: remove redundant rte_vdev_driver declaration

2019-07-11 Thread Stephen Hemminger
The rte_vdev_driver is declared twice. The first one is not necessary. Signed-off-by: Stephen Hemminger --- drivers/net/af_packet/rte_eth_af_packet.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c index

[dpdk-dev] [PATCH 1/9] net/tap: remove redundant declarations

2019-07-11 Thread Stephen Hemminger
The rte_vdev_drivers are declared twice. The first one is not necessary. Signed-off-by: Stephen Hemminger --- drivers/net/tap/rte_eth_tap.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index 3841842f01f8..64bd049110e1 100644 -

[dpdk-dev] [PATCH 0/9] redundant rte_vdev_driver declarations

2019-07-11 Thread Stephen Hemminger
Many drivers declare the local rte_vdev_driver structure multiple times. This is unnecessary. Surprised it is so common, I guess everyone copies the same code. Stephen Hemminger (9): net/tap: remove redundant declarations net/af_packet: remove redundant rte_vdev_driver declaration net/vhos

[dpdk-dev] [PATCH 4/9] net/null: remove redundant rte_vdev_driver declaration

2019-07-11 Thread Stephen Hemminger
The rte_vdev_driver is declared twice. The first one is not necessary. Signed-off-by: Stephen Hemminger --- drivers/net/null/rte_eth_null.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c index f1b521a7564a..31cbb84d031d 1006

[dpdk-dev] [PATCH 3/9] net/vhost: remove redundant rte_vdev_driver declaration

2019-07-11 Thread Stephen Hemminger
The rte_vdev_driver is declared twice. The first one is not necessary. Signed-off-by: Stephen Hemminger --- drivers/net/vhost/rte_eth_vhost.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c index 0b61e37a1995..57f382c65f

[dpdk-dev] [PATCH 5/9] net/pcap: remove redundant rte_vdev_driver declaration

2019-07-11 Thread Stephen Hemminger
The rte_vdev_driver is declared twice. The first one is not necessary. Signed-off-by: Stephen Hemminger --- drivers/net/pcap/rte_eth_pcap.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c index 26e85183e524..7ff6dc38dc9a 1006

[dpdk-dev] [PATCH 8/9] raw/skeleton_rawdev: remove redundant rte_vdev_driver declaration

2019-07-11 Thread Stephen Hemminger
The rte_vdev_driver is declared twice. The first one is not necessary. Signed-off-by: Stephen Hemminger --- drivers/raw/skeleton_rawdev/skeleton_rawdev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/raw/skeleton_rawdev/skeleton_rawdev.c b/drivers/raw/skeleton_rawdev/skeleton_ra

[dpdk-dev] [PATCH 6/9] net/ring: remove redundant rte_vdev_drive declaration

2019-07-11 Thread Stephen Hemminger
The rte_vdev_driver is declared twice. The first one is not necessary. Signed-off-by: Stephen Hemminger --- drivers/net/ring/rte_eth_ring.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c index 65c2813ba1bc..eb347bce61b7 1006

[dpdk-dev] [PATCH 9/9] raw/dpaa2_cmif: remove redundant rte_vdev_driver declaration

2019-07-11 Thread Stephen Hemminger
The rte_vdev_driver is declared twice. The first one is not necessary. Signed-off-by: Stephen Hemminger --- drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c b/drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c index 05960cca95e

[dpdk-dev] [PATCH 7/9] net/virtio_user: remove redundant rte_vdev_driver declaration

2019-07-11 Thread Stephen Hemminger
The rte_vdev_driver is declared twice. The first one is not necessary. Signed-off-by: Stephen Hemminger --- drivers/net/virtio/virtio_user_ethdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/virtio/virtio_user_ethdev.c b/drivers/net/virtio/virtio_user_ethdev.c index 0a57db

Re: [dpdk-dev] [PATCH 1/9] net/tap: remove redundant declarations

2019-07-11 Thread Wiles, Keith
> On Jul 11, 2019, at 3:03 PM, Stephen Hemminger > wrote: > > The rte_vdev_drivers are declared twice. > The first one is not necessary. > > Signed-off-by: Stephen Hemminger > --- > drivers/net/tap/rte_eth_tap.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/net/tap/rte_e

[dpdk-dev] [PATCH v2] net/ice: fix flow validation fail issue

2019-07-11 Thread Qiming Yang
The return value of function ice_flow_valid_attr should be non-zero. This patch fixed this issue. Fixes: d76116a4678f ("net/ice: add generic flow API") Cc: sta...@dpdk.org Signed-off-by: Qiming Yang --- drivers/net/ice/ice_generic_flow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [dpdk-dev] [PATCH v1] net/ice: use rx/tx DMA iova instead of phys_addr which is deprecated

2019-07-11 Thread Ye Xiaolong
Hi, Haiyue On 07/12, Haiyue Wang wrote: >The phys_addr concept is deprecated in rte_memzone, change it to access >iova member, and use the type 'rte_iova_t'. > It seems this issue also exists in other PMDs, like ixgbe, i40e, iavf..., do you have plan to fix them all? For the patch, Reviewed-by:

Re: [dpdk-dev] [PATCH v2] net/ice: fix flow validation fail issue

2019-07-11 Thread Ye Xiaolong
Hi, qiming On 07/12, Qiming Yang wrote: >The return value of function ice_flow_valid_attr should >be non-zero. This patch fixed this issue. > Minor nit about the title, 'issue' is never needed after word 'fix', what about net/ice: fix flow validation failure ? And for the commit log, it's uncle

Re: [dpdk-dev] [PATCH v1] net/ice: use rx/tx DMA iova instead of phys_addr which is deprecated

2019-07-11 Thread Wang, Haiyue
> -Original Message- > From: Ye, Xiaolong > Sent: Friday, July 12, 2019 16:30 > To: Wang, Haiyue > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v1] net/ice: use rx/tx DMA iova instead of > phys_addr which is > deprecated > > Hi, Haiyue > > On 07/12, Haiyue Wang wro

Re: [dpdk-dev] [PATCH v3 1/1] fbarray: get fbarrays from containerized secondary

2019-07-11 Thread Yasufumi Ogawa
On 2019/07/11 22:14, Burakov, Anatoly wrote: On 11-Jul-19 12:57 PM, Yasufumi Ogawa wrote: On 2019/07/11 19:53, Burakov, Anatoly wrote: On 11-Jul-19 11:31 AM, yasufu...@gmail.com wrote: From: Yasufumi Ogawa <...> +    if (getpid() == 1) { +    FILE *hn_fp; +    hn_fp = fopen("/etc/

Re: [dpdk-dev] [PATCH v1] net/ice: use rx/tx DMA iova instead of phys_addr which is deprecated

2019-07-11 Thread Wang, Haiyue
Hi Xiaolong, > -Original Message- > From: Wang, Haiyue > Sent: Friday, July 12, 2019 10:12 > To: Ye, Xiaolong > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: RE: [dpdk-dev] [PATCH v1] net/ice: use rx/tx DMA iova instead of > phys_addr which is > deprecated > > > -Original Message

[dpdk-dev] [PATCH v5 2/6] lib/lpm: memory orderings to avoid race conditions for v1604

2019-07-11 Thread Ruifeng Wang
When a tbl8 group is getting attached to a tbl24 entry, lookup might fail even though the entry is configured in the table. For ex: consider a LPM table configured with 10.10.10.1/24. When a new entry 10.10.10.32/28 is being added, a new tbl8 group is allocated and tbl24 entry is changed to point

[dpdk-dev] [PATCH v5 0/6] LPM4 memory ordering changes

2019-07-11 Thread Ruifeng Wang
LPM4 uses DIR24-8 method of routing info data organization. Routing rule with prefix longer than 24 bits will be stored in a tbl24 entry together with an associated tbl8 group. When a tbl8 group is getting attached to a tbl24 entry, lookup might fail even though the entry is configured in the tabl

[dpdk-dev] [PATCH v5 1/6] lib/lpm: not inline unnecessary functions

2019-07-11 Thread Ruifeng Wang
Tests showed that the function inlining caused performance drop on some x86 platforms with the memory ordering patches applied. By force no-inline functions, the performance was better than before on x86 and no impact to arm64 platforms. Besides inlines of other functions are removed to let compil

[dpdk-dev] [PATCH v5 3/6] lib/lpm: memory orderings to avoid race conditions for v20

2019-07-11 Thread Ruifeng Wang
When a tbl8 group is getting attached to a tbl24 entry, lookup might fail even though the entry is configured in the table. For ex: consider a LPM table configured with 10.10.10.1/24. When a new entry 10.10.10.32/28 is being added, a new tbl8 group is allocated and tbl24 entry is changed to point

[dpdk-dev] [PATCH v5 4/6] lib/lpm: use atomic store to avoid partial update

2019-07-11 Thread Ruifeng Wang
Compiler could generate non-atomic stores for whole table entry updating. This may cause incorrect nexthop to be returned, if the byte with valid flag is updated prior to the byte with nexthop is updated. Changed to use atomic store to update whole table entry. Suggested-by: Medvedkin Vladimir S

  1   2   >