Re: [dpdk-dev] [PATCH v5 3/5] test/hash: add additional thash tests

2021-04-29 Thread David Marchand
econd_range HASH: Can't generate m-sequence due to period overflow EAL: Test assert test_adjust_tuple line 559 failed: can not adjust tuple, ret -17 --- > + > + for (i = 0; i < (TUPLE_SZ / 4); i++) > + tmp_tuple[i] = > + rte_be_to_cpu_32(*(uint32_t *)&tuple[i * 4]); > + > + hash = rte_softrss(tmp_tuple, TUPLE_SZ / 4, new_key); > + RTE_TEST_ASSERT((hash & HASH_MSK(reta_sz)) == > + desired_value, "bad desired value\n"); > + > + rte_thash_free_ctx(ctx); > + > + return TEST_SUCCESS; > +} -- David Marchand

Re: [dpdk-dev] [PATCH] doc/cross_build: update the list supported Arm SoCs

2021-04-29 Thread David Marchand
aid, > Reviewed-by: Juraj Linkeš This patch is wrong. It fixes the qualcomm doc part while it should go in: http://patchwork.dpdk.org/project/dpdk/patch/20210429080644.11423-1-thierry.herbe...@6wind.com/ It fixes kunpeng and cn10k, so the fixes line is wrong. Please drop it, I already submitted a different fix for the latter. -- David Marchand

Re: [dpdk-dev] [PATCH] doc: fix Arm socs list

2021-04-29 Thread David Marchand
On Thu, Apr 29, 2021 at 11:53 AM Juraj Linkeš wrote: > > -Original Message- > > From: dev On Behalf Of David Marchand > > Sent: Thursday, April 29, 2021 9:08 AM > > To: dev@dpdk.org > > Cc: tho...@monjalon.net; Jerin Jacob ; Ruifeng Wang > > ; Jan Vik

Re: [dpdk-dev] [PATCH v2 4/4] vhost: fix offload flags in Rx path

2021-04-29 Thread David Marchand
.1 spec is that GSO can be > used independently of CSUM. There is nothing preventing to > send a fully checksummed TSO packet. This forces a superfluous cksum in such a situation. It can be fixed later if needed. The virtio pmd rx side has the same behavior. > Anyways, that's unusual and not the goal of this patch. > > Acked-by: Flavio Leitner Thanks! -- David Marchand

Re: [dpdk-dev] [PATCH v2 4/4] vhost: fix offload flags in Rx path

2021-04-29 Thread David Marchand
On Thu, Apr 29, 2021 at 3:30 PM Maxime Coquelin wrote: > On 4/29/21 10:04 AM, David Marchand wrote: > > The vhost library current configures Tx offloading (PKT_TX_*) on any > > s/current/currently/ Ok. > > > packet received from a guest virtio device which asks for some

Re: [dpdk-dev] [PATCH v2 4/4] vhost: fix offload flags in Rx path

2021-04-29 Thread David Marchand
ample (this current patch), - maintain the v21 ABI * using symbol versioning, this adds no branch, recompiled application use the new ABI, this can't be backported to 20.11, * keeping the current behavior by default, but introducing a new flag that an application would pass to rte_vhost_driver_register(). This new flag triggers this current patch behavior but it would add an additional branch per packets bulk in vhost dequeue path. This *could* be backported to 20.11. -- David Marchand

[dpdk-dev] [PATCH v3 0/4] Offload flags fixes

2021-05-03 Thread David Marchand
VIRTIO_NET_HDR_GSO_ECN and VIRTIO_NET_HDR_GSO_UDP, -- David Marchand David Marchand (4): mbuf: mark old offload flag as deprecated net/virtio: do not touch Tx offload flags net/virtio: refactor Tx offload helper vhost: fix offload flags in Rx path doc/guides/prog_guide/vhost_lib.rst | 12

[dpdk-dev] [PATCH v3 1/4] mbuf: mark old offload flag as deprecated

2021-05-03 Thread David Marchand
PKT_RX_EIP_CKSUM_BAD has been declared deprecated but there was no warning to applications still using it. Fix this by marking as deprecated with the newly introduced RTE_DEPRECATED. Fixes: e8a419d6de4b ("mbuf: rename outer IP checksum macro") Signed-off-by: David Marchand Reviewed-

[dpdk-dev] [PATCH v3 2/4] net/virtio: do not touch Tx offload flags

2021-05-03 Thread David Marchand
Tx offload flags are of the application responsibility. Leave the mbuf alone and use a local storage for implicit tcp checksum offloading in case of TSO. Signed-off-by: David Marchand Reviewed-by: Maxime Coquelin Acked-by: Flavio Leitner --- drivers/net/virtio/virtqueue.h | 6 -- 1 file

[dpdk-dev] [PATCH v3 3/4] net/virtio: refactor Tx offload helper

2021-05-03 Thread David Marchand
Purely cosmetic but it is rather odd to have an "offload" helper that checks if it actually must do something. We already have the same checks in most callers, so move this branch in them. Signed-off-by: David Marchand Reviewed-by: Flavio Leitner Reviewed-by: Ruifeng Wang Reviewed-

[dpdk-dev] [PATCH v3 4/4] vhost: fix offload flags in Rx path

2021-05-03 Thread David Marchand
RTE_VHOST_USER_NET_COMPLIANT_OL_FLAGS flag is added to enable the new behavior. The vhost example has been updated for the new behavior: TSO is applied to any packet marked LRO. Fixes: 859b480d5afd ("vhost: add guest offload setting") Cc: sta...@dpdk.org Signed-off-by: David Marchand Reviewed-by: Maxim

Re: [dpdk-dev] [PATCH v3 1/4] mbuf: mark old offload flag as deprecated

2021-05-03 Thread David Marchand
On Mon, May 3, 2021 at 3:27 PM David Marchand wrote: > > PKT_RX_EIP_CKSUM_BAD has been declared deprecated but there was no > warning to applications still using it. > Fix this by marking as deprecated with the newly introduced > RTE_DEPRECATED. > > Fixes: e8a419d6de4b (&

Re: [dpdk-dev] [PATCH 0/3] add lock-free stack support discovery

2021-05-03 Thread David Marchand
x27;t get fixed by this change. I'd rather not backport it. Opinions? -- David Marchand

Re: [dpdk-dev] [PATCH v3 0/4] Offload flags fixes

2021-05-03 Thread David Marchand
On Mon, May 3, 2021 at 5:24 PM Maxime Coquelin wrote: > On 5/3/21 3:26 PM, David Marchand wrote: > > The important part is the last patch on vhost handling of offloading > > requests coming from a virtio guest interface. > > > > The rest are small fixes that I accumulat

[dpdk-dev] [PATCH v4 0/3] Offload flags fixes

2021-05-03 Thread David Marchand
on net/tap, - added missing bits in example/vhost, - relaxed checks on VIRTIO_NET_HDR_GSO_ECN and VIRTIO_NET_HDR_GSO_UDP, -- David Marchand David Marchand (3): net/virtio: do not touch Tx offload flags net/virtio: refactor Tx offload helper vhost: fix offload flags in Rx path doc/guides

[dpdk-dev] [PATCH v4 1/3] net/virtio: do not touch Tx offload flags

2021-05-03 Thread David Marchand
Tx offload flags are of the application responsibility. Leave the mbuf alone and use a local storage for implicit tcp checksum offloading in case of TSO. Signed-off-by: David Marchand Reviewed-by: Maxime Coquelin Acked-by: Flavio Leitner --- drivers/net/virtio/virtqueue.h | 6 -- 1 file

[dpdk-dev] [PATCH v4 2/3] net/virtio: refactor Tx offload helper

2021-05-03 Thread David Marchand
Purely cosmetic but it is rather odd to have an "offload" helper that checks if it actually must do something. We already have the same checks in most callers, so move this branch in them. Signed-off-by: David Marchand Reviewed-by: Flavio Leitner Reviewed-by: Ruifeng Wang Reviewed-

[dpdk-dev] [PATCH v4 3/3] vhost: fix offload flags in Rx path

2021-05-03 Thread David Marchand
RTE_VHOST_USER_NET_COMPLIANT_OL_FLAGS flag is added to enable the new behavior. The vhost example has been updated for the new behavior: TSO is applied to any packet marked LRO. Fixes: 859b480d5afd ("vhost: add guest offload setting") Cc: sta...@dpdk.org Signed-off-by: David Marchand Reviewed-by: Maxim

Re: [dpdk-dev] [PATCH 0/3] add lock-free stack support discovery

2021-05-03 Thread David Marchand
On Mon, May 3, 2021 at 8:35 PM Stanisław Kardach wrote: > On Mon, 3 May 2021, 16:28 Olivier Matz, wrote: >> On Mon, May 03, 2021 at 04:21:25PM +0200, David Marchand wrote: >> > On Mon, Apr 12, 2021 at 10:29 AM Stanislaw Kardach >> > wrote: >> > > &g

Re: [dpdk-dev] [PATCH 0/3] add lock-free stack support discovery

2021-05-03 Thread David Marchand
ll fail > as if implementation is wrong (which one can argue is). Therefore this > patchset > tries to give user a way to check whether a lock_free is supported or not both > at compile time (build flag) and at runtime (ENOTSUP errno in > rte_stack_create). Series applied. Thanks Stanislaw! -- David Marchand

Re: [dpdk-dev] [PATCH v5 0/2] mempool: add debug stats

2021-05-04 Thread David Marchand
On Tue, Apr 27, 2021 at 6:02 PM Dharmik Thakkar wrote: > > - Add debug counters for objects put/get to/from the common pool. > - Make __MEMPOOL_STAT_ADD() more generic > Series applied, thanks. -- David Marchand

Re: [dpdk-dev] [PATCH v4 2/3] net/iavf: enable PCI bus master after reset

2021-05-04 Thread David Marchand
rue); > + > vf->vf_reset = false; Not checking for the return code can leave the device in an invalid state. Then after this, calling the init code will fail. I'd rather move rte_pci_set_bus_master() (it is a noop if bus master is already enabled) in the init path and check for the return code there? WDYT? -- David Marchand

[dpdk-dev] [PATCH v2] doc: fix Arm socs list

2021-05-04 Thread David Marchand
licon kunpeng") Signed-off-by: David Marchand Reviewed-by: Jerin Jacob Reviewed-by: Ruifeng Wang --- Changes since v1: - made use of an anonymous string literal instead of comments, - dropped the #guide_doc tag, --- config/arm/meson.build| 21 +++ .../l

Re: [dpdk-dev] [PATCH v2 1/2] devtools: script to check meson indentation of lists

2021-05-04 Thread David Marchand
ectories. Can we have a default behavior where only committed files are considered? Maybe filtering with git ls-files **/meson.build. -- David Marchand

Re: [dpdk-dev] [PATCH 1/2] graph: fix memory leak

2021-05-04 Thread David Marchand
e_errno; > } We have a double free with this change. If realloc on stats returns the same location, but node lookup fails, stats_in is left untouched and still points at the original stats location. This location is then freed in the free: label, and later is freed in stats_mem_fini() from caller. -- David Marchand

Re: [dpdk-dev] [PATCH v4 2/3] net/iavf: enable PCI bus master after reset

2021-05-05 Thread David Marchand
On Wed, May 5, 2021 at 4:56 AM Wang, Haiyue wrote: > > > -Original Message- > > From: David Marchand > > Sent: Tuesday, May 4, 2021 19:32 > > To: Wang, Haiyue > > Cc: dev ; Zhang, Qi Z ; Wang, Liang-min > > ; > > Wu, Jingjing ; Xing, Bei

Re: [dpdk-dev] [PATCH] telemetry: remove internal symbol from public header

2021-05-05 Thread David Marchand
callbacks = new_callbacks; + while (i < num_callbacks && strcmp(cmd, callbacks[i].cmd) > 0) i++; if (i != num_callbacks) And there is a race to fix in list_commands() (which accesses the callbacks array without taking the lock). -- David Marchand

Re: [dpdk-dev] DPDK Telemetry library enhancement

2021-05-05 Thread David Marchand
mmands to collect > driver stats? Is this upstream able? I don't remember a limitation/guideline on this subject. Any command can be registered, this is up to the telemetry client to invoke it. -- David Marchand

Re: [dpdk-dev] [EXT] Re: DPDK Telemetry library enhancement

2021-05-05 Thread David Marchand
as a local agent for the system hosting the dpdk process and forward the retrieved data to another "central" collectd, using the "network" https://collectd.org/wiki/index.php/Networking_introduction With collectd plugins, it also opens the possibility to gather other metrics (out of dpdk) from this system and/or publish in different forms the collected data. -- David Marchand

[dpdk-dev] [PATCH] lib: restore developer mode checks

2021-05-05 Thread David Marchand
Most of the checks on developer_mode have been accidentally dropped. Restore them. Fixes: 7d611e35b077 ("lib: simplify main build file") Signed-off-by: David Marchand --- lib/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/meson.build b/lib/m

[dpdk-dev] [PATCH v2 1/2] devtools: catch symbol duplicates in version map

2021-05-05 Thread David Marchand
Add a check on versioned symbol duplicates in map files. Signed-off-by: David Marchand --- Changes since v1: - rebased, --- devtools/check-symbol-maps.sh | 15 +++ 1 file changed, 15 insertions(+) diff --git a/devtools/check-symbol-maps.sh b/devtools/check-symbol-maps.sh index

[dpdk-dev] [PATCH v2 2/2] buildtools: check symbol maps in developer mode

2021-05-05 Thread David Marchand
Hook check-symbol-maps.sh in the symbol check when in developer mode to help developers catch issues before submitting their changes. Signed-off-by: David Marchand --- Changes since v1: - now that we have the developer mode, added this check in the build process, --- buildtools/check

Re: [dpdk-dev] [PATCH v2 0/2] test/distributor: perf burst mode quit fixes

2021-05-05 Thread David Marchand
of fairness in final wakeup notification distribution >in burst mode. Though this issue was not observed, the change is in >line with the functional tests. Series applied, thanks. -- David Marchand

Re: [dpdk-dev] [PATCH] ppc64le: fix build with Clang and without glibc

2021-05-05 Thread David Marchand
On Tue, Mar 23, 2021 at 6:48 PM Piotr Kubaj wrote: > > Looks like I forgot to commit the change that includes headers for > sysctlbyname(). > > Patch attached. The mailing list drops attachments. Please submit a v2. Thanks. -- David Marchand

Re: [dpdk-dev] [PATCH] telemetry: remove internal symbol from public header

2021-05-05 Thread David Marchand
I'll post my suggestion as a patch aimed at 21.08. -- David Marchand

Re: [dpdk-dev] [PATCH] telemetry: fix accessing callbacks list using lock

2021-05-05 Thread David Marchand
being registered at the same time. > > This is now fixed to lock before iterating the list, > > and unlock afterwards. > > > > Fixes: f38748736eb2 ("telemetry: add default callback commands") > > Cc: sta...@dpdk.org > > > > Reported-by: David Marc

Re: [dpdk-dev] [PATCH] eal: avoid side effects in RTE_ALIGN_MUL_NEAR(v, mul) for v and mul

2021-05-05 Thread David Marchand
On Wed, May 5, 2021 at 6:30 PM Tyler Retzlaff wrote: > > On Fri, Mar 12, 2021 at 09:07:22AM +0100, David Marchand wrote: > > On Thu, Mar 11, 2021 at 10:08 PM Tyler Retzlaff > > wrote: > > > > > > Avoid expanding v and mul parameters multiple times in the macr

Re: [dpdk-dev] [PATCH v2] doc: fix Arm socs list

2021-05-05 Thread David Marchand
On Tue, May 4, 2021 at 2:43 PM David Marchand wrote: > > Keep the list of socs in a single place and include it so that the > documentation won't get outdated. > > Fixes: 8f5ea6a464ac ("config/arm: fix implementer and its SoCs") > Fixes: 1b4c86a721c9 ("c

Re: [dpdk-dev] [dpdk-ci] dpdk-next-crypto/master is failing tests

2021-05-06 Thread David Marchand
intel/master dpdk-next-net-mlx/master dpdk-next-net-mrvl/master dpdk-next-net/master dpdk-next-pipeline/master dpdk-next-virtio/master dpdk/HEAD -> dpdk/master dpdk/master Those remote tracking branches can be dropped. -- David Marchand

[dpdk-dev] [PATCH] telemetry: remove static limit on callbacks count

2021-05-06 Thread David Marchand
This code is not performance sensitive and can be switched to dynamic allocations. Signed-off-by: David Marchand --- lib/telemetry/rte_telemetry.h | 2 +- lib/telemetry/telemetry.c | 15 +-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/lib/telemetry

[dpdk-dev] [PATCH] bus/fslmc: remove unused macro

2021-05-06 Thread David Marchand
Fixes: ce9efbf5bb09 ("bus/fslmc: support dynamic logging") Cc: sta...@dpdk.org Signed-off-by: David Marchand --- drivers/bus/fslmc/fslmc_logs.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/bus/fslmc/fslmc_logs.h b/drivers/bus/fslmc/fslmc_logs.h index dd74cb7dcf..

[dpdk-dev] [PATCH] event/dpaa2: remove unused macros

2021-05-06 Thread David Marchand
Fixes: 653242c3375a ("event/dpaa2: add self test") Cc: sta...@dpdk.org Signed-off-by: David Marchand --- drivers/event/dpaa2/dpaa2_eventdev_logs.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/event/dpaa2/dpaa2_eventdev_logs.h b/drivers/event/dpaa2/dpaa2_eventdev_lo

[dpdk-dev] [PATCH 0/2] Thread termination leak fixes

2021-05-06 Thread David Marchand
) would leak the associated thread resources. I leave it to this driver maintainer to comment/fix. - The vhost library also lets a service thread in the background but since there is no way to unitialize this library, there is no leak to fix from my pov. -- David Marchand David Marchand (2

[dpdk-dev] [PATCH 1/2] net/ark: fix leak on thread termination

2021-05-06 Thread David Marchand
("net/ark: integrate PMD") Cc: sta...@dpdk.org Signed-off-by: David Marchand --- drivers/net/ark/ark_pktgen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ark/ark_pktgen.c b/drivers/net/ark/ark_pktgen.c index 28a44f7546..515bfe461c 100644 --- a/drivers/net/ark/ark_pktgen

[dpdk-dev] [PATCH 2/2] net/ice: fix leak on thread termination

2021-05-06 Thread David Marchand
ds. Fixes: 3b3757bda3c3 ("net/ice: get VF hardware index in DCF") Cc: sta...@dpdk.org Signed-off-by: David Marchand --- drivers/net/ice/ice_dcf_parent.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ice/ice_dcf_parent.c b/drivers/net/ice/ice_dcf_parent.c index c8e433239

[dpdk-dev] [PATCH] eal: fix leak in shared lib mode detection

2021-05-06 Thread David Marchand
Fixes: 06c7871dde01 ("eal: restrict default plugin path to shared lib mode") Cc: sta...@dpdk.org Signed-off-by: David Marchand --- lib/eal/common/eal_common_options.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/eal/common/eal_common_options.c

[dpdk-dev] [PATCH] net/ice/base: fix mem allocations wrapper

2021-05-06 Thread David Marchand
te_calloc. Fixes: 5f0978e96220 ("net/ice/base: add OS specific implementation") Cc: sta...@dpdk.org Signed-off-by: David Marchand --- drivers/net/ice/base/ice_osdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_osdep.h b/drivers/net/ice/base/i

[dpdk-dev] [PATCH 0/2] 21.05 fixes for OVS

2021-05-06 Thread David Marchand
Testing OVS build against 21.05-rc2 revealed some issues. Bits were also missing on OVS side, so for people interested, a rebased dpdk-latest OVS branch is available at: https://github.com/david-marchand/ovs/commits/dpdk-latest -- David Marchand David Marchand (2): net: add endianness

[dpdk-dev] [PATCH 1/2] net: add endianness annotations to ethernet headers

2021-05-06 Thread David Marchand
reuse ethernet header definition in flow item") and commit a56a262e3408 ("ethdev: reuse VLAN header definition in flow item"). Signed-off-by: David Marchand --- lib/net/rte_ether.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/net/rte_ether.h b/lib/n

[dpdk-dev] [PATCH 2/2] net: fix header include order for FreeBSD

2021-05-06 Thread David Marchand
eeBSD support" This is a check enforced by OVS itself. See [1] for some context. 1: https://github.com/openvswitch/ovs/commit/b2befd5bb2db Fixes: 89813a522e68 ("net: provide IP-related API on any OS") Signed-off-by: David Marchand --- lib/net/rte_ip.h | 2 +- 1 file changed, 1 inse

Re: [dpdk-dev] [RFC PATCH] dmadev: introduce DMA device library

2021-06-16 Thread David Marchand
evice; > + /**< Driver info. supplied by probing */ > + const char *driver_name; > + > + /**< Device name */ > + char name[RTE_DMADEV_NAME_MAX_LEN]; > +} __rte_cache_aligned; > + I see no queue/channel notion. How does a rte_dmadev object relate to a physical hw engine? -- David Marchand

Re: [dpdk-dev] [PATCH] tests/test_eal_flags: fix memory leak

2021-06-16 Thread David Marchand
On Wed, Jun 16, 2021 at 6:26 PM wrote: > > From: Owen Hilyard > > The directory steam was not closed when the hugepage action was > HUGEPAGE_CHECK_EXISTS. This caused a memory leak in some parts of > the unit tests. > > Signed-off-by: Owen Hilyard Reviewed-by: Dav

Re: [dpdk-dev] [PATCH] tests/cmdline: fix memory leaks

2021-06-16 Thread David Marchand
;); > + cmdline_free(cl); > return -1; > } > > /* void functions */ > cmdline_stdin_exit(NULL); > - > + if (cl != NULL) > + cmdline_free(cl); We made sure cl != NULL above, no nee

Re: [dpdk-dev] [PATCH] tests/test_eal_flags: fix memory leak

2021-06-16 Thread David Marchand
On Wed, Jun 16, 2021 at 6:37 PM David Marchand wrote: > > On Wed, Jun 16, 2021 at 6:26 PM wrote: > > > > From: Owen Hilyard > > > > The directory steam was not closed when the hugepage action was > > HUGEPAGE_CHECK_EXISTS. This caused a memory leak in som

Re: [dpdk-dev] Memory leak in rte_pci_scan

2021-06-16 Thread David Marchand
process did not initialise correctly, but it tried to cleanup afterwards... per chance, do you have a crash reported in syslog? -- David Marchand

Re: [dpdk-dev] [PATCH v2] config/arm: add Qualcomm Centriq 2400 part number

2021-06-17 Thread David Marchand
'numa': false > > } > > Any comment or ack? $ meson setup build-centriq --cross-file config/arm/arm64_centriq2400_linux_gcc ... Compiler for C supports arguments -Wno-missing-field-initializers -Wmissing-field-initializers: YES config/arm/meson.build:226:0: ERROR: Duplicate dictionary key: part_number -- David Marchand

Re: [dpdk-dev] [PATCH v2 00/20] net/sfc: support flow API COUNT action

2021-06-17 Thread David Marchand
r is reported only once for each function it appears in $ git grep SFC_ETHDEV_STARTED drivers/net/sfc/sfc_flow.c: if (sa->state != SFC_ETHDEV_STARTED) { -- David Marchand

Re: [dpdk-dev] [PATCH v2 1/2] examples/l2fwd: fix long option parsing

2021-06-17 Thread David Marchand
wd: add forwarding port mapping option") > Cc: sta...@dpdk.org > > Signed-off-by: SunChengLian Reviewed-by: David Marchand -- David Marchand

Re: [dpdk-dev] [dpdk-stable] [PATCH v2 2/2] examples/l2fwd: remove mac-updating option

2021-06-17 Thread David Marchand
break; > - > case CMD_LINE_OPT_NO_MAC_UPDATING_NUM: > mac_updating = 0; > break; > -- > 2.25.1 > Reviewed-by: David Marchand -- David Marchand

Re: [dpdk-dev] Regarding Armv7 support in DPDK-21.05

2021-06-18 Thread David Marchand
alEdge does not > accept any liability for virus infected mails. This trailer does not make sense on a public mailing list. Please ask your IT to remove it. Thanks! -- David Marchand

Re: [dpdk-dev] [RFC v2] porting AddressSanitizer feature to DPDK

2021-06-18 Thread David Marchand
d could success to merge, thanks. How did you test this work? UNH recently started testing with ASAN and it reveals leaks just in the unit test. Merging these annotations will help catch more issues. But users will hit the current issues that we must fix first. -- David Marchand

Re: [dpdk-dev] [RFC 0/7] crypto/ipsec_mb: introduce ipsec_mb framework

2021-06-18 Thread David Marchand
town Industrial Park, Leixlip, County Kildare > Registered Number: 308263 > > > This e-mail and any attachments may contain confidential material for the sole > use of the intended recipient(s). Any review or distribution by others is > strictly prohibited. If you are not the intended recipient, please contact the > sender and delete all copies. Please ask your IT to get this trailer removed. -- David Marchand

Re: [dpdk-dev] [PATCH v3 19/20] net/sfc: support flow action COUNT in transfer rules

2021-06-21 Thread David Marchand
han@wsfd-netdev66 dpdk]$ cat /usr/lib/gcc/x86_64-redhat-linux/10/libatomic.so INPUT ( /usr/lib64/libatomic.so.1.2.0 ) [dmarchan@wsfd-netdev66 dpdk]$ file /usr/lib64/libatomic.so.1.2.0 /usr/lib64/libatomic.so.1.2.0: cannot open `/usr/lib64/libatomic.so.1.2.0' (No such file or directory) [dmarchan@wsfd-netdev66 dpdk]$ meson --version 0.55.3 -- David Marchand

Re: [dpdk-dev] [dpdk-stable] [PATCH] app/test: fix IPv6 header initialization

2021-06-21 Thread David Marchand
On Mon, Jun 21, 2021 at 2:41 PM Lance Richardson wrote: > > On Tue, May 11, 2021 at 10:42 AM Lance Richardson > wrote: > > > > On Tue, May 11, 2021 at 10:31 AM David Marchand > > wrote: > > > > > > On Fri, Mar 26, 2021 at 5:37 PM Lance Richardson

Re: [dpdk-dev] [PATCH v3] lib/rte_rib6: fix stack buffer overflow

2021-06-22 Thread David Marchand
ade to remove the for loop entirely. > > Fixes: f7e861e21c ("rib: support IPv6") Cc: sta...@dpdk.org > > Signed-off-by: Owen Hilyard Vladimir, can you review this fix? Thanks! -- David Marchand

Re: [dpdk-dev] [PATCH] lib/flow_classify: fix leaking rules on delete

2021-06-22 Thread David Marchand
e regardless of the result of the f_delete() op. The same is done out of the loop which means this function returns -EINVAL and frees the rule in this case too. Bernard, Ferruh, can you review please? Thanks! -- David Marchand

Re: [dpdk-dev] [PATCH v2] common/mlx5: add provider query port support to glue library

2021-06-23 Thread David Marchand
or a runtime compat issue? A good title makes life easier for users and people maintaining stable versions of DPDK. -- David Marchand

Re: [dpdk-dev] [PATCH v2] common/mlx5: add provider query port support to glue library

2021-06-23 Thread David Marchand
ate in the title that the mlx5 driver can now handle correctly rdma-core 35. Additionally, it could indicate which feature X is now behaving as intended. But if feature X is something internal to the mlx5 driver, it is worth skipping. -- David Marchand

Re: [dpdk-dev] [PATCH v2] flow_classify: fix leaking rules on delete

2021-06-24 Thread David Marchand
") > > > > Signed-off-by: Owen Hilyard > This patch should be backported. > Please add the following line after the Fixes line: > Cc: sta...@dpdk.org I'll add it when applying, no need for a v3. Thanks. -- David Marchand

[dpdk-dev] [PATCH] test: remove hack for private header inclusion

2021-06-24 Thread David Marchand
This hack was needed with the make build system. With meson, any private header from a library is visible as long as a dependency to this library is expressed. Signed-off-by: David Marchand --- app/test/test_eal_fs.c | 3 +-- app/test/test_memzone.c| 3 ++- app/test

Re: [dpdk-dev] Experimental symbols in eal lib

2021-06-24 Thread David Marchand
.11, as they have been experimental for >= 2yrs at > this point. Just an additional comment. Marking stable is not the only choice. We can also consider hiding such symbols (marking internal) if there is no clear usecase out of DPDK. -- David Marchand

Re: [dpdk-dev] [PATCH v2] flow_classify: fix leaking rules on delete

2021-06-24 Thread David Marchand
dk.org > > Signed-off-by: Owen Hilyard Acked-by: Bernard Iremonger Applied, thanks. -- David Marchand

Re: [dpdk-dev] [PATCH v4] rib: fix max depth IPv6 lookup

2021-06-24 Thread David Marchand
gned-off-by: Owen Hilyard Acked-by: Vladimir Medvedkin Applied, thanks. -- David Marchand

Re: [dpdk-dev] [PATCH v3] tests/cmdline: fix memory leaks

2021-06-24 Thread David Marchand
; > printf("Error: failed to open /dev/null for reading!"); > > + cmdline_free(cl); > > return -1; > > } > > The cmdline_free(cl) after a if (cl == NULL) is not needed. I took the liberty of doing the change when applying and added your ack. Thanks. -- David Marchand

Re: [dpdk-dev] [PATCH v3] tests/cmdline: fix memory leaks

2021-06-24 Thread David Marchand
e: tests") Updated sha1. Cc: sta...@dpdk.org > > Signed-off-by: Owen Hilyard > Reviewed-by: David Marchand Acked-by: Olivier Matz Applied, thanks. -- David Marchand

Re: [dpdk-dev] [PATCH] tests/test_eal_flags: fix memory leak

2021-06-24 Thread David Marchand
lags") Cc: sta...@dpdk.org > Signed-off-by: Owen Hilyard Reviewed-by: David Marchand Applied, thanks. -- David Marchand

Re: [dpdk-dev] [PATCH] bus/pci: Fix PowerNV platform detection logic

2021-06-24 Thread David Marchand
gt; > Signed-off-by: David Christensen Reviewed-by: David Marchand Looking at http://patchwork.dpdk.org/project/dpdk/patch/20210623204355.74362-1-...@linux.vnet.ibm.com/, I understand it should be merged after this current patch. Can you confirm? -- David Marchand

Re: [dpdk-dev] Experimental symbols in bbdev lib

2021-06-25 Thread David Marchand
r_enable > * rte_bbdev_queue_start > * rte_bbdev_queue_stop > * rte_bbdev_release > * rte_bbdev_setup_queues > * rte_bbdev_start > * rte_bbdev_stats_get > * rte_bbdev_stats_reset > * rte_bbdev_stop Regardless of removing the experimental status on this API, part of the symbols listed here are driver-only and should be marked internal. -- David Marchand

Re: [dpdk-dev] Experimental symbols in compressdev lib

2021-06-25 Thread David Marchand
> * rte_comp_op_bulk_free > * rte_comp_op_free > * rte_comp_op_pool_create > Part of the symbols listed here are driver-only (at least the *_pmd_* symbols) and should be marked internal. -- David Marchand

Re: [dpdk-dev] [PATCH v2 5/7] power: support callbacks for multiple Rx queues

2021-06-28 Thread David Marchand
; + * net/iavf > + * net/mlx5 > + * net/af_xdp This list will get obsolete. It looks like a driver capability, so can we have a ethdev feature added? Then mark drivers that supports this feature. And the power lib documentation will have a reference to doc/guides/nics/features.rst. -- David Marchand

Re: [dpdk-dev] [PATCH v2 1/2] net/ice: factorize firmware loading

2021-06-28 Thread David Marchand
On Thu, Jun 3, 2021 at 6:55 PM David Marchand wrote: > > Both "normal" and "dcf" inits have their copy of some firmware loading > code. > > The DSN query is moved in specific parts for the "normal" and "dcf" init. > > A common helper i

Re: [dpdk-dev] [PATCH] mem: fix mem leak issue when attaching a PCI device without driver to DPDK

2021-06-28 Thread David Marchand
dk.org/project/dpdk/patch/20210616065257.16044-1-david.march...@redhat.com/ -- David Marchand

Re: [dpdk-dev] [PATCH] fix l2fwd --no-mac-updating not working issue

2021-06-28 Thread David Marchand
ixed with these patches: http://patchwork.dpdk.org/project/dpdk/patch/20210622024706.1179945-1-sunchengl...@loongson.cn/ http://patchwork.dpdk.org/project/dpdk/patch/20210622024944.1180109-2-sunchengl...@loongson.cn/ Can you test/review them? Thanks. -- David Marchand

[dpdk-dev] [PATCH v3 0/2] Support compressed firmwares

2021-06-29 Thread David Marchand
se drivers maintainers, check nothing is broken. -- David Marchand Changes since v2: - update comment on libarchive link dependency, Changes since v1: - address comments on patch2, David Marchand (2): net/ice: factorize firmware loading eal: handle compressed firmwares .github/workflows

[dpdk-dev] [PATCH v3 1/2] net/ice: factorize firmware loading

2021-06-29 Thread David Marchand
s helper takes care of finding the right firmware file and loading it. The adapter active_pkg_type field is set by this helper. The ice_access macro is removed from the osdep.h header: osdep.h should only hosts wrappers for base driver code. Signed-off-by: David Marchand --- drivers/net/ice/ba

[dpdk-dev] [PATCH v3 2/2] eal: handle compressed firmwares

2021-06-29 Thread David Marchand
dependency: without libarchive, a runtime warning is emitted so that users know there is a compressed firmware. Windows implementation is left as an empty stub. Signed-off-by: David Marchand Reviewed-by: Igor Russkikh --- Changes since v2: - added a comment on libarchive link dependency, Changes since

Re: [dpdk-dev] [PATCH] ethdev: add namespace

2021-06-29 Thread David Marchand
mode::RTE_ETH_MQ_RX_VMDQ_DCB_RSS' value '7' [snip] I guess libabigail is lost because the symbol rte_eth_rx_mq_mode::ETH_MQ_RX_NONE simply disappeared (because we used a macro to wrap to the new name). Maybe we could go the other way: leave the current enums defined as is and put in place wrappers for new names pointing as old names. The rest of the code in DPDK would use the new names only. This comment applies if we want to merge this change in 21.08 and/or we want to backport this change. This won't be a problem if we merge this patch in 21.11. > --- > We can get the update on v21.11 and remove backward compatibility macros > on v22.11. -- David Marchand

Re: [dpdk-dev] [PATCH v7 4/7] vhost: fix NUMA reallocation with multiqueue

2021-06-30 Thread David Marchand
s patch fixes this issue by reallocating the device metadata only if the device is not running. WDYT? > virtqueues, a vring state change notification is sent to > notify the application of its disablement. Since the callback > is supposed to be blocking, it is safe to reallocate it > afterwards. -- David Marchand

Re: [dpdk-dev] [PATCH v7 7/7] vhost: convert inflight data to DPDK allocation API

2021-06-30 Thread David Marchand
), > + 0, vq->numa_node); > if (resubmit->resubmit_list == NULL) { > VHOST_LOG_CONFIG(ERR, > "failed to allocate memory for resubmit > desc.\n"); > - free(resubmit); > + rte_free(resubmit); > return RTE_VHOST_MSG_RESULT_ERR; > } > > -- > 2.31.1 > -- David Marchand

Re: [dpdk-dev] [PATCH v7 0/7] vhost: Fix and improve NUMA reallocation

2021-06-30 Thread David Marchand
_socket() and their reallocation is handled > in numa_realloc(). > Series lgtm with some little nits. Thanks Maxime! -- David Marchand

Re: [dpdk-dev] [RFC v2] porting AddressSanitizer feature to DPDK

2021-06-30 Thread David Marchand
On Mon, Jun 28, 2021 at 4:22 PM Burakov, Anatoly wrote: > > On 18-Jun-21 10:04 AM, David Marchand wrote: > > On Fri, Jun 18, 2021 at 9:49 AM Lin, Xueqin wrote: > >>>> Suggest listing demo code and tool capture information for user to try if > >>>

Re: [dpdk-dev] [RFC v2] porting AddressSanitizer feature to DPDK

2021-07-01 Thread David Marchand
t; > > > Prefix for the title of such a patch should be mem: Anatoly and Jerin like your patch, but it is still a RFC and there were comments on a missing release note update and unit test. Please address those comments and submit a regular patch. Thanks. -- David Marchand

Re: [dpdk-dev] [PATCH v3 19/20] net/sfc: support flow action COUNT in transfer rules

2021-07-01 Thread David Marchand
mic ops if cc.get_id() == 'gcc' +code = '''#include +void main() { printf("Atomilink me.\n"); } +''' +if not cc.links(code, args: '-latomic', name: 'libatomic link check') +build = false +reason = 'missing dependency, "libatomic"' +subdir_done() +endif ext_deps += cc.find_library('atomic') endif -- David Marchand

Re: [dpdk-dev] [PATCH v5 05/24] net/ngbe: add log type and error type

2021-07-01 Thread David Marchand
> +#endif > +#ifdef RTE_ETHDEV_DEBUG_TX > + RTE_LOG_REGISTER(ngbe_logtype_tx, pmd.net.ngbe.tx, DEBUG); > +#endif -- David Marchand

Re: [dpdk-dev] [PATCH v5 01/15] drivers: introduce mlx5 crypto PMD

2021-07-01 Thread David Marchand
_REGISTER_DEFAULT(mlx5_crypto_logtype, NOTICE) > +RTE_PMD_EXPORT_NAME(MLX5_CRYPTO_DRIVER_NAME, __COUNTER__); > +RTE_PMD_REGISTER_PCI_TABLE(MLX5_CRYPTO_DRIVER_NAME, mlx5_crypto_pci_id_map); > +RTE_PMD_REGISTER_KMOD_DEP(MLX5_CRYPTO_DRIVER_NAME, "* ib_uverbs & mlx5_core > & mlx5_ib"); -- David Marchand

[dpdk-dev] [PATCH] devtools: recommend new logtype helpers

2021-07-01 Thread David Marchand
Following commit eeded2044af5 ("log: register with standardized names"), the new helpers should be preferred so that we can maintain a consistent naming for logtypes. Signed-off-by: David Marchand --- devtools/checkpatches.sh | 8 1 file changed, 8 insertions(+) diff --git

Re: [dpdk-dev] [PATCH] net/bnxt: set rxq interrupt config to 0

2021-07-01 Thread David Marchand
s configuration in the get_infos op is wrong, be it 1 or 0. Idem with LSC. I don't think enabling LSC works as expected, because this driver does not report the RTE_ETH_DEV_INTR_LSC capability. Which leads me to a question for ethdev maintainers. I am surprised we don't have a capabil

Re: [dpdk-dev] [PATCH v3 19/20] net/sfc: support flow action COUNT in transfer rules

2021-07-02 Thread David Marchand
ated if they check ABI. And in general, we want them to continue testing net/sfc. I sent a mail to ask for this. -- David Marchand

Re: [dpdk-dev] [PATCH 1/4] drivers/net/enetfec: Introduce NXP ENETFEC driver

2021-07-02 Thread David Marchand
og) > > +{ > > + enetfec_logtype_pmd = rte_log_register("pmd.net.enetfec"); > > + if (enetfec_logtype_pmd >= 0) > > + rte_log_set_level(enetfec_logtype_pmd, RTE_LOG_NOTICE); > > rte_log_register_type_and_pick_level() should be used. > > > +} Please prefer RTE_LOG_REGISTER_DEFAULT(). Thanks. -- David Marchand

Re: [dpdk-dev] [PATCH v3 2/2] eal: handle compressed firmwares

2021-07-04 Thread David Marchand
> > +} > > > Since ice PMD needs to check if the firmware file with different name can be > accessed > by some kind of order, before doing the final firmware selection. Should we > also add > the firmware access API for handling this ? I don't see the need. Is the behavior changed for net/ice with this patch? -- David Marchand

<    1   2   3   4   5   6   7   8   9   10   >