Re: [dpdk-dev] [PATCH v4 0/8] lib/ring: add zero copy APIs

2020-10-25 Thread David Marchand
On Sat, Oct 24, 2020 at 6:18 PM Honnappa Nagarahalli wrote: > > Hi David, > Checkpatch CI is showing "WARNING" on a lot of the patches in this > series, but it does not list any real warnings. Any idea what is happening? I reported it to Thomas last night. Thomas has fixed a few things

[dpdk-dev] [PATCH v1] net/ice: refactor dynamic mbuf in data extraction

2020-10-25 Thread Haiyue Wang
Current dynamic mbuf design is that the driver will register the needed field and flags at the device probing time, this will make iavf PMD use different names to register the dynamic mbuf field and flags, but both of them use the exactly same protocol extraction metadata. This will run out of the

Re: [dpdk-dev] [PATCH v4 0/8] lib/ring: add zero copy APIs

2020-10-25 Thread Thomas Monjalon
25/10/2020 08:16, David Marchand: > On Sat, Oct 24, 2020 at 6:18 PM Honnappa Nagarahalli > wrote: > > > > Hi David, > > Checkpatch CI is showing "WARNING" on a lot of the patches in this > > series, but it does not list any real warnings. Any idea what is happening? > > I reported it to

Re: [dpdk-dev] [PATCH v2 0/4] Shared action RSS PMD impl

2020-10-25 Thread Raslan Darawsheh
Hi, > -Original Message- > From: dev On Behalf Of Andrey Vesnovaty > Sent: Friday, October 23, 2020 1:24 PM > To: dev@dpdk.org > Cc: j...@marvell.com; jerinjac...@gmail.com; NBU-Contact-Thomas > Monjalon ; ferruh.yi...@intel.com; > step...@networkplumber.org; bruce.richard...@intel.com; O

[dpdk-dev] [PATCH v5] net/mlx5: implement tunnel offload API

2020-10-25 Thread Gregory Etelson
Tunnel Offload API provides hardware independent, unified model to offload tunneled traffic. Key model elements are: - apply matches to both outer and inner packet headers during entire offload procedure; - restore outer header of partially offloaded packet; - model is implemented as a set of

Re: [dpdk-dev] [PATCH v5] net/mlx5: implement tunnel offload API

2020-10-25 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Gregory Etelson > Sent: Sunday, October 25, 2020 4:08 PM > To: dev@dpdk.org > Cc: Gregory Etelson ; Matan Azrad > ; Raslan Darawsheh ; Eli Britstein > ; Oz Shlomo ; Slava Ovsiienko > ; Shahaf Shuler > Subject: [PATCH v5] net/mlx5: implement tunnel offload

[dpdk-dev] [PATCH] net/mlx5: support the new VLAN matching fields

2020-10-25 Thread Matan Azrad
The fields ``has_vlan`` and ``has_more_vlan`` were added in rte_flow by patch [1]. Using these fields, the application can match all the VLAN options by single flow: any, VLAN only and non-VLAN only. Add the support for the fields. By the way, add the support for QinQ packets matching. VLAN\QinQ

Re: [dpdk-dev] [PATCH 1/2] net/hns3: support SVE Rx

2020-10-25 Thread David Marchand
Hello Wei Hu, > diff --git a/drivers/net/hns3/meson.build b/drivers/net/hns3/meson.build > index bf69ad4..ca0f21a 100644 > --- a/drivers/net/hns3/meson.build > +++ b/drivers/net/hns3/meson.build > @@ -31,4 +31,9 @@ deps += ['hash'] > > if arch_subdir == 'arm' and dpdk_conf.get('RTE_ARCH_64') >

Re: [dpdk-dev] [PATCH v4 1/3] net/ice: add AVX512 vector path

2020-10-25 Thread David Marchand
Hello Leyi, Qi, Ferruh, On Fri, Oct 23, 2020 at 6:37 AM Leyi Rong wrote: > diff --git a/drivers/net/ice/meson.build b/drivers/net/ice/meson.build > index 254595af85..85e8baf912 100644 > --- a/drivers/net/ice/meson.build > +++ b/drivers/net/ice/meson.build > @@ -34,6 +34,17 @@ if arch_subdir == 'x

[dpdk-dev] [PATCH v6 0/5] replace blacklist/whitelist with allow/block

2020-10-25 Thread Stephen Hemminger
This patch series changes the use of the terms blacklist and whitelist and instead uses block and allow. The change is most visible in the options passed to DPDK programs for marking which devices to use. The options are also shortened because they can be used for not just PCI devices. When DPDK

[dpdk-dev] [PATCH v6 2/5] drivers: replace references to blacklist

2020-10-25 Thread Stephen Hemminger
Use the new terminology blocked to describe when devices are excluded from being used. Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi Acked-by: Hemant Agrawal --- drivers/bus/dpaa/dpaa_bus.c| 7 +++ drivers/bus/fslmc/fslmc_bus.c | 9 - drivers/bus/fslmc/fsl

[dpdk-dev] [PATCH v6 3/5] eal: replace pci-whitelist/pci-blacklist options

2020-10-25 Thread Stephen Hemminger
Replace -w / --pci-whitelist with -a / --allow options and --pci-blacklist with --block. The -b short option remains unchanged. Allow the old options for now, but print a nag warning since old options are deprecated. Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi --- lib/librte_eal/c

[dpdk-dev] [PATCH v6 1/5] eal: replace usage of blacklist/whitelist in enum

2020-10-25 Thread Stephen Hemminger
This patch renames the enum values in the EAL include files. As a backward compatible temporary migration tool, define a replacement mapping for old values. The old names relating to blacklist and whitelist are replaced by block list and allow list, but applications may be using the older compatib

[dpdk-dev] [PATCH v6 5/5] doc: change references to blacklist and whitelist

2020-10-25 Thread Stephen Hemminger
There are two areas where documentation needed update. The first was use of whitelist when describing address filtering. The other is the legacy -w whitelist option for PCI which is used in many examples Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi --- doc/guides/cryptodevs/dpaa2_s

[dpdk-dev] [PATCH v6 4/5] app/test: use new allowlist and blocklist

2020-10-25 Thread Stephen Hemminger
Test the renamed blocklist and allowlist arguments. Use new terms in test variable names as well. Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi --- app/test/autotest.py| 16 ++-- app/test/autotest_runner.py | 18 ++--- app/test/test.c | 2 +- app/

[dpdk-dev] [PATCH v14 1/8] fib: make lookup function type configurable

2020-10-25 Thread Vladimir Medvedkin
Add type argument to dir24_8_get_lookup_fn() Now it supports 3 different lookup implementations: RTE_FIB_DIR24_8_SCALAR_MACRO RTE_FIB_DIR24_8_SCALAR_INLINE RTE_FIB_DIR24_8_SCALAR_UNI Add new rte_fib_set_lookup_fn() - user can change lookup function type runtime. Signed-off-by: Vladimir Medvedk

[dpdk-dev] [PATCH v14 0/8] fib: implement AVX512 vector lookup

2020-10-25 Thread Vladimir Medvedkin
This patch series implements vectorized lookup using AVX512 for ipv4 dir24_8 and ipv6 trie algorithms. Also introduced rte_fib_set_lookup_fn() to change lookup function type. Added option to select lookup function type in testfib application. v14: - remove unnecessary FIB types v13: - reflect t

[dpdk-dev] [PATCH v14 4/8] fib6: make lookup function type configurable

2020-10-25 Thread Vladimir Medvedkin
Add type argument to trie_get_lookup_fn() Now it only supports RTE_FIB6_TRIE_SCALAR Add new rte_fib6_set_lookup_fn() - user can change lookup function type runtime. Signed-off-by: Vladimir Medvedkin Acked-by: Konstantin Ananyev --- lib/librte_fib/rte_fib6.c | 20 +++- lib/libr

[dpdk-dev] [PATCH v14 2/8] fib: move lookup definition into the header file

2020-10-25 Thread Vladimir Medvedkin
Move dir24_8 table layout and lookup definition into the private header file. This is necessary for implementing a vectorized lookup function in a separate .с file. Signed-off-by: Vladimir Medvedkin Acked-by: Konstantin Ananyev --- lib/librte_fib/dir24_8.c | 225 +---

[dpdk-dev] [PATCH v14 3/8] fib: introduce AVX512 lookup

2020-10-25 Thread Vladimir Medvedkin
Add new lookup implementation for DIR24_8 algorithm using AVX512 instruction set Signed-off-by: Vladimir Medvedkin Acked-by: Konstantin Ananyev --- doc/guides/rel_notes/release_20_11.rst | 3 + lib/librte_fib/dir24_8.c | 39 lib/librte_fib/dir24_8_avx512.c| 165

[dpdk-dev] [PATCH v14 5/8] fib6: move lookup definition into the header file

2020-10-25 Thread Vladimir Medvedkin
Move trie table layout and lookup definition into the private header file. This is necessary for implementing a vectorized lookup function in a separate .с file. Signed-off-by: Vladimir Medvedkin Acked-by: Konstantin Ananyev --- lib/librte_fib/trie.c | 121 --

[dpdk-dev] [PATCH v14 6/8] fib6: introduce AVX512 lookup

2020-10-25 Thread Vladimir Medvedkin
Add new lookup implementation for FIB6 trie algorithm using AVX512 instruction set Signed-off-by: Vladimir Medvedkin Acked-by: Konstantin Ananyev --- doc/guides/rel_notes/release_20_11.rst | 2 +- lib/librte_fib/meson.build | 17 +++ lib/librte_fib/rte_fib6.c | 2 +

[dpdk-dev] [PATCH v14 7/8] app/testfib: add support for different lookup functions

2020-10-25 Thread Vladimir Medvedkin
Added -v option to switch between different lookup implementations to measure their performance and correctness. Signed-off-by: Vladimir Medvedkin --- app/test-fib/main.c | 65 ++--- 1 file changed, 62 insertions(+), 3 deletions(-) diff --git a/ap

[dpdk-dev] [PATCH v14 8/8] fib: remove unnecessary type of fib

2020-10-25 Thread Vladimir Medvedkin
FIB type RTE_FIB_TYPE_MAX is used only for sanity checks, remove it to prevent applications start using it. The same is for FIB6's RTE_FIB6_TYPE_MAX. Signed-off-by: Vladimir Medvedkin --- app/test/test_fib.c | 2 +- app/test/test_fib6.c | 2 +- lib/librte_fib/rte_fib.c | 2 +- lib/li

Re: [dpdk-dev] [dpdk-stable] [PATCH v2 1/4] power: fix non thread-safe power env modification

2020-10-25 Thread Thomas Monjalon
29/03/2019 16:09, Burakov, Anatoly: > On 29-Mar-19 2:14 PM, Thomas Monjalon wrote: > > 18/03/2019 12:56, Hajkowski: > >> From: Marcin Hajkowski > >> --- a/doc/guides/rel_notes/release_19_05.rst > >> +++ b/doc/guides/rel_notes/release_19_05.rst > >> @@ -120,6 +120,8 @@ API Changes > >> + * power:

Re: [dpdk-dev] [PATCH v6 4/5] app/test: use new allowlist and blocklist

2020-10-25 Thread David Marchand
On Sun, Oct 25, 2020 at 5:59 PM Stephen Hemminger wrote: > @@ -61,7 +61,7 @@ do_recursive_call(void) > { "test_main_lcore_flag", no_action }, > { "test_invalid_n_flag", no_action }, > { "test_no_hpet_flag", no_action }, > -

[dpdk-dev] [PATCH v7 0/5] replace blacklist/whitelist with allow/block

2020-10-25 Thread Stephen Hemminger
This patch series changes the use of the terms blacklist and whitelist and instead uses block and allow. The change is most visible in the options passed to DPDK programs for marking which devices to use. The options are also shortened because they can be used for not just PCI devices. When DPDK

[dpdk-dev] [PATCH v7 2/5] drivers: replace references to blacklist

2020-10-25 Thread Stephen Hemminger
Use the new terminology blocked to describe when devices are excluded from being used. Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi Acked-by: Hemant Agrawal --- drivers/bus/dpaa/dpaa_bus.c| 7 +++ drivers/bus/fslmc/fslmc_bus.c | 9 - drivers/bus/fslmc/fsl

[dpdk-dev] [PATCH v7 3/5] eal: replace pci-whitelist/pci-blacklist options

2020-10-25 Thread Stephen Hemminger
Replace -w / --pci-whitelist with -a / --allow options and --pci-blacklist with --block. The -b short option remains unchanged. Allow the old options for now, but print a nag warning since old options are deprecated. Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi --- lib/librte_eal/c

[dpdk-dev] [PATCH v7 1/5] eal: replace usage of blacklist/whitelist in enum

2020-10-25 Thread Stephen Hemminger
This patch renames the enum values in the EAL include files. As a backward compatible temporary migration tool, define a replacement mapping for old values. The old names relating to blacklist and whitelist are replaced by block list and allow list, but applications may be using the older compatib

[dpdk-dev] [PATCH v7 4/5] doc: change references to blacklist and whitelist

2020-10-25 Thread Stephen Hemminger
There are two areas where documentation needed update. The first was use of whitelist when describing address filtering. The other is the legacy -w whitelist option for PCI which is used in many examples Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi --- doc/guides/cryptodevs/dpaa2_s

[dpdk-dev] [PATCH v7 5/5] app/test: use new allowlist and blocklist

2020-10-25 Thread Stephen Hemminger
Test the renamed blocklist and allowlist arguments. Use new terms in test variable names as well. Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi --- app/test/autotest.py| 16 +-- app/test/autotest_runner.py | 18 ++--- app/test/test.c | 2 +- app/t

[dpdk-dev] [PATCH v8 0/5] replace blacklist/whitelist with allow/block

2020-10-25 Thread Stephen Hemminger
This patch series changes the use of the terms blacklist and whitelist and instead uses block and allow. The change is most visible in the options passed to DPDK programs for marking which devices to use. The options are also shortened because they can be used for not just PCI devices. When DPDK

[dpdk-dev] [PATCH v8 3/5] eal: replace pci-whitelist/pci-blacklist options

2020-10-25 Thread Stephen Hemminger
Replace -w / --pci-whitelist with -a / --allow options and --pci-blacklist with --block. The -b short option remains unchanged. Allow the old options for now, but print a nag warning since old options are deprecated. Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi --- lib/librte_eal/c

[dpdk-dev] [PATCH v8 2/5] drivers: replace references to blacklist

2020-10-25 Thread Stephen Hemminger
Use the new terminology blocked to describe when devices are excluded from being used. Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi Acked-by: Hemant Agrawal --- drivers/bus/dpaa/dpaa_bus.c| 7 +++ drivers/bus/fslmc/fslmc_bus.c | 9 - drivers/bus/fslmc/fsl

[dpdk-dev] [PATCH v8 1/5] eal: replace usage of blacklist/whitelist in enum

2020-10-25 Thread Stephen Hemminger
This patch renames the enum values in the EAL include files. As a backward compatible temporary migration tool, define a replacement mapping for old values. The old names relating to blacklist and whitelist are replaced by block list and allow list, but applications may be using the older compatib

[dpdk-dev] [PATCH v8 4/5] doc: change references to blacklist and whitelist

2020-10-25 Thread Stephen Hemminger
There are two areas where documentation needed update. The first was use of whitelist when describing address filtering. The other is the legacy -w whitelist option for PCI which is used in many examples Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi --- doc/guides/cryptodevs/dpaa2_s

[dpdk-dev] [PATCH v8 5/5] app/test: use new allowlist and blocklist

2020-10-25 Thread Stephen Hemminger
Test the renamed blocklist and allowlist arguments. Use new terms in test variable names as well. Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi --- app/test/autotest.py| 16 +-- app/test/autotest_runner.py | 18 ++--- app/test/test.c | 2 +- app/t

Re: [dpdk-dev] [PATCH v6 4/5] app/test: use new allowlist and blocklist

2020-10-25 Thread Stephen Hemminger
On Sun, 25 Oct 2020 19:47:16 +0100 David Marchand wrote: > On Sun, Oct 25, 2020 at 5:59 PM Stephen Hemminger > wrote: > > @@ -61,7 +61,7 @@ do_recursive_call(void) > > { "test_main_lcore_flag", no_action }, > > { "test_invalid_n_flag", no_action },

Re: [dpdk-dev] [dpdk-stable] [PATCH] EAL: Called remove() of drivers for vdev and pci buses

2020-10-25 Thread Muhammad Bilal
On Tue, Oct 20, 2020 at 6:43 PM David Marchand wrote: > > Hello, Hi > > On Sat, Sep 12, 2020 at 9:53 PM Gaëtan Rivet wrote: > > > > On 08/07/20 17:03 +0500, Muhammad Bilal wrote: > > > while using memif with app, the resources are not cleaned on exit, > > > So an error occurred on running it seco

Re: [dpdk-dev] [PATCH v2] gso: fix free issue of mbuf gso segments attach to

2020-10-25 Thread yang_y_yi
At 2020-10-23 22:46:42, "Ananyev, Konstantin" wrote: >> From: yang_y_yi >> Sent: Friday, October 23, 2020 2:18 PM >> To: Ananyev, Konstantin >> Cc: dev@dpdk.org; Hu, Jiayu ; techbo...@dpdk.org; >> tho...@monjalon.net; yangy...@inspur.com >> Subject: Re:RE: [PATCH v2] gso: fix free issue of mbu

Re: [dpdk-dev] [PATCH v3 0/5] raw/ifpga/base: An improvement for multi-process

2020-10-25 Thread Zhang, Qi Z
> -Original Message- > From: Zhang, Tianfei > Sent: Friday, October 23, 2020 5:00 PM > To: dev@dpdk.org; Xu, Rosen ; Zhang, Qi Z > > Cc: Zhang, Tianfei > Subject: [PATCH v3 0/5] raw/ifpga/base: An improvement for multi-process > > This patches set will improve the ifpga base driver r

Re: [dpdk-dev] [PATCH v2 0/2] intel: fix writeback

2020-10-25 Thread Zhang, Qi Z
> -Original Message- > From: Jesse Brandeburg > Sent: Saturday, October 24, 2020 4:22 AM > To: Johnson, Brian ; tho...@monjalon.net; > david.march...@redhat.com > Cc: Brandeburg, Jesse ; dev@dpdk.org; Zhang, > Qi Z > Subject: [PATCH v2 0/2] intel: fix writeback > > This patch series i

Re: [dpdk-dev] [PATCH v2] gso: fix free issue of mbuf gso segments attach to

2020-10-25 Thread Jiayu Hu
On Mon, Oct 26, 2020 at 08:57:30AM +0800, yang_y_yi wrote: > At 2020-10-23 22:46:42, "Ananyev, Konstantin" > wrote: > > >> From: yang_y_yi > >> Sent: Friday, October 23, 2020 2:18 PM > >> To: Ananyev, Konstantin > >> Cc: dev@dpdk.org; Hu, Jiayu ; techbo...@dpdk.org; > >> tho...@monjalon.net; y

Re: [dpdk-dev] [RFC] net/i40e: refactor of hash flow

2020-10-25 Thread Zhang, AlvinX
Thanks Shougang, Yes, I will update them. BR, Alvin > -Original Message- > From: Wang, ShougangX > Sent: Friday, October 23, 2020 4:43 PM > To: Zhang, AlvinX ; dev@dpdk.org > Subject: RE: [dpdk-dev] [RFC] net/i40e: refactor of hash flow > > Hi, Alvin > > > -Original Message- >

Re: [dpdk-dev] [PATCH v2] gso: fix free issue of mbuf gso segments attach to

2020-10-25 Thread yang_y_yi
At 2020-10-26 10:06:09, "Jiayu Hu" wrote: >On Mon, Oct 26, 2020 at 08:57:30AM +0800, yang_y_yi wrote: >> At 2020-10-23 22:46:42, "Ananyev, Konstantin" >> wrote: >> >> >> From: yang_y_yi >> >> Sent: Friday, October 23, 2020 2:18 PM >> >> To: Ananyev, Konstantin >> >> Cc: dev@dpdk.org; Hu, Jiayu

[dpdk-dev] [PATCH 01/15] examples: enclose DPDK includes with angle brackets

2020-10-25 Thread Thomas Monjalon
In examples, DPDK header files are external, so they must be enclosed with angle brackets, not quotes. Signed-off-by: Thomas Monjalon --- examples/bbdev_app/main.c | 30 +- examples/bond/main.c | 11 -- examples/tep_termination/vxlan

[dpdk-dev] [PATCH 00/15] remove mbuf userdata

2020-10-25 Thread Thomas Monjalon
The mbuf field userdata (aliased as udata64) was announced to be removed for two reasons: - applications, libraries and drivers used the same field for different purposes, with a risk of usage conflict. - this field always used 8 bytes even if unneeded Some dynamic fields are created when

[dpdk-dev] [PATCH 02/15] kni: move header file from EAL

2020-10-25 Thread Thomas Monjalon
Since the kernel module is not part of EAL anymore, there is no need to have the common KNI header file in EAL. The file rte_kni_common.h is moved to librte_kni. Signed-off-by: Thomas Monjalon --- kernel/linux/kni/meson.build | 2 +- lib/librte_eal/linux/include/

[dpdk-dev] [PATCH 03/15] mbuf: fix typo in dynamic field convention note

2020-10-25 Thread Thomas Monjalon
Replace "in a in PMD" with "in a PMD". Fixes: 4958ca3a443a ("mbuf: support dynamic fields and flags") Cc: sta...@dpdk.org Signed-off-by: Thomas Monjalon --- lib/librte_mbuf/rte_mbuf_dyn.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_mbuf/rte_mbuf_dyn.h b/lib/li

[dpdk-dev] [PATCH 06/15] event/sw: switch test counter to dynamic mbuf field

2020-10-25 Thread Thomas Monjalon
The test worker_loopback used the deprecated mbuf field udata64. It is moved to a dynamic field in order to allow removal of udata64. Signed-off-by: Thomas Monjalon --- drivers/event/sw/sw_evdev_selftest.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git

[dpdk-dev] [PATCH 05/15] security: switch metadata to dynamic mbuf field

2020-10-25 Thread Thomas Monjalon
The device-specific metadata was stored in the deprecated field udata64. It is moved to a dynamic mbuf field in order to allow removal of udata64. Signed-off-by: Thomas Monjalon --- doc/guides/prog_guide/rte_security.rst| 9 + drivers/crypto/octeontx2/otx2_cryptodev_sec.c | 5 +

[dpdk-dev] [PATCH 04/15] node: switch IPv4 metadata to dynamic mbuf field

2020-10-25 Thread Thomas Monjalon
The node_mbuf_priv1 was stored in the deprecated mbuf field udata64. It is moved to a dynamic field in order to allow removal of udata64. Signed-off-by: Thomas Monjalon --- lib/librte_node/ip4_lookup.c | 7 +++ lib/librte_node/ip4_rewrite.c | 10 ++ lib/librte_node/node_private.h

[dpdk-dev] [PATCH 07/15] net/ark: ignore user data

2020-10-25 Thread Thomas Monjalon
The second field of metadata is reserved for user data which is a deprecated mbuf field. The usage of mbuf udata64 is removed and the corresponding ark metadata field is annotated as ignored. Signed-off-by: Thomas Monjalon --- drivers/net/ark/ark_ddm.h | 2 +- drivers/net/ark/ark_ethdev_rx

[dpdk-dev] [PATCH 09/15] net/vmxnet3: switch MSS hint to dynamic mbuf field

2020-10-25 Thread Thomas Monjalon
The segment count, used for MSS guess, was stored in the deprecated mbuf field udata64. It is moved to a dynamic field in order to allow removal of udata64. Signed-off-by: Thomas Monjalon --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 15 +++ drivers/net/vmxnet3/vmxnet3_ethdev.h | 2 ++

[dpdk-dev] [PATCH 08/15] net/bnxt: switch CFA code to dynamic mbuf field

2020-10-25 Thread Thomas Monjalon
The CFA code from mark was stored in the deprecated mbuf field udata64. It is moved to a dynamic field in order to allow removal of udata64. Signed-off-by: Thomas Monjalon --- drivers/net/bnxt/bnxt_ethdev.c | 19 +++ drivers/net/bnxt/bnxt_rxr.c | 5 - drivers/net/bnxt/b

[dpdk-dev] [PATCH 11/15] test/graph: switch user data to dynamic mbuf field

2020-10-25 Thread Thomas Monjalon
The test used the deprecated mbuf field udata64. It is moved to a dynamic field in order to allow removal of udata64. Signed-off-by: Thomas Monjalon --- app/test/test_graph.c | 93 +-- 1 file changed, 55 insertions(+), 38 deletions(-) diff --git a/app/tes

[dpdk-dev] [PATCH 10/15] test/distributor: switch sequence to dynamic mbuf field

2020-10-25 Thread Thomas Monjalon
The test used the deprecated mbuf field udata64. It is moved to a dynamic field in order to allow removal of udata64. Signed-off-by: Thomas Monjalon --- app/test/test_distributor.c | 27 ++- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/app/test/test_dist

[dpdk-dev] [PATCH 12/15] app/eventdev: switch flow ID to dynamic mbuf field

2020-10-25 Thread Thomas Monjalon
The order test stored the flow ID in the deprecated mbuf field udata64. It is moved to a dynamic field in order to allow removal of udata64. Signed-off-by: Thomas Monjalon --- app/test-eventdev/test_order_atq.c| 4 ++-- app/test-eventdev/test_order_common.c | 16 +++- app/test-e

[dpdk-dev] [PATCH 13/15] examples/bbdev: switch to dynamic mbuf field

2020-10-25 Thread Thomas Monjalon
The example used the deprecated mbuf field udata64 as input mbuf pointer. It is moved to a dynamic field in order to allow removal of udata64. Signed-off-by: Thomas Monjalon --- examples/bbdev_app/main.c | 37 +++-- 1 file changed, 27 insertions(+), 10 deletions(-

[dpdk-dev] [PATCH 14/15] examples/rxtx_callbacks: switch to dynamic mbuf field

2020-10-25 Thread Thomas Monjalon
The example used the deprecated mbuf field udata64. It is moved to a dynamic field in order to allow removal of udata64. Note: RTE_MBUF_DYNFIELD_TIMESTAMP_NAME is an existing mbuf field name. Signed-off-by: Thomas Monjalon --- doc/guides/sample_app_ug/rxtx_callbacks.rst | 4 ++-- examples/rxtx

[dpdk-dev] [PATCH 15/15] mbuf: remove userdata field

2020-10-25 Thread Thomas Monjalon
As announced in the deprecation note, the field userdata / udata64 is removed to give more space to the dynamic fields. Signed-off-by: Thomas Monjalon --- doc/guides/rel_notes/deprecation.rst | 1 - doc/guides/rel_notes/release_20_11.rst | 3 +++ lib/librte_kni/rte_kni_common.h| 3 +--

Re: [dpdk-dev] [PATCH v2] gso: fix free issue of mbuf gso segments attach to

2020-10-25 Thread Jiayu Hu
On Mon, Oct 26, 2020 at 10:12:24AM +0800, yang_y_yi wrote: > At 2020-10-26 10:06:09, "Jiayu Hu" wrote: > > >On Mon, Oct 26, 2020 at 08:57:30AM +0800, yang_y_yi wrote: > >> At 2020-10-23 22:46:42, "Ananyev, Konstantin" > >> > >> wrote: > >> > >> >> From: yang_y_yi > >> >> Sent: Friday, October

[dpdk-dev] [PATCH] net/i40e: fix FDIR issue for ETH + VLAN pattern

2020-10-25 Thread beilei . xing
From: Beilei Xing Currently, can't create more than one following flow for ETH + VLAN pattern. 1. flow create 0 ingress pattern eth / vlan vid is 350 / end actions queue index 2 / end 2. flow create 0 ingress pattern eth / vlan vid is 351 / end actions queue index 3 / end The root cause i

[dpdk-dev] [PATCH v3] gso: fix free issue of mbuf gso segments attach to

2020-10-25 Thread yang_y_yi
From: Yi Yang rte_gso_segment decreased refcnt of pkt by one, but it is wrong if pkt is external mbuf, pkt won't be freed because of incorrect refcnt, the result is application can't allocate mbuf from mempool because mbufs in mempool are run out of. One correct way is application should call rt