[dpdk-dev] [PATCH] drivers/octeontx2: fix coverity issues

2019-08-04 Thread Harman Kalra
Addresed issues reported by coverity: NULL pointer dereferencing issues, unchecked return value, uinitialized scalar value, probable deadcode cases, unintended sign extension, bad bit shift operation, Wrong sizeof argument (SIZEOF_MISMATCH) Coverity issue: 343396, 345028, 344977, 345015, 345025, 3

Re: [dpdk-dev] [PATCH v5 1/4] examples/multi_process/client_server_mp: check port validity

2019-08-04 Thread Matan Azrad
Hi Stephen From: Stephen Hemminger > On Fri, 2 Aug 2019 05:33:20 + > Matan Azrad wrote: > > > Hi Stephen > > > > One more small comment inline > > > > From: Stephen Hemminger > > > Sent: Friday, August 2, 2019 5:58 AM > > > To: dev@dpdk.org > > > Cc: Stephen Hemminger > > > Subject: [dpdk

Re: [dpdk-dev] [PATCH 5/5] net/mlx5: remove blank lines at eof

2019-08-04 Thread Slava Ovsiienko
> -Original Message- > From: dev On Behalf Of Stephen Hemminger > Sent: Wednesday, July 31, 2019 17:58 > To: dev@dpdk.org > Cc: Stephen Hemminger > Subject: [dpdk-dev] [PATCH 5/5] net/mlx5: remove blank lines at eof > > Whitespace fix. > > Signed-off-by: Stephen Hemminger Acked-by: Via

Re: [dpdk-dev] [PATCH v2] net/mlx5: fix limit on direct rules tables number

2019-08-04 Thread Raslan Darawsheh
Hi, > -Original Message- > From: dev On Behalf Of Dekel Peled > Sent: Thursday, August 1, 2019 4:23 PM > To: Yongseok Koh ; Slava Ovsiienko > ; Shahaf Shuler > Cc: Ori Kam ; dev@dpdk.org > Subject: [dpdk-dev] [PATCH v2] net/mlx5: fix limit on direct rules tables > number > > MLX5 PMD li

Re: [dpdk-dev] [PATCH] net/mlx5: txq_inline_min not set for ConnectX-5 adapters

2019-08-04 Thread Raslan Darawsheh
Hi, > -Original Message- > From: dev On Behalf Of David Christensen > Sent: Thursday, August 1, 2019 1:41 AM > To: Slava Ovsiienko > Cc: dev@dpdk.org; David Christensen > Subject: [dpdk-dev] [PATCH] net/mlx5: txq_inline_min not set for ConnectX- > 5 adapters > > The function mlx5_set_m

[dpdk-dev] [PATCH 1/5] net/fm10k: fix dereference after null check coverity

2019-08-04 Thread Xiao Zhang
The address of receive queue start segment was not updated when found by iterated checking, update the address to fix coverity issue. Coverity issue: 343416 Fixes: fe65e1e1 ("fm10k: add vector scatter Rx") Cc: sta...@dpdk.org Signed-off-by: Xiao Zhang --- drivers/net/fm10k/fm10k_rxtx_vec.c | 1

[dpdk-dev] [PATCH 2/5] net/iavf: fix dereference after null check coverity

2019-08-04 Thread Xiao Zhang
The address of receive queue start segment was not updated when found by iterated checking, update the address to fix coverity issue. Coverity issue: 343447 Fixes: 319c421f ("net/avf: enable SSE Rx Tx") Cc: sta...@dpdk.org Signed-off-by: Xiao Zhang --- drivers/net/iavf/iavf_rxtx_vec_sse.c | 1 +

[dpdk-dev] [PATCH 3/5] net/i40e: fix dereference after null check coverity

2019-08-04 Thread Xiao Zhang
The address of receive queue start segment was not updated when found by iterated checking, update the address to fix coverity issue. Coverity issue: 343422 Coverity issue: 343403 Fixes: ca74903b ("net/i40e: extract non-x86 specific code from vector driver") Cc: sta...@dpdk.org Signed-off-by: Xi

[dpdk-dev] [PATCH 4/5] net/ice: fix dereference after null check coverity

2019-08-04 Thread Xiao Zhang
The address of receive queue start segment was not updated when found by iterated checking, update the address to fix coverity issue. Coverity issue: 343452 Coverity issue: 343407 Fixes: c68a52b8 ("net/ice: support vector SSE in Rx") Cc: sta...@dpdk.org Signed-off-by: Xiao Zhang --- drivers/net

[dpdk-dev] [PATCH 5/5] net/ixgbe: fix dereference after null check coverity

2019-08-04 Thread Xiao Zhang
The address of receive queue start segment was not updated when found by iterated checking, update the address to fix coverity issue. Coverity issue: 13245 Fixes: 8a44c15a ("net/ixgbe: extract non-x86 specific code from vector driver") Cc: sta...@dpdk.org Signed-off-by: Xiao Zhang --- drivers/n

[dpdk-dev] [PATCH] net/e1000: fix unchecked return value coverity issue

2019-08-04 Thread Xiao Zhang
Add return value checking when reading configure information from PCI register to avoid coverity issue. Fixes: 1fc97012 ("net/e1000: fix i219 hang on reset/close") Cc: sta...@dpdk.org Signed-off-by: Xiao Zhang --- drivers/net/e1000/em_rxtx.c | 18 +++--- 1 file changed, 15 insertion

[dpdk-dev] [PATCH] net/mlx5: fix completion queue overflow for large bursts

2019-08-04 Thread Viacheslav Ovsiienko
There is the limit on completion descriptor fetch to improve latency. If burst size is large there might be not enough resources freed in completion processing. This fix reiterates sending loop and allows multiple completion descriptor fetch and processing. Fixes: 18a1c20044c0 ("net/mlx5: implemen

[dpdk-dev] [PATCH] net/mlx5: fix completion request for inline packets

2019-08-04 Thread Viacheslav Ovsiienko
If packets are completely inline the mbuf is freed immediately after data copying and no pointer is stored into elts array to be free on completion. This leads the elts_head is not updated and completion request buffer counter works incorrect. This patch decrements the base value elts_comp used to

[dpdk-dev] [PATCH] net/mlx5: fix packet size inline settings

2019-08-04 Thread Viacheslav Ovsiienko
This patch fixes the default settings for packet size to inline with Enhanced Multi-Packet Write feature, allowing 256B packets to be inlined with Out-Of-the-Box settings. Fixes: 50724e1bba76 ("net/mlx5: update Tx definitions") Signed-off-by: Viacheslav Ovsiienko --- doc/guides/nics/mlx5.rst

[dpdk-dev] [PATCH] net/mlx5: fix completion queue drain loop

2019-08-04 Thread Viacheslav Ovsiienko
The completion loop speed optimizations for error-free operations are done - no CQE field fetch on each loop iteration. Also, code size is oprimized - the flush buffers routine is invoked once. Fixes: 318ea4cfa1b1 ("net/mlx5: fix Tx completion descriptors fetching loop") Signed-off-by: Viacheslav

[dpdk-dev] [PATCH] net/mlx5: fix inline data settings

2019-08-04 Thread Viacheslav Ovsiienko
If the minimal inline data are required the data inline feature must be engaged. There were the incorrect settings enabling the entire small packet inline (in size up to 82B) which may result in sending rate declining if there is no enough cores. The same problem was raised if inline was enabled to

Re: [dpdk-dev] [PATCH] doc: announce API change in mbuf

2019-08-04 Thread Olivier Matz
On Thu, Aug 01, 2019 at 02:41:23PM +0200, Thomas Monjalon wrote: > In order to prepare for a long term stable API, the mbuf library > has to change: allowing more features as dynamic fields, > and fixing the lack of rte_ prefix in the namespace. > The namespace fix should not break the compatibilit

Re: [dpdk-dev] [PATCH 1/5] net/fm10k: fix dereference after null check coverity

2019-08-04 Thread Ye Xiaolong
Hi, Xiao It's better to have a cover letter for a patch series that contains more than 1 patches, where you can have an overall description of the patchset. On 08/05, Xiao Zhang wrote: >The address of receive queue start segment was not updated when found by >iterated checking, update the address

Re: [dpdk-dev] [PATCH] bus/pci: always check IOMMU capabilities

2019-08-04 Thread Takeshi T Yoshimura
-David Marchand wrote: - >To: dev@dpdk.org >From: David Marchand >Date: 08/02/2019 07:14PM >Cc: anatoly.bura...@intel.com, t...@jp.ibm.com, >d...@linux.vnet.ibm.com >Subject: [PATCH] bus/pci: always check IOMMU capabilities > >IOMMU capabilities won't change and must be checked even if n

Re: [dpdk-dev] [PATCH] drivers/octeontx2: fix coverity issues

2019-08-04 Thread Jerin Jacob Kollanukkaran
> -Original Message- > From: Harman Kalra > Sent: Sunday, August 4, 2019 12:51 PM > To: Jerin Jacob Kollanukkaran ; Nithin Kumar > Dabilpuram ; Vamsi Krishna Attunuru > ; Kiran Kumar Kokkilagadda > > Cc: dev@dpdk.org; Harman Kalra > Subject: [PATCH] drivers/octeontx2: fix coverity iss

[dpdk-dev] [PATCH] raw/ntb: fix null pointer dereference

2019-08-04 Thread Xiaoyun Li
This patch fixes null pointer dereference issues found by coverity scan. Coverity issue: 344981, 344991, 345000, 345002, 345006, 345024 Fixes: 277310027965 ("raw/ntb: introduce NTB raw device driver") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- drivers/raw/ntb/ntb.c | 18 +++--

[dpdk-dev] [PATCH] examples/ntb: fix error handling

2019-08-04 Thread Xiaoyun Li
This patch adds return value checking for fseek function to fix error handling issue found by coverity scan. Coverity issue: 344996 Fixes: c5eebf85badc ("examples/ntb: add example for NTB") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- examples/ntb/ntb_fwd.c | 13 +++-- 1 file chang

Re: [dpdk-dev] [PATCH] net/e1000: fix unchecked return value coverity issue

2019-08-04 Thread Ye Xiaolong
On 08/05, Xiao Zhang wrote: >Add return value checking when reading configure information from PCI >register to avoid coverity issue. > >Fixes: 1fc97012 ("net/e1000: fix i219 hang on reset/close") >Cc: sta...@dpdk.org > >Signed-off-by: Xiao Zhang >--- > drivers/net/e1000/em_rxtx.c | 18 +++

[dpdk-dev] [PATCH] net/octeontx2: add 96xx A1 silicon revision support

2019-08-04 Thread Nithin Dabilpuram
Update workaround changes for erratas that are fixed on 96xx A1. This patch also enables cq drop for all the passes for maintaining performance along with updating a default Rx ring size in dev_info. Signed-off-by: Nithin Dabilpuram --- drivers/common/octeontx2/otx2_dev.h | 16 ++

Re: [dpdk-dev] [PATCH] raw/ntb: fix null pointer dereference

2019-08-04 Thread Ye Xiaolong
On 08/05, Xiaoyun Li wrote: >This patch fixes null pointer dereference issues found by coverity scan. > >Coverity issue: 344981, 344991, 345000, 345002, 345006, 345024 >Fixes: 277310027965 ("raw/ntb: introduce NTB raw device driver") >Cc: sta...@dpdk.org > >Signed-off-by: Xiaoyun Li >--- > drivers

[dpdk-dev] [PATCH 1/3] crypto/dpaa_sec: support IPv6 tunnel for protocol offload

2019-08-04 Thread Akhil Goyal
outer IP header is formed at the time of session initialization using the ipsec xform. This outer IP header will be appended by hardware for each packet. Signed-off-by: Akhil Goyal --- drivers/crypto/dpaa_sec/dpaa_sec.c | 69 ++ drivers/crypto/dpaa_sec/dpaa_sec.h | 11

[dpdk-dev] [PATCH 2/3] crypto/dpaa2_sec: support IPv6 tunnel for protocol offload

2019-08-04 Thread Akhil Goyal
outer IP header is formed at the time of session initialization using the ipsec xform. This outer IP header will be appended by hardware for each packet. Signed-off-by: Akhil Goyal --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 71 +++-- drivers/crypto/dpaa2_sec/dpaa2_sec_priv

[dpdk-dev] [PATCH 3/3] examples/ipsec-secgw: support IPv6 tunnel for lookaside proto

2019-08-04 Thread Akhil Goyal
IPv6 tunnels are already supported in case of inline and lookaside none cases. In case of protocol offload, the details for IPv6 header need to be added in session configuration for security session create. Signed-off-by: Akhil Goyal --- examples/ipsec-secgw/ipsec.c | 14 +- 1 file c

Re: [dpdk-dev] [PATCH] examples/ntb: fix error handling

2019-08-04 Thread Ye Xiaolong
On 08/05, Xiaoyun Li wrote: >This patch adds return value checking for fseek function to fix >error handling issue found by coverity scan. > >Coverity issue: 344996 >Fixes: c5eebf85badc ("examples/ntb: add example for NTB") >Cc: sta...@dpdk.org > >Signed-off-by: Xiaoyun Li >--- > examples/ntb/ntb_

Re: [dpdk-dev] [PATCH] bus/pci: always check IOMMU capabilities

2019-08-04 Thread David Marchand
On Mon, Aug 5, 2019 at 5:57 AM Takeshi T Yoshimura wrote: > > -David Marchand wrote: - > > >To: dev@dpdk.org > >From: David Marchand > >Date: 08/02/2019 07:14PM > >Cc: anatoly.bura...@intel.com, t...@jp.ibm.com, > >d...@linux.vnet.ibm.com > >Subject: [PATCH] bus/pci: always check IOMMU c

[dpdk-dev] [PATCH v2] bus/pci: always check IOMMU capabilities

2019-08-04 Thread David Marchand
IOMMU capabilities won't change and must be checked even if no PCI device seem to be supported yet when EAL initialised. This is to accommodate with SPDK that registers its drivers after rte_eal_init(), especially on PPC platform where the IOMMU does not support VA. Fixes: 703458e19c16 ("bus/pci:

Re: [dpdk-dev] [PATCH] net/octeontx2: add 96xx A1 silicon revision support

2019-08-04 Thread Jerin Jacob Kollanukkaran
> -Original Message- > From: Nithin Dabilpuram > Sent: Monday, August 5, 2019 11:11 AM > To: Jerin Jacob Kollanukkaran ; Nithin Kumar > Dabilpuram ; Vamsi Krishna Attunuru > ; Kiran Kumar Kokkilagadda > > Cc: dev@dpdk.org > Subject: [PATCH] net/octeontx2: add 96xx A1 silicon revision supp

Re: [dpdk-dev] [PATCH v2 0/2] Enable fast-unit tests under travis

2019-08-04 Thread David Marchand
On Sat, Aug 3, 2019 at 12:00 AM Thomas Monjalon wrote: > > 02/08/2019 23:25, Aaron Conole: > > This series turns the fast unit tests on for a limited set of > > builds under the travis build system. An example run is available > > at: > > > > https://travis-ci.org/orgcandman/dpdk/builds/565991679

Re: [dpdk-dev] [PATCH] examples/ntb: fix error handling

2019-08-04 Thread Li, Xiaoyun
Sure. Will update in v2. Thx. > -Original Message- > From: Ye, Xiaolong > Sent: Monday, August 5, 2019 14:05 > To: Li, Xiaoyun > Cc: Wu, Jingjing ; dev@dpdk.org; sta...@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] examples/ntb: fix error handling > > On 08/05, Xiaoyun Li wrote: > >This pat

[dpdk-dev] [PATCH v2] examples/ntb: fix error handling

2019-08-04 Thread Xiaoyun Li
This patch adds return value checking for fseek function to fix error handling issue found by coverity scan. Coverity issue: 344996 Fixes: c5eebf85badc ("examples/ntb: add example for NTB") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- examples/ntb/ntb_fwd.c | 10 -- 1 file changed,

Re: [dpdk-dev] [PATCH] net/mlx5: fix packet size inline settings

2019-08-04 Thread Matan Azrad
From: Viacheslav Ovsiienko > This patch fixes the default settings for packet size to inline with Enhanced > Multi-Packet Write feature, allowing 256B packets to be inlined with Out-Of- > the-Box settings. > > Fixes: 50724e1bba76 ("net/mlx5: update Tx definitions") > > Signed-off-by: Viachesl

Re: [dpdk-dev] [PATCH] net/mlx5: fix completion queue overflow for large bursts

2019-08-04 Thread Matan Azrad
From: Viacheslav Ovsiienko > There is the limit on completion descriptor fetch to improve latency. If burst > size is large there might be not enough resources freed in completion > processing. This fix reiterates sending loop and allows multiple completion > descriptor fetch and processing. >

Re: [dpdk-dev] [PATCH] net/mlx5: fix completion request for inline packets

2019-08-04 Thread Matan Azrad
From: Viacheslav Ovsiienko > If packets are completely inline the mbuf is freed immediately after data > copying and no pointer is stored into elts array to be free on completion. > This > leads the elts_head is not updated and completion request buffer counter > works incorrect. > This patch d

Re: [dpdk-dev] [PATCH] net/mlx5: fix inline data settings

2019-08-04 Thread Matan Azrad
From: Viacheslav Ovsiienko > If the minimal inline data are required the data inline feature must be > engaged. There were the incorrect settings enabling the entire small packet > inline (in size up to 82B) which may result in sending rate declining if > there is > no enough cores. The same pr

Re: [dpdk-dev] [PATCH] net/mlx5: fix completion queue drain loop

2019-08-04 Thread Matan Azrad
From: Viacheslav Ovsiienko > The completion loop speed optimizations for error-free operations are done > - no CQE field fetch on each loop iteration. Also, code size is oprimized - > the > flush buffers routine is invoked once. > > Fixes: 318ea4cfa1b1 ("net/mlx5: fix Tx completion descriptors

[dpdk-dev] *mlx5_get_ifname* should be protected by lock

2019-08-04 Thread He Peng
Hi,  In dpdk 16.11, most of mlnx device APIs except RX/TX are protected by a private lock. In DPDK 18.11, these locks are removed, from the code it seems this is due to all APIs will create a disposable  socket and the socket will be used to set/get specific device features, and will be close