[PATCH v2 1/2] common/sfc_efx/base: add MAE IP fragmentation match bits

2023-06-28 Thread Artemii Morozov
Introduce necessary infrastructure for these bits to be set and validated. Using a combination of these bits IP fragmentation can be configured. Signed-off-by: Artemii Morozov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx.h | 4 drivers/common/s

[PATCH v2 0/2] support IPv4 fragment matching in transfer rules

2023-06-28 Thread Artemii Morozov
This patch seria adds support for matching fragment offsets for IPv4 packets, but with some limitations. Exact matching is supported only for zero offset, ranges are allowed for non-zero offsets. v2: * fix build issue Artemii Morozov (2): common/sfc_efx/base: add MAE IP fragmentation match bi

[PATCH v2 2/2] net/sfc: support IPv4 fragment matching in transfer rules

2023-06-28 Thread Artemii Morozov
This patch adds the support for IPv4 fragmented packets, but with some limitations: for non-zero fragment offset an exact match is not allowed, but ranges are allowed. Signed-off-by: Artemii Morozov Reviewed-by: Viacheslav Galaktionov Reviewed-by: Andy Moreton --- drivers/net/sfc/sfc_mae.c | 1

RE: [PATCH] net/iavf: fix VLAN insertion in vector path

2023-06-28 Thread Lu, Wenzhuo
Hi Qi, > -Original Message- > From: Zhang, Qi Z > Sent: Wednesday, June 28, 2023 2:57 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Cc: Lu, Wenzhuo ; sta...@dpdk.org > Subject: RE: [PATCH] net/iavf: fix VLAN insertion in vector path > > We may need to update the iavf.ini to claim VLAN offload is

[PATCH] doc: update release notes for Intel IPU

2023-06-28 Thread beilei . xing
From: Beilei Xing Update release notes for Intel IPU new features: - Support VF whose device id is 0x145c. - Support hairpin queue. Fixes: 32bcd47e16fe ("net/idpf: support VF") Fixes: 1ec8064832db ("net/cpfl: add haipin queue group during vport init") Signed-off-by: Beilei Xing --- doc/guid

RE: [PATCH] net/iavf: fix SCTP tunnel packet forwarding issue

2023-06-28 Thread Jiale, SongX
> -Original Message- > From: Wenzhuo Lu > Sent: Wednesday, June 21, 2023 9:15 AM > To: dev@dpdk.org > Cc: Lu, Wenzhuo > Subject: [PATCH] net/iavf: fix SCTP tunnel packet forwarding issue > > The SCTP tunnel packets cannot be forwarded in AVX2 mode. > > As 2 features are developed in par

Re: [PATCH] examples/ntb: remove redundant logic for dev close

2023-06-28 Thread Thomas Monjalon
28/06/2023 04:37, Guo, Junfeng: > From: Guo, Junfeng > > From: Thomas Monjalon > > > 14/06/2023 07:14, Junfeng Guo: > > > > During EAL cleanup stage, all bus devices are cleaned up properly. > > > > Based on this, there is no need to do extra device close process, > > > > which may call the dev op

RE: [PATCH] examples/ntb: remove redundant logic for dev close

2023-06-28 Thread Guo, Junfeng
> -Original Message- > From: Thomas Monjalon > Sent: Wednesday, June 28, 2023 15:53 > To: Wu, Jingjing ; Guo, Junfeng > > Cc: dev@dpdk.org; sta...@dpdk.org; He, Xingguang > ; Laatz, Kevin ; > Richardson, Bruce > Subject: Re: [PATCH] examples/ntb: remove redundant logic for dev close >

[PATCH] test/crypto: fix PDCP-SDAP test vectors

2023-06-28 Thread Aakash Sasidharan
Fix incorrect fields in PDCP Header. 1. Only Data PDUs should be ciphered and authenticated. Here the vectors are control PDUs which should not be crypto processed. Change the D/C bit to make the vector as Data PDU 2. Reserved fields must be set to 0. Updated the vectors and MAC-I values to

[PATCH] test/crypto: fix PDCP-SDAP test vectors

2023-06-28 Thread Aakash Sasidharan
Fix incorrect fields in PDCP Header. 1. Only Data PDUs should be ciphered and authenticated. Here the vectors are control PDUs which should not be crypto processed. Change the D/C bit to make the vector as Data PDU 2. Reserved fields must be set to 0. Updated the vectors and MAC-I values to

RE: [PATCH] net/iavf: fix VLAN insertion in vector path

2023-06-28 Thread Zhang, Qi Z
> -Original Message- > From: Lu, Wenzhuo > Sent: Wednesday, June 28, 2023 3:13 PM > To: Zhang, Qi Z ; dev@dpdk.org > Cc: sta...@dpdk.org > Subject: RE: [PATCH] net/iavf: fix VLAN insertion in vector path > > Hi Qi, > > > -Original Message- > > From: Zhang, Qi Z > > Sent: Wedn

Re: [dpdk-dev] [RFC PATCH v2] raw/ptdma: introduce ptdma driver

2023-06-28 Thread Ferruh Yigit
On 6/16/2022 3:27 PM, Sebastian, Selwin wrote: > [AMD Official Use Only - General] > > [AMD Official Use Only - General] > > We were having issues with iommu. Now we will try to push the patch without > iommu enabled. Will split patch into smaller ones and submit soon. > > Thanks, > Selwin > >

RE: [PATCH v3] common/qat: fix detach QAT crypto compress build

2023-06-28 Thread Power, Ciara
> -Original Message- > From: Vikash Poddar > Sent: Monday 26 June 2023 12:29 > To: Ji, Kai ; Fan Zhang ; Ashish > Gupta > Cc: dev@dpdk.org; Poddar, Vikash ChandraX > ; Richardson, Bruce > ; sta...@dpdk.org > Subject: [PATCH v3] common/qat: fix detach QAT crypto compress build > > qat_

[PATCH v2] raw/ntb: add check for disabling interrupt in dev close ops

2023-06-28 Thread Junfeng Guo
During EAL cleanup stage, all bus devices are cleaned up properly. In the meantime, the ntb example app will also do the device cleanup process, which may call the dev ops '*dev->dev_ops->dev_close' twice. If this dev ops for ntb was called twice, the interrupt handle for EAL will be disabled twic

[Bug 1259] [dpdk-23.07] vf_smoke: vf cannot forward packets

2023-06-28 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1259 Bug ID: 1259 Summary: [dpdk-23.07] vf_smoke: vf cannot forward packets Product: DPDK Version: 23.07 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal

[PATCH v2] app/testpmd: add dump command help message

2023-06-28 Thread Viacheslav Ovsiienko
There was missing "dump_x" commands help message. Patch updates "help display" section of the help message. Signed-off-by: Viacheslav Ovsiienko --- app/test-pmd/cmdline.c | 68 ++ 1 file changed, 68 insertions(+) diff --git a/app/test-pmd/cmdline.c b/

Re: [PATCH v4 2/9] event/dlb2: skip configuration if no eventdev lib

2023-06-28 Thread David Marchand
On Fri, Jun 23, 2023 at 5:07 PM Bruce Richardson wrote: > > While the build system will skip building most libs and drivers when a > dependency is missing for a component, for DLB2 driver, the > "static_rte_eventdev" object is referenced inside the meson.build file > itself, which will cause crash

Re: [PATCH v2 0/2] support IPv4 fragment matching in transfer rules

2023-06-28 Thread Ferruh Yigit
On 6/28/2023 8:00 AM, Artemii Morozov wrote: > This patch seria adds support for matching fragment offsets for IPv4 packets, > but with some limitations. Exact matching is supported only for zero offset, > ranges are allowed for non-zero offsets. > > v2: > * fix build issue > > Artemii Morozov

[PATCH v3 0/4] net/mlx5: introduce Tx datapath tracing

2023-06-28 Thread Viacheslav Ovsiienko
The mlx5 provides the send scheduling on specific moment of time, and for the related kind of applications it would be extremely useful to have extra debug information - when and how packets were scheduled and when the actual sending was completed by the NIC hardware (it helps application to track

[PATCH v3 1/4] net/mlx5: introduce tracepoints for mlx5 drivers

2023-06-28 Thread Viacheslav Ovsiienko
There is an intention to engage DPDK tracing capabilities for mlx5 PMDs monitoring and profiling in various modes. The patch introduces tracepoints for the Tx datapath in the ethernet device driver. To engage this tracing capability the following steps should be taken: - meson option -Denable_tra

[PATCH v3 3/4] net/mlx5: add Tx datapath trace analyzing script

2023-06-28 Thread Viacheslav Ovsiienko
The Python script is intended to analyze mlx5 PMD datapath traces and report: - tx_burst routine timings - how packets are pushed to WQEs - how packet sending is completed with timings Signed-off-by: Viacheslav Ovsiienko --- drivers/net/mlx5/tools/mlx5_trace.py | 271 ++

[PATCH v3 2/4] net/mlx5: add comprehensive send completion trace

2023-06-28 Thread Viacheslav Ovsiienko
There is the demand to trace the send completions of every WQE if time scheduling is enabled. The patch extends the size of completion queue and requests completion on every issued WQE in the send queue. As the result hardware provides CQE on each completed WQE and driver is able to fetch completi

[PATCH v3 4/4] doc: add mlx5 datapath tracing feature description

2023-06-28 Thread Viacheslav Ovsiienko
The mlx5 provides the send scheduling on specific moment of time, and for the related kind of applications it would be extremely useful to have extra debug information - when and how packets were scheduled and when the actual sending was completed by the NIC hardware (it helps application to track

Re: [PATCH v1 1/1] maintainers: update maintainership of power lib

2023-06-28 Thread Hunt, David
On 15/06/2023 10:16, Anatoly Burakov wrote: Add co-maintainer for power library. Signed-off-by: Anatoly Burakov --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 906b31f97c..21c971a273 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1671,6 +

Re: [PATCH v4 3/4] build: select deprecated libraries

2023-06-28 Thread David Marchand
On Fri, Jun 23, 2023 at 1:33 PM Morten Brørup wrote: > > > > > - I don't have a usage for this, but if we go with separating > > > > > deprecated and "normal" optional libs filtering, should I introduce a > > > > > disable_deprecated_libs too? > > > > > > > > > > > > > That would give us *way* to

[PATCH] eal: fix file descriptor leakage with unhandled messages

2023-06-28 Thread Viacheslav Ovsiienko
The sendmsg()/recvmsg() API is used to establish communication between the DPDK processes. The API supposes inter-process file descriptors sending and conversion, the recipient sees the resulting descriptors in the received message - the operating systems creates ones in the right context. The mes

[PATCH] net/mlx5: fix matcher index in case of insertion by index

2023-06-28 Thread Alexander Kozyrev
There is only one matcher in an index-based template tables. Pass the 0 as the matcher index, not actions template index. Fixes: adfa4b1445 ("net/mlx5: add flow rule insertion by index") Signed-off-by: Alexander Kozyrev --- drivers/net/mlx5/mlx5_flow_hw.c | 3 +-- 1 file changed, 1 insertion(+)

Re: [PATCH v2] app/testpmd: add dump command help message

2023-06-28 Thread Ferruh Yigit
On 6/28/2023 10:54 AM, Viacheslav Ovsiienko wrote: > There was missing "dump_x" commands help message. > Patch updates "help display" section of the help message. > > Signed-off-by: Viacheslav Ovsiienko > Reviewed-by: Ferruh Yigit Applied to dpdk-next-net/main, thanks. <...> > @@ -982,6

[PATCH v5 2/2] build: select optional libraries

2023-06-28 Thread David Marchand
There is currently no way to know which libraries are optional. Introduce a enable_libs option (close to what we have for drivers) so that packagers or projects consuming DPDK can more easily select the optional libraries that matter to them and disable other optional libraries. Signed-off-by: Dav

[PATCH v5 1/2] build: select deprecated libraries

2023-06-28 Thread David Marchand
Rework deprecated libraries selection by introducing a new configuration option. This breaks existing configurations that were relying on disable_libs='' for enabling deprecated libraries. On the other hand, it will make enabling optional libraries more straightforward by taking the deprecated lib

[PATCH v5 0/2] Select optional libraries

2023-06-28 Thread David Marchand
This series is one implementation to try and please users who want to select more easily which parts of DPDK are built. It introduces a change in behavior for enabling deprecated libraries: this series is aimed at the next release but sent early as a demo of what changes are required. If no stron

[PATCH] doc: announce change for building deprecated libraries

2023-06-28 Thread David Marchand
As part of a larger work on selecting parts of DPDK of interests for users, enabling deprecated libraries won't be done via the disable_libs build option anymore. An example of the new build option can be found at: https://patchwork.dpdk.org/project/dpdk/patch/20230628132004.340074-2-david.march..

[PATCH v2] usertools: add tool to generate balanced rss traffic flows

2023-06-28 Thread Robin Jarry
usage: dpdk-rss-flows.py [-h] [-s SPORT_RANGE] [-d DPORT_RANGE] [-r] [-k RSS_KEY] [-t RETA_SIZE] [-a] [-j] RX_QUEUES SRC DST Craft IP{v6}/{TCP/UDP} traffic flows that will evenly spread over a given number of RX queues according to the RSS algorith

Re: [PATCH v5 0/6] replace rte atomics with GCC builtin atomics

2023-06-28 Thread Patrick Robb
Thanks David, Tyler, I ran the next-net-intel branch through DTS with the nic utilizing the ixgbe driver, and everything is passing now. When this reaches the main repo I will return the nic in question to UNH CI testing. Best, Patrick On Fri, Jun 23, 2023 at 5:37 PM Tyler Retzlaff wrote: > On

Re: [PATCH v2 0/5] net/mlx5: introduce Tx datapath tracing

2023-06-28 Thread Robin Jarry
Thomas Monjalon, Jun 27, 2023 at 13:34: > Robin, would you have time to look at this trace processing script > please? Hi there, I've had a brief look at the script. I don't exactly know what it is taking as input and should be producing as output. Could you give some examples? Maybe I could sug

[PATCH v1] examples/fips_validation: fix digest length in AES GCM

2023-06-28 Thread Samina Arshad
For AES GCM non JSON decrypt test cases the digest length is being set incorrectly.The digest length is not being cleared after test cases, causing an issue when running tests individually without the --path-is-folder flag. This fix adds the digest length correctly to the decrypt cases and clears t

RE: [PATCH v5 0/2] Select optional libraries

2023-06-28 Thread Morten Brørup
> From: David Marchand [mailto:david.march...@redhat.com] > Sent: Wednesday, 28 June 2023 15.20 > > This series is one implementation to try and please users who want to > select more easily which parts of DPDK are built. /me feels pleased :-) > > It introduces a change in behavior for enabling

Re: [PATCH v5 0/6] replace rte atomics with GCC builtin atomics

2023-06-28 Thread David Marchand
On Wed, Jun 28, 2023 at 4:01 PM Patrick Robb wrote: > > Thanks David, Tyler, > > I ran the next-net-intel branch through DTS with the nic utilizing the ixgbe > driver, and everything is passing now. When this reaches the main repo I will > return the nic in question to UNH CI testing. Thomas pu

RE: [PATCH] doc: announce change for building deprecated libraries

2023-06-28 Thread Morten Brørup
> From: David Marchand [mailto:david.march...@redhat.com] > Sent: Wednesday, 28 June 2023 15.43 > > As part of a larger work on selecting parts of DPDK of interests for > users, enabling deprecated libraries won't be done via the disable_libs > build option anymore. > > An example of the new buil

[PATCH v4 00/11] sync Truflow support with latest release

2023-06-28 Thread Ajit Khaparde
Update Truflow support to latest release, deprecating code, updating the copyright date and hsi structure, syncing the truflow core, adding ULP shared session support, RSS action support, Queue action support, rte meter support, and more. Please apply. v3->v4: - Rebased against the latest 23.07-

[PATCH v4 01/11] net/bnxt: remove deprecated features

2023-06-28 Thread Ajit Khaparde
From: Randy Schacher - Deprecate shadow identifier - Deprecate shadow TCAM - Remove files which are not needed anymore. Signed-off-by: Randy Schacher Signed-off-by: Kishore Padmanabha Reviewed-by: Peter Spreadborough Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_hwrm.c

[PATCH v4 03/11] net/bnxt: update copyright date and cleanup whitespace

2023-06-28 Thread Ajit Khaparde
From: Randy Schacher Update the Copyright to 2023 Clean up extra blank lines Clean up other whitespace issues Signed-off-by: Randy Schacher Reviewed-by: Kishore Padmanabha Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_cpr.c| 2 +- drivers/net/bnxt/bnxt_cpr.h

[PATCH v4 07/11] net/bnxt: add support for rte meter

2023-06-28 Thread Ajit Khaparde
From: Randy Schacher Add RTE meter support into the ULP layer. Currently: - Chaining of meters is not supported - Meter can be shared by multiple flows - srtcm_rfc2697 type is supported - Stats are not supported in the implementation yet Signed-off-by: Randy Schacher Signed-off-by: Jay Ding Ac

[PATCH v4 08/11] net/bnxt: update PTP support on Thor

2023-06-28 Thread Ajit Khaparde
From: Somnath Kotur add locking and time stamp checks to ptp feature Signed-off-by: Somnath Kotur Signed-off-by: Randy Schacher Reviewed-by: Kalesh AP Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/bnxt.h| 5 drivers/net/bnxt/bnxt_ethdev.c | 11 + drivers/net/bnxt/bnx

[PATCH v4 09/11] net/bnxt: fix multi-root card support

2023-06-28 Thread Ajit Khaparde
From: Kishore Padmanabha Changed the logic to use device serial number to identify that different ports belong to same physical card instead of the PCI domain address. Fixes: 34a7ff5a920e ("net/bnxt: support multi root capability") Cc: sta...@dpdk.org Signed-off-by: Kishore Padmanabha Reviewed

[PATCH v4 10/11] net/bnxt: add support for eCPRI packet parsing

2023-06-28 Thread Ajit Khaparde
From: Randy Schacher Add eCPRI parsing and offload support in the TruFlow ULP layer. Signed-off-by: Randy Schacher Signed-off-by: Shahaji Bhosle Reviewed-by: Manish Kurup Reviewed-by: Ajit Khaparde --- .mailmap | 1 + doc/guides/nics/features/bnxt.ini

[PATCH v4 11/11] net/bnxt: set RSS config based on RSS mode

2023-06-28 Thread Ajit Khaparde
From: Shuanglin Wang Avoid submitting hwrm RSS request when rss mode disabled. On WH+, if rss mode isn't enabled, then there is no rss context. Submitting HWRM_VNIC_RSS_CFG request to firmware would hit a failure. The fix is to check the rss context. If no rss context, then don't submit the hwrm

Re: [PATCH v3 04/11] net/bnxt: update Truflow core

2023-06-28 Thread Ajit Khaparde
On Sat, Jun 10, 2023 at 11:33 AM Thomas Monjalon wrote: > > 04/05/2023 19:36, Ajit Khaparde: > > From: Randy Schacher > > > > Update TruFlow core code to: > > - Add shared session management > > - Add SRAM session management > > - Add dynamic TCAM management > > - Add shared TCAM session manageme

[PATCH 1/7] dma/cnxk: changes for dmadev autotest

2023-06-28 Thread Amit Prakash Shukla
Code changes to fix issues observed during dmadev_autotest. Signed-off-by: Amit Prakash Shukla --- drivers/dma/cnxk/cnxk_dmadev.c | 120 + drivers/dma/cnxk/cnxk_dmadev.h | 12 ++-- 2 files changed, 99 insertions(+), 33 deletions(-) diff --git a/drivers/dma/cnxk/

[PATCH 2/7] drivers: changes for dmadev driver

2023-06-28 Thread Amit Prakash Shukla
Dmadev driver changes to align with dpdk spec. Signed-off-by: Amit Prakash Shukla --- drivers/dma/cnxk/cnxk_dmadev.c | 454 ++--- drivers/dma/cnxk/cnxk_dmadev.h | 20 +- 2 files changed, 254 insertions(+), 220 deletions(-) diff --git a/drivers/dma/cnxk/cnxk_dmadev.c

[PATCH 3/7] dma/cnxk: add DMA devops for all models of cn10xxx

2023-06-28 Thread Amit Prakash Shukla
Valid function pointers are set for DMA device operations i.e. cn10k_dmadev_ops are used for all cn10k devices. Signed-off-by: Radha Mohan Chintakuntla Signed-off-by: Amit Prakash Shukla --- drivers/dma/cnxk/cnxk_dmadev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/cnxk/cn

[PATCH 4/7] dma/cnxk: update func field based on transfer type

2023-06-28 Thread Amit Prakash Shukla
Use pfid and vfid of src_port for incoming DMA transfers and dst_port for outgoing DMA transfers. Signed-off-by: Radha Mohan Chintakuntla Signed-off-by: Amit Prakash Shukla --- drivers/dma/cnxk/cnxk_dmadev.c | 26 ++ 1 file changed, 22 insertions(+), 4 deletions(-) diff

[PATCH 5/7] dma/cnxk: increase vchan per queue to max 4

2023-06-28 Thread Amit Prakash Shukla
To support multiple directions in same queue make use of multiple vchan per queue. Each vchan can be configured in some direction and used. Signed-off-by: Amit Prakash Shukla Signed-off-by: Radha Mohan Chintakuntla --- drivers/dma/cnxk/cnxk_dmadev.c | 68 +++--- driv

[PATCH 6/7] dma/cnxk: vchan support enhancement

2023-06-28 Thread Amit Prakash Shukla
Code changes to align dpi private structure based on vchan. Signed-off-by: Amit Prakash Shukla --- drivers/dma/cnxk/cnxk_dmadev.c | 198 - drivers/dma/cnxk/cnxk_dmadev.h | 18 +-- 2 files changed, 157 insertions(+), 59 deletions(-) diff --git a/drivers/dma/cnxk/

[PATCH 7/7] common/cnxk: use unique name for DPI memzone

2023-06-28 Thread Amit Prakash Shukla
roc_dpi was using vfid as part of name for memzone allocation. This led to memzone allocation failure in case of multiple physical functions. vfid is not unique by itself since multiple physical functions can have the same virtual function indices. So use complete DBDF as part of memzone name to ma

[PATCH v5 0/6] Logging related patches

2023-06-28 Thread Stephen Hemminger
This patch set rebases and extends some earlier work on logging. Stephen Hemminger (6): eal: unify logging code for FreeBsd and Linux eal: turn off getopt_long error message during eal_log_level eal: fix handling of syslog facility eal: skip stdio on console logging eal: allow user to se

[PATCH v5 1/6] eal: unify logging code for FreeBsd and Linux

2023-06-28 Thread Stephen Hemminger
FreeBSD logging code was not using syslog and did not have the same options as Linux. Move the log writing code to common source tree. Also fix a number of argument parsing bugs: 1. If application is given a bogus option, the error message would get printed twice. Once during scan for log lev

[PATCH v5 2/6] eal: turn off getopt_long error message during eal_log_level

2023-06-28 Thread Stephen Hemminger
If DPDK application is given a bogus option, the error message would get printed twice. Once during scan for log level and again during parsing of arguments. Example: # ./build/app/dpdk-testpmd --bogus ./build/app/dpdk-testpmd: unrecognized option '--bogus' EAL: Detected CP

[PATCH v5 3/6] eal: fix handling of syslog facility

2023-06-28 Thread Stephen Hemminger
The syslog facility option needs to be parsed before log_init is called. Also help message whas missing the required argument. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_options.c | 2 +- lib/eal/freebsd/eal.c | 2 +- lib/eal/linux/eal.c | 2 +-

[PATCH v5 4/6] eal: skip stdio on console logging

2023-06-28 Thread Stephen Hemminger
There is no need to use stdio when logging to console. Using the write system call directly avoids unnecessary copy to stdio output buffer. Signed-off-by: Stephen Hemminger --- lib/eal/unix/eal_log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/eal/unix/eal_log.c b

[PATCH v5 5/6] eal: allow user to set default log stream before init

2023-06-28 Thread Stephen Hemminger
It is useful for application to be able to set the default log stream before call rte_eal_init(). This makes all messages go to the new default. For example, to skip using syslog; just doing rte_log_set_default(stderr); Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.

[PATCH v5 6/6] eal: add option to put timestamp on console output

2023-06-28 Thread Stephen Hemminger
When debugging driver or startup issues, it is useful to have a timestamp on each message printed. The messages in syslog already have a timestamp, but often syslog is not available during testing. The timestamp format is chosen to look like the default Linux dmesg timestamp. The first few lines a

Re: [PATCH v3 04/11] net/bnxt: update Truflow core

2023-06-28 Thread Thomas Monjalon
28/06/2023 18:35, Ajit Khaparde: > On Sat, Jun 10, 2023 at 11:33 AM Thomas Monjalon wrote: > > More important, you are doing huge update of many different things > > in one patch. > > It looks like you don't want the community to follow what you are doing. > Actually, no. > As I mentioned above, m

[PATCH] hash: fix reading unaligned bits implementation

2023-06-28 Thread Vladimir Medvedkin
Fixes: 28ebff11c2dc ("hash: add predictable RSS") Cc: sta...@dpdk.org Signed-off-by: Vladimir Medvedkin --- lib/hash/rte_thash.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/hash/rte_thash.c b/lib/hash/rte_thash.c index 0249883b8d..2228af576b 100644 --- a/

[PATCH] test: add additional tests for thash library

2023-06-28 Thread Vladimir Medvedkin
Adds tests comparing the results of applying the output of rte_thash_get_complement() to the tuple with the result of calling rte_thash_adjust_tuple(). Suggested-by: Konstantin Ananyev Signed-off-by: Konstantin Ananyev Signed-off-by: Vladimir Medvedkin --- app/test/test_thash.c | 132 +

[PATCH] test/ipsec: fix TAP default MAC address

2023-06-28 Thread Vladimir Medvedkin
default TAP mac address was changed in commit id: c3006be2acab49c6b77ae9c9ef04b061e5dacbd6 reflect changes in ipsec test scripts. Fixes: c3006be2acab ("net/tap: set locally administered bit for fixed MAC address") Cc: d...@linux.vnet.ibm.com Cc: sta...@dpdk.org Signed-off-by: Vladimir Medvedkin

Re: [PATCH v7 1/1] hash: add XOR32 hash function

2023-06-28 Thread Medvedkin, Vladimir
Hi Bili, Please find just one nit below inlined Apart from it LGTM Acked-by: Vladimir Medvedkin On 20/06/2023 20:12, Bili Dong wrote: An XOR32 hash is needed in the Software Switch (SWX) Pipeline for its use case in P4. We implement it in this patch so it could be easily registered in the pi

RE: [v10] app/dma-perf: introduce dma-perf application

2023-06-28 Thread Zhang, Yuying
Hi Cheng, LGTM. > -Original Message- > Date: Wed, 28 Jun 2023 01:20:34 + > From: Cheng Jiang > To: tho...@monjalon.net, bruce.richard...@intel.com, > m...@smartsharesystems.com, chenbo@intel.com, > amitpraka...@marvell.com, ano...@marvell.com, > huangdeng...@huawei.co

Recall: [v10] app/dma-perf: introduce dma-perf application

2023-06-28 Thread Zhang, Yuying
Zhang, Yuying would like to recall the message, "[v10] app/dma-perf: introduce dma-perf application".

RE: [PATCH] net/iavf: fix VLAN insertion in vector path

2023-06-28 Thread Lu, Wenzhuo
> -Original Message- > From: Zhang, Qi Z > Sent: Wednesday, June 28, 2023 4:59 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Cc: sta...@dpdk.org > Subject: RE: [PATCH] net/iavf: fix VLAN insertion in vector path > > > > > -Original Message- > > From: Lu, Wenzhuo > > Sent: Wednesday,

[PATCH] net/netvsc: fix bogus sizeof calculation

2023-06-28 Thread longli
From: Stephen Hemminger Found by cppcheck. drivers/net/netvsc/hn_rndis.c:332:21: warning: Found calculation inside sizeof(). [sizeofCalculation] if (len < sizeof(3 * sizeof(uint32_t))) { Fixes: 4e9c73e96e83 ("net/netvsc: add Hyper-V network device") Signed-off-by: Stephen Hemminger Signed-of

[PATCH] doc: update release note for iavf AVX2 feature

2023-06-28 Thread Wenzhuo Lu
Add the missed release note for iavf AVX2 feature in 23.07. Fixes: 5712bf9d6e14 ("net/iavf: add Tx AVX2 offload path") Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_23_07.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/doc/guides/rel_notes/release_23_07.rst b/doc/gui

[PATCH v2 1/2] net/virtio: fix legacy device IO port map in secondary process

2023-06-28 Thread Miao Li
When doing IO port map for legacy device in secondary process, vfio_cfg setup for legacy device like vfio_group_fd and vfio_dev_fd is missing. So, in secondary process, rte_pci_map_device is added for legacy device to setup vfio_cfg and fill in region info like in primary process. Fixes: 512e27eeb

[PATCH v2 2/2] bus/pci: add IO port region check before region map

2023-06-28 Thread Miao Li
This patch adds IO port region check to skip region map when doing IO port map for legacy device in secondary process. Fixes: 33604c31354a ("vfio: refactor PCI BAR mapping") Cc: sta...@dpdk.org Signed-off-by: Miao Li --- drivers/bus/pci/linux/pci_vfio.c | 9 + 1 file changed, 9 insertio

[PATCH] app/testpmd: fix 32-bit system forwarding failure

2023-06-28 Thread Shiyang He
l2_len is not calculated correctly on 32-bit systems, resulting in packet forwarding failure. This patch fixes this issue by changing the l2_len calculation. Fixes: dd827fa42a30 ("app/testpmd: fix GTP L2 length in checksum engine") Cc: sta...@dpdk.org Signed-off-by: Shiyang He --- app/test-pmd

[PATCH v2] pci: add O_CLOEXEC when open uio device

2023-06-28 Thread Weifeng Su
In this scenario, the DPDK process invokes a script which inherits an open file descriptor (FD) for a UIO device. After the script execution is complete, the UIO device's close operation is called. However, in a new kernel version (865a11f987ab5f03:uio/uio_pci_generic: Disable bus-mastering on rele

Re: [PATCH v3 04/11] net/bnxt: update Truflow core

2023-06-28 Thread Ajit Khaparde
On Wed, Jun 28, 2023 at 12:07 PM Thomas Monjalon wrote: > > 28/06/2023 18:35, Ajit Khaparde: > > On Sat, Jun 10, 2023 at 11:33 AM Thomas Monjalon > > wrote: > > > More important, you are doing huge update of many different things > > > in one patch. > > > It looks like you don't want the communi

📣 Last Call for Content - Monthly Newsletter - June.

2023-06-28 Thread Ben Thomas
Hello Please add your member news and updates you would like featured in the Monthly newsletter June , EOD today, to be shared across DPDK and Linux Foundation channels. Examples of content: - Links to tech

RE: release candidate 23.07-rc2

2023-06-28 Thread Xu, HailinX
> -Original Message- > From: Thomas Monjalon > Sent: Wednesday, June 28, 2023 9:00 AM > To: annou...@dpdk.org > Subject: release candidate 23.07-rc2 > > A new DPDK release candidate is ready for testing: > https://git.dpdk.org/dpdk/tag/?id=v23.07-rc2 > > There are 237 new patches i