[ovs-dev] [branch-2.16] dpif-netdev: Refactor AVX512 runtime checks.

2022-06-29 Thread David Marchand
;dpif-netdev/mfex: Add AVX512 based optimized miniflow extract") Fixes: b366fa2f4947 ("dpif-netdev: Call cpuid for x86 isa availability.") Reported-at: https://bugzilla.redhat.com/2100393 Reported-by: Ales Musil Co-authored-by: Ales Musil Signed-off-by: Ales Musil Signed-off-by: Davi

[ovs-dev] [branch-2.15] dpif-netdev: Refactor AVX512 runtime checks.

2022-06-29 Thread David Marchand
;dpif-netdev/mfex: Add AVX512 based optimized miniflow extract") Fixes: b366fa2f4947 ("dpif-netdev: Call cpuid for x86 isa availability.") Reported-at: https://bugzilla.redhat.com/2100393 Reported-by: Ales Musil Co-authored-by: Ales Musil Signed-off-by: Ales Musil Signed-off-by: Davi

[ovs-dev] [branch-2.14] dpif-netdev: Refactor AVX512 runtime checks.

2022-06-29 Thread David Marchand
;dpif-netdev/mfex: Add AVX512 based optimized miniflow extract") Fixes: b366fa2f4947 ("dpif-netdev: Call cpuid for x86 isa availability.") Reported-at: https://bugzilla.redhat.com/2100393 Reported-by: Ales Musil Co-authored-by: Ales Musil Signed-off-by: Ales Musil Signed-off-by: Davi

Re: [ovs-dev] [PATCH] dpif-netdev: Fix leak of AVX512 DPIF scratch pad.

2022-06-29 Thread David Marchand
hread pthread_create.c > > SUMMARY: AddressSanitizer: 38656 byte(s) leaked in 2 allocation(s). > > Fixes: 9ac84a1a3698 ("dpif-avx512: Add ISA implementation of dpif.") > Signed-off-by: Ilya Maximets Reviewed-by: David Marchand -- David Marchand _

[ovs-dev] [PATCH v2] dpif-netdev: Refactor AVX512 runtime checks.

2022-06-29 Thread David Marchand
act") Fixes: b366fa2f4947 ("dpif-netdev: Call cpuid for x86 isa availability.") Reported-at: https://bugzilla.redhat.com/2100393 Reported-by: Ales Musil Co-authored-by: Ales Musil Signed-off-by: Ales Musil Signed-off-by: David Marchand Acked-by: Sunil Pai G --- Changes since

Re: [ovs-dev] [PATCH] dpif-netdev: Refactor AVX512 runtime checks.

2022-06-24 Thread David Marchand
On Fri, Jun 24, 2022 at 9:30 AM David Marchand wrote: > > As described in the bugzilla below, cpu_has_isa code may be compiled > with some AVX512 instructions in it, because cpu.c is built as part of > the libopenvswitchavx512. > This is a problem when this function (supposed to p

[ovs-dev] [PATCH] dpif-netdev: Refactor AVX512 runtime checks.

2022-06-24 Thread David Marchand
iables when a simple boolean is enough, Fixes: b366fa2f4947 ("dpif-netdev: Call cpuid for x86 isa availability.") Reported-at: https://bugzilla.redhat.com/2100393 Reported-by: Ales Musil Signed-off-by: David Marchand --- lib/automake.mk| 4 +-- lib/dpif-netd

Re: [ovs-dev] [PATCH] cpu.c: Build cpu.c without any assumptions about CPU flags

2022-06-23 Thread David Marchand
-lrte_telemetry -lrte_kvargs -lbsd -lmlx4 -libverbs -lmlx5 -lpcap -lnuma -latomic -lm For this error on cpu_has_isa to happen, the linker probably judged no symbol from cpu.c could be used and decided to drop the whole .o. So we need something to make sure those won't be dropped. I just

Re: [ovs-dev] [PATCH v4 3/3] system-dpdk: Add unit test for user configured mempools.

2022-06-21 Thread David Marchand
On Wed, Jun 1, 2022 at 6:38 PM Kevin Traynor wrote: > > Test that user configured mempool params have been stored. > > Signed-off-by: Kevin Traynor Reviewed-by: David Marchand > --- > tests/system-dpdk.at | 34 ++ > 1 file changed, 34 i

Re: [ovs-dev] [PATCH v4 2/3] system-dpdk: Split ovsdb creation and vswitchd start.

2022-06-21 Thread David Marchand
On Wed, Jun 1, 2022 at 6:38 PM Kevin Traynor wrote: > > Splitting them allows them to be reused separately. This > is useful for setting some things in ovsdb before vswitchd is > started or DPDK is initialized. > > Signed-off-by: Kevin Traynor Reviewed-by: David Marchand

Re: [ovs-dev] [PATCH v4 1/3] netdev-dpdk: Add shared mempool config.

2022-06-21 Thread David Marchand
mempool based on 6000 MTU > * MTU 9000, use mempool based on 9000 MTU > * MTU 9300, use mempool based on 9300 MTU (existing behaviour) > > Default behaviour is unchanged and mempools are still only created > when needed. > > Signed-off-by: Kevin Traynor Reviewed

Re: [ovs-dev] [PATCH 7/7] dp-packet: Add _ol_ to functions using OL flags.

2022-06-10 Thread David Marchand
On Fri, Jun 3, 2022 at 5:16 PM Mike Pattrick wrote: > > From: Flavio Leitner > > This helps to identify when it is about the flags or > the packet itself. > > Signed-off-by: Flavio Leitner > Co-authored-by: Mike Pattrick > Signed-off-by: Mike Pattrick Reviewed-by:

Re: [ovs-dev] [PATCH 6/7] dp-packet: Rename dp_packet_ol l4 functions.

2022-06-10 Thread David Marchand
On Fri, Jun 3, 2022 at 5:16 PM Mike Pattrick wrote: > > From: Flavio Leitner > > Rename to better represent their flags. > > Signed-off-by: Flavio Leitner > Co-authored-by: Mike Pattrick > Signed-off-by: Mike Pattrick Reviewed-by: David Marcha

Re: [ovs-dev] [PATCH 4/7] dp-packet: Use p for packet and b for batch.

2022-06-10 Thread David Marchand
ddr eth_src, lib/packets.c:compose_nd_na(struct dp_packet *b, lib/packets.c:compose_nd_ra(struct dp_packet *b, lib/packets.c:packet_put_ra_prefix_opt(struct dp_packet *b, Did you skip those because they were not calling functions from the dp_packet API? -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH 3/7] Rename dp_packet_hwol to dp_packet_ol.

2022-06-10 Thread David Marchand
On Fri, Jun 3, 2022 at 5:16 PM Mike Pattrick wrote: > > From: Flavio Leitner > > The name correlates better with the flag names. > > Signed-off-by: Flavio Leitner > Co-authored-by: Mike Pattrick > Signed-off-by: Mike Pattrick Nit: suggest title prefix dp-packet: Rev

Re: [ovs-dev] [PATCH 2/7] Prefix netdev offload flags with NETDEV_OFFLOAD_.

2022-06-10 Thread David Marchand
ck > Signed-off-by: Mike Pattrick Nit: suggest title: netdev: Prefix offload flags with NETDEV_OFFLOAD_ Reviewed-by: David Marchand -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH 1/7] Rename flags with CKSUM to CSUM.

2022-06-10 Thread David Marchand
lgtm. Reviewed-by: David Marchand -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v2 1/1] netdev-dpdk: Delay vhost mempool creation.

2022-06-01 Thread David Marchand
as not added, it could > also be using uneeded memory. > > This patch delays the creation of the mempool for a vhost port until the > vhost device is added. > > Signed-off-by: Kevin Traynor > Reviewed-by: David Marchand Thanks for aligning the behavior, and updating the commi

Re: [ovs-dev] [ovs-dev v6 2/3] ofproto-dpif: fix meter use-after-free

2022-05-25 Thread David Marchand
gned-off-by: Peng He > Tested-by: David Marchand > Acked-by: Eelco Chaudron > --- > ofproto/ofproto-dpif.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c > index 6601f2346..0d0d985f0 100644 > --- a/ofproto/ofprot

Re: [ovs-dev] [ovs-dev v6 1/3] ovs-rcu: add rcu_barrier

2022-05-25 Thread David Marchand
// wait for rcu_cb done + * do_destroy_A(); // free A + * } > */ > > #include "compiler.h" > @@ -310,4 +323,6 @@ void ovsrcu_synchronize(void); > > void ovsrcu_exit(void); > > +void ovsrcu_barrier(void); > + > #endif /* ovs-rcu.h */ > -- > 2.25.1 > Reviewed-by: David Marchand I think we should have a unit test for this new part of the ovs-rcu API. -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v3 1/1] dpdk: Add shared mempool config.

2022-05-24 Thread David Marchand
; * MTU 9300, use mempool based on 9300 MTU (existing behaviour) > > Default behaviour is unchanged and mempools are still only created > when needed. > > Signed-off-by: Kevin Traynor This lgtm, I have some small nits below, but otherwise: Reviewed-by: David Marcha

Re: [ovs-dev] [PATCH] ovs-save: add bindir to PATH

2022-05-23 Thread David Marchand
o ovs-lib. > Maybe we can create a couple of variables (e.g: OVS_BIN_PATH and > OVS_SBIN_PATH) > in ovs-lib and let each script use the one it needs? Sorry, it fell through the cracks.. Your proposal lgtm. -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] netdev-dpdk: Delay vhost mempool creation on multi-NUMA.

2022-05-17 Thread David Marchand
one mempool in numa1 - after patch, once vm in numa0 is started too, mempool @0x11ffe01e40 mempool @0x17f51dcc0 Reviewed-by: David Marchand -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] ovs-save: add bindir to PATH

2022-05-06 Thread David Marchand
> +esac > +esac > +done > + Seeing how we have similar code in other scripts (ovs-ctl, ovs-kmod-ctl), would it make sense to move this to ovs-lib? -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v2 2/2] dpdk: Add shared memory config.

2022-05-04 Thread David Marchand
+ Value should be set in the following form: > + > +other_config:dpdk-shared-mempory-config=< > + user-shared-mempool-mtu-list> > + > + where > + > + > + > +<user-shared-mempool-mtu-list> ::= > +NULL | <non-empty-list> > + > + > +<non-empty-list> ::= <user-mtus> | > + <user-mtus> , > + <non-empty-list> > + > + > +<user-mtus> ::= <mtu-all-socket> | > + <mtu-socket-pair> > + > + > +<mtu-all-socket> ::= <mtu> > + > + > +<mtu-socket-pair> ::= <mtu> : > <socket-id> > + > + > + > + > + Changing this value requires restarting the daemon if dpdk-init has > + already been set to true. > + > + > + >type='{"type": "integer", > -- > 2.34.1 > -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v10] dpif-netdev/mfex: Add ipv4 profile based hashing.

2022-04-29 Thread David Marchand
lp. Seeing how PVP gets better, I think the performance drop in the physical only usecase is acceptable. -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH 2/2] Documentation: Fix use of rst verbatim code chunk syntax.

2022-04-25 Thread David Marchand
On Tue, Apr 12, 2022 at 4:21 PM Kevin Traynor wrote: > > In some places it is using Markdown syntax and in others > it is not needed as there is already a code block. > > Signed-off-by: Kevin Traynor Patch lgtm, and rendered documentation is ok. Reviewed-by: David Marcha

Re: [ovs-dev] [PATCH 1/2] vswitchd.xml: Fix whitespace.

2022-04-25 Thread David Marchand
On Tue, Apr 12, 2022 at 4:20 PM Kevin Traynor wrote: > > My xml editor keeps autofixing these which means I have to be > careful during 'git add' for unrelated changes. Might as well > just fix them. > > Signed-off-by: Kevin Traynor Reviewed-by: David Ma

Re: [ovs-dev] [RFC PATCH 6/6] Disable unsupported kernel builds

2022-04-22 Thread David Marchand
gt; testsuite:test > asan: asan +1 > > I might be wrong but it seems to me we need something similar for afxdp too. The Ubuntu 18.04 kernel does not have AF_XDP support iirc, so either we keep on building a 5.3 kernel and compile ovs with afxdp against t

Re: [ovs-dev] [PATCH v3] netdev-dpdk: Refactor the DPDK transmit path.

2022-04-22 Thread David Marchand
nymore, is it? (since we are back with the code from the common helper under the lock) > > Signed-off-by: Flavio Leitner > Reviewed-by: David Marchand > Signed-off-by: Mike Pattrick The robot complains about your sign-off, you should add yourself as co-author. Good job on ident

[ovs-dev] [PATCH] netdev-dpdk: Fix tx drops statistic for a down netdev.

2022-04-22 Thread David Marchand
Dropped packets were not counted as tx_dropped when a DPDK netdev is down (like after calling netdev-dpdk/set-admin-state dpdk1 down). Fixes: 3b1fb0779b87 ("netdev-dpdk: Don't call rte_dev_stop() in update_flags().") Signed-off-by: David Marchand --- lib/netdev-dpdk.c | 3 +++

[ovs-dev] [PATCH] netdev-dpdk: Remove a leftover lock annotation.

2022-04-22 Thread David Marchand
A lock annotation was left behind after removing the nonpmd mutex. Remove it. Fixes: 1166b0d82043 ("netdev-dpdk: Remove useless nonpmd_mempool_mutex.") Signed-off-by: David Marchand --- lib/netdev-dpdk.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/netdev-dpdk.c b/lib/net

Re: [ovs-dev] [PATCH] dpif-netdev-avx512: fix ubsan shift error in bitmasks

2022-04-22 Thread David Marchand
nough, as the destinations > are all 32-bit? For storing/comparing to explicit uint32_t variables, either (uint32_t)1 or UINT32_C(1) are more natural. Any reason not to use those? -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [ovs-dev v1 2/2] ofproto-dpif: fix meter use-after-free

2022-04-12 Thread David Marchand
lication, so lowering optimizations to -O1 here. CFLAGS_ASAN="-O1 -fno-omit-frame-pointer -fno-common -fsanitize=address" CFLAGS_FOR_OVS="${CFLAGS_FOR_OVS} ${CFLAGS_ASAN}" Then, those CFLAGS can be passed at ./configure time. -- David Marchand __

Re: [ovs-dev] [ovs-dev v1 2/2] ofproto-dpif: fix meter use-after-free

2022-04-12 Thread David Marchand
seq_destroy(ofproto->ams_seq); +/* Wait for all the meter rules to be destroyed. */ +seq = seq_create(); +seqno = seq_read(); +ovsrcu_synchronize(); +ovsrcu_postpone__((void (*)(void *))seq_change, seq); +do { +seq_wait(seq, seqno); +poll_block(

Re: [ovs-dev] [ovs-dev v1 2/2] ofproto-dpif: fix meter use-after-free

2022-04-06 Thread David Marchand
eq)); +ovsrcu_postpone__((void (*)(void *))seq_change, seq); +poll_block(); +seq_destroy(seq); + close_dpif_backer(ofproto->backer, del); } Let's hope it passes the night tests :-). -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH 2/2] dpif-netdev: Restructure rxq schedule logging.

2022-04-05 Thread David Marchand
gs. visible* > > Signed-off-by: Kevin Traynor I have two small comments (see below), but otherwise: Acked-by: David Marchand > --- > lib/dpif-netdev.c | 59 +-- > 1 file changed, 32 insertions(+), 27 deletions(-) > > diff --g

Re: [ovs-dev] [PATCH 1/2] dpif-netdev: Split function to find lowest loaded PMD thread core.

2022-04-05 Thread David Marchand
here is no user visibile change in behaviour. visible* > > Signed-off-by: Kevin Traynor Acked-by: David Marchand -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] dpif-netdev: Fix dp_netdev_get_pmd() function getting correct core_id.

2022-03-31 Thread David Marchand
co Chaudron This fix is straightforward. I am a bit surprised that we lived with this bug for so long. (PMD-related) unit tests looks good too. Reviewed-by: David Marchand -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [RFC PATCH v2] dpif-netdev: Put idle PMD threads to sleep.

2022-03-28 Thread David Marchand
ned-off-by: David Marchand --- Changes since RFC v1: - added a note in NEWS, - waived warning/error logs in system-dpdk for runs with broken drivers (like net/pcap, reported by AVX512 Intel CI), --- NEWS | 4 + lib/dpif-netdev.c | 85 +- lib/netdev-dpdk.c

Re: [ovs-dev] [PATCH v1] signals: Add support for sigdescr_np

2022-03-28 Thread David Marchand
On Wed, Mar 23, 2022 at 2:08 PM Mike Pattrick wrote: > > On Wed, Mar 23, 2022 at 4:23 AM David Marchand > wrote: > > > > On Tue, Mar 22, 2022 at 6:43 PM Mike Pattrick wrote: > > > > > > In glibc 2.32 sys_siglist is no longer exported. The MT-safe functi

Re: [ovs-dev] [PATCH v5 3/5] pmd.at: Add tests for multi non-local numa pmds.

2022-03-24 Thread David Marchand
On Wed, Mar 23, 2022 at 3:09 PM Kevin Traynor wrote: > > Ensure that if there are no local numa PMD thread > cores available that pmd cores from all other non-local > numas will be used. > > Signed-off-by: Kevin Traynor Acked-by: David Marchand

Re: [ovs-dev] [PATCH v1] signals: Add support for sigdescr_np

2022-03-23 Thread David Marchand
and a replacement for direct access to sys_siglist... ? -- David marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] dp-packet: Allow DPDK packet resize.

2022-03-22 Thread David Marchand
On Tue, Mar 22, 2022 at 3:41 AM Harold Huang wrote: > > On Fri, Mar 18, 2022 at 11:33 PM David Marchand > wrote: > > > > DPDK based dp-packets points to data buffers that can't be expanded > > dynamically. > > Their layout is as follows: > > - a

Re: [ovs-dev] [PATCH] dp-packet: Allow DPDK packet resize.

2022-03-22 Thread David Marchand
So I guess you mean "multi segments" mbuf. This patch only allows resizing mono segment mbuf. I have no plan to revive the multi segments work. Do you see an issue with proposed code change? -- David Marchand ___ dev mailing l

Re: [ovs-dev] [PATCH v2] tests: Fix incorrect usage of OVS_WAIT_UNTIL.

2022-03-22 Thread David Marchand
s good enough. Thanks. > > Fixes: b4e50218a0f8 ("bond: Add 'primary' interface concept for active-backup > mode.") > Fixes: 9e11517e6ca6 ("ovs-router: Fix flushing of local routes.") > Signed-off-by: Ilya Maximets Reviewed-by: David Marchand I

Re: [ovs-dev] [PATCH v4 5/5] alb.ut: Add tests for cross-numa polling.

2022-03-22 Thread David Marchand
; Signed-off-by: Kevin Traynor > Acked-by: Mike Pattrick Acked-by: David Marchand -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v4 4/5] dpif-netdev: Fix PMD auto load balance with pmd-rxq-isolate.

2022-03-22 Thread David Marchand
uld check the individual rxqs for pinning before we disallow > PMD ALB. > > Also, update function comments to make it's operation clearer. > > Fixes: 6193e03267c1 ("dpif-netdev: Allow pin rxq and non-isolate PMD.") But, in any case,

Re: [ovs-dev] [PATCH v4 3/5] pmd.at: Add tests for multi non-local numa pmds.

2022-03-22 Thread David Marchand
d: 0 > +port: p0 queue-id: 1 > +port: p0 queue-id: 2 > +port: p0 queue-id: 3 > +]) As stated in the comment, we only need to make sure we have a number of pmd polling some rxq. This can be done with an existing helper (which, btw, could also embed the filter on AVAIL$ rather than du

Re: [ovs-dev] [PATCH v4 2/5] dpif-netdev: Fix non-local numa selection.

2022-03-22 Thread David Marchand
n. > > Store the last numa used when successfully finding a non-local numa > with available pmds, so the numa RR state is kept for subsequent rxqs. > > Fixes: f577c2d046b2 ("dpif-netdev: Rework rxq scheduling code.") > > Signed-off-by: Kevin Tr

Re: [ovs-dev] [PATCH v4 1/5] dpif-netdev: Fix typo in function name.

2022-03-22 Thread David Marchand
empty line between Fixes: and the rest of the tags is something Thomas insists on, on dpdk side. But this is not a common practice in other projects (OVS included). This empty line could be removed. > > Signed-off-by: Kevin Traynor > Acked-by: Mike Pattrick Acked-by: Da

Re: [ovs-dev] [PATCH] ofproto-dpif.at: Fix broken waits in bonding tests.

2022-03-21 Thread David Marchand
ary' interface concept for active-backup > mode.") > Signed-off-by: Ilya Maximets Otherwise the patch lgtm. -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [PATCH] dp-packet: Allow DPDK packet resize.

2022-03-18 Thread David Marchand
s), a 128 bytes headroom is too short. Dynamically allocate buffers in DPDK memory and make use of DPDK external buffers API (previously used for userspace TSO). Signed-off-by: David Marchand --- lib/dp-packet.c | 17 - lib/netdev-dpdk.c

Re: [ovs-dev] [PATCH] Fix Apache license notice.

2022-03-10 Thread David Marchand
On Thu, Mar 10, 2022 at 1:51 PM Ilya Maximets wrote: > > On 3/10/22 13:12, David Marchand wrote: > > The hacking flake8 plugin generates a lot of noise in GHA logs about an > > issue on the Apache license contained in OVS python files: > > https://github.com/openvswitch/o

Re: [ovs-dev] [PATCH] ofproto-dpif: Fix ofproto use-after-free while freeing the meter id.

2022-03-09 Thread David Marchand
On Tue, Mar 8, 2022 at 8:44 PM Ilya Maximets wrote: > > On 3/8/22 17:39, David Marchand wrote: > > On Mon, Mar 7, 2022 at 11:28 PM Ilya Maximets wrote: > >> > >> 'ofproto' should still be in place while freeing meter id, but this is > >> not

Re: [ovs-dev] [PATCH] ofproto-dpif: Fix ofproto use-after-free while freeing the meter id.

2022-03-08 Thread David Marchand
from getting shot thanks to refcount, but I don't understand what prevents backer content from being uninitialised (like destroying the meter id pool) in close_dpif_backer(). -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] |fail| pw1601234 [PATCH v2 3/4] dpif-netdev: Fix PMD auto load balance with pmd-rxq-isolate.

2022-03-07 Thread David Marchand
/lib/ovs-rcu.c:362:14 #3 0x73a25c in ovsthread_wrapper /home/runner/work/ovs/ovs/openvswitch-2.17.90/_build/sub/../../lib/ovs-thread.c:422:12 #4 0x7fb98a2fa6da in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76da) #5 0x7fb98987971e in clone (/lib/x86_64-linux-gnu/libc.so.6+0x12171e) There were previous reports from Ilya and others (me included). Initial report: https://mail.openvswitch.org/pipermail/ovs-dev/2021-February/380582.html -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [RFC PATCH] dpif-netdev: Put idle PMD threads to sleep.

2022-03-04 Thread David Marchand
ned-off-by: David Marchand --- lib/dpif-netdev.c | 86 +- lib/netdev-dpdk.c | 199 +++--- lib/netdev-provider.h | 8 ++ lib/netdev.c | 9 ++ lib/netdev.h | 1 + 5 files changed, 272 insertions(+), 31 deletions(-) di

Re: [ovs-dev] [PATCH v3] system-dpdk.at: Add warning log in mfex fuzzy test.

2022-02-09 Thread David Marchand
han 1000+ flows being offloading simultanously. > > Wilcarding flow count number as for different systems > under test the number could vary in the warning log. > > Suggested-by: Eelco Chaudron > Signed-off-by: Kumar Amber Though I can't reproduce the issue, the patch lgtm. Revie

Re: [ovs-dev] [PATCH RFC dpdk-latest v3 0/1] Enable vhost async API's in OvS.

2022-02-09 Thread David Marchand
ds can already be retrieved from existing ethdev API without using DPDK interrupt thread/framework. > > In any case, some extra engineering will be required to support vhost > rx interrupts even without dma. I have a PoC in my branches. I'll send a RFC on this topic, afte

Re: [ovs-dev] [PATCH] netdev-dpdk: Update to use RTE_ETH namespace defines.

2022-02-08 Thread David Marchand
DPDK 21.11. +1 > > [0] > http://git.dpdk.org/dpdk/commit/?id=295968d1740760337e16b0d7914875c5cac52850 > > Signed-off-by: Kevin Traynor > > --- > > N.B. This is not required for 2.17, the existing defines work fine. LGTM, thanks Kevin. Acked-by: David Marchand -- David Marchand

Re: [ovs-dev] [PATCH v1] system-dpdk.at: Add warning log in mfex fuzzy test.

2022-02-07 Thread David Marchand
I can't reproduce this warning on a AVX512 system with F34. That may be a lack of luck on my side, like not enough good packets generated... ? In any case, there is nothing tightly binding this test with the 10k current upcall flow limit. A wildcard pattern rather than a 1

[ovs-dev] [PATCH] system-dpdk: Fix MFEX logs check.

2022-01-19 Thread David Marchand
logs matching.") Signed-off-by: David Marchand --- tests/system-dpdk.at | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/system-dpdk.at b/tests/system-dpdk.at index 1dd7aae1b7..9384cf7f0f 100644 --- a/tests/system-dpdk.at +++ b/tests/system-dpdk.at @@ -5,8 +5,10 @@ AT_BANNER([OVS

Re: [ovs-dev] [PATCH] system-tso: Skip encap tests when userspace TSO is enabled.

2022-01-18 Thread David Marchand
mple, if the payload is a > TCP packet, most probably the flag DP_PACKET_OL_TX_UDP_CKSUM doesn't > make sense after decapsulating that. > > This patch skips the tunnel tests when the userspace TSO is enabled. > Fixes: 29bb3093eb8b ("userspace: Enable TSO support for non-DPDK

Re: [ovs-dev] OVS DPDK MFEX Unit Tests Failing

2022-01-17 Thread David Marchand
hide this issue, but the memory allocator still expects mp to be available, regardless of --in-memory or rte_mp_disable calls. -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] OVS DPDK MFEX Unit Tests Failing

2022-01-12 Thread David Marchand
7060-2-david.march...@redhat.com/ I updated my repo and I'll send a fix on the ml. https://github.com/david-marchand/ovs/commit/system-dpdk -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] OVS DPDK MFEX Unit Tests Failing

2022-01-12 Thread David Marchand
On Wed, Jan 12, 2022 at 5:17 PM David Marchand wrote: > > On Wed, Jan 12, 2022 at 4:48 PM Phelan, Michael > wrote: > > > > Hi, > > > > During internal testing of the AVX-512 CI, a bug was picked up on the OVS > > master branch which resulted in the

Re: [ovs-dev] OVS DPDK MFEX Unit Tests Failing

2022-01-12 Thread David Marchand
n list.@d \@Error: unknown miniflow extract implementation superstudy.@d \@Error: invalid study_pkt_cnt value: -pmd.@d +\@Interface p1 does not support MTU configuration, max packet size supported is 1500.@d +\@Rx checksum offload is not supported on port 0@d ])") AT_CLEANUP dnl dnl

[ovs-dev] [PATCH] NEWS: Fix some typo.

2022-01-06 Thread David Marchand
on gre fields.") Signed-off-by: David Marchand --- NEWS | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index bc4a1cfacc..a654e675c0 100644 --- a/NEWS +++ b/NEWS @@ -12,7 +12,7 @@ Post-v2.16.0 * Add hardware offload support for

Re: [ovs-dev] [PATCH dpdk-latest] ci: Remove -Wno-cast-align from CI

2022-01-06 Thread David Marchand
; # additional warnings in alphabetical order > +'-Wcast-align', > '-Wcast-qual', > '-Wdeprecated', > '-Wformat', > --- > > But I don't know if that will cause any problems.

Re: [ovs-dev] [PATCH v4 2/4] system-dpdk: Test with mlx5 devices.

2022-01-06 Thread David Marchand
On Tue, Jan 4, 2022 at 12:34 PM Ilya Maximets wrote: > > On 1/3/22 15:15, David Marchand wrote: > > The DPDK unit test only runs if vfio or igb_uio kernel modules are loaded: > > on systems with only mlx5, this test is always skipped. > > > > Besides, the test

Re: [ovs-dev] [PATCH v4 4/4] tests: Move MFEX tests to dpif-netdev.

2022-01-06 Thread David Marchand
> > 2. Without dummy-numa real CPU affinity will be applied. In that >case during the parallel test execution threads from different tests >will be scheduled on same cores. Dummy-numa fakes the CPU affinity >allowing the kernel to re-schedule pmd threads t

Re: [ovs-dev] [PATCH v4 3/4] system-dpdk: Use dummy-pmd port for packet injection.

2022-01-06 Thread David Marchand
> > AT_SETUP([OVS-DPDK - MFEX Configuration]) > > AT_KEYWORDS([dpdk]) > > +AT_SKIP_IF([! $PYTHON3 -c "import scapy"], [], []) > > + > > OVS_DPDK_START() > > AT_CHECK([ovs-vsctl --no-wait set Open_vSwitch . > > other_config:pmd-cpu-mask=0

Re: [ovs-dev] [PATCH v4 5/5] dpif-netdev.at: Add test for Tx packets steering.

2022-01-03 Thread David Marchand
> enabling hash based packet steering, ensuring packets > are transmitted on both queues. > > Signed-off-by: Maxime Coquelin Reviewed-by: David Marchand -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v4 4/5] dpif-netdev: Introduce hash-based Tx packet steering mode.

2022-01-03 Thread David Marchand
3 deletions(-) > create mode 100644 Documentation/topics/userspace-tx-steering.rst I would announce this feature in NEWS. Below are some comments, but nothing blocking for this feature. Once fixed, you can add my: Reviewed-by: David Marchand > > diff --git a/Documentation/automake

Re: [ovs-dev] [PATCH v4 3/5] dpif-netdev: Introduce Tx queue mode.

2022-01-03 Thread David Marchand
duce functionnal changes. > > Signed-off-by: Maxime Coquelin Reviewed-by: David Marchand > @@ -5804,7 +5810,8 @@ reconfigure_datapath(struct dp_netdev *dp) > seq_change(dp->port_seq); > port_destroy(port); > } else { > -

Re: [ovs-dev] [PATCH v4 2/5] netdev-dummy: Introduce per rxq/txq statistics.

2022-01-03 Thread David Marchand
l "errors" counters in netdev-dummy. > > Signed-off-by: Maxime Coquelin Similar to previous patch, I only have some nits. The patch lgtm. Reviewed-by: David Marchand > @@ -954,6 +966,8 @@ static int > netdev_dummy_reconfigure(struct netdev *netdev_) > { > struc

Re: [ovs-dev] [PATCH v4 1/5] netdev-dpdk: Introduce per rxq/txq Vhost-user statistics.

2022-01-03 Thread David Marchand
> > This patch introduces "bytes", "packets" and "error" > per-queue custom statistics for Vhost-user ports. > > Suggested-by David Marchand > Signed-off-by: Maxime Coquelin A couple of nits about a comment and coding style, but otherwise it lgtm

[ovs-dev] [PATCH v4 4/4] tests: Move MFEX tests to dpif-netdev.

2022-01-03 Thread David Marchand
The MFEX code and tests do not depend on DPDK anymore. We can move the unit tests to dpif-netdev. Signed-off-by: David Marchand Reviewed-by: Maxime Coquelin Acked-by: Eelco Chaudron Acked-by: Kumar Amber --- Note: this patch depends on series https://patchwork.ozlabs.org/project/openvswitch

[ovs-dev] [PATCH v4 3/4] system-dpdk: Use dummy-pmd port for packet injection.

2022-01-03 Thread David Marchand
that comes from EPEL. Suggested-by: Ilya Maximets Signed-off-by: David Marchand Reviewed-by: Maxime Coquelin Acked-by: Eelco Chaudron --- Changes since v3: - dropped documentation update following rebase, - fixed regression in fuzzy packets generation, Changes since v2: - updated documentation,

[ovs-dev] [PATCH v4 2/4] system-dpdk: Test with mlx5 devices.

2022-01-03 Thread David Marchand
PCI_ADDR is renamed to DPDK_PCI_ADDR. Note: with mlx5 devices, there is now more OVS/DPDK warnings to waive. Signed-off-by: David Marchand Reviewed-by: Maxime Coquelin Acked-by: Eelco Chaudron --- Changes since v3: - fixed nit from Maxime, Changes since v2: - sorted logs alphabetically

[ovs-dev] [PATCH v4 1/4] system-dpdk: Refactor common logs matching.

2022-01-03 Thread David Marchand
t/?id=c1077933d45b 3: https://git.dpdk.org/dpdk/commit/?id=e9b3d79b0696 4: https://git.dpdk.org/dpdk/commit/?id=c69150679891 Signed-off-by: David Marchand Reviewed-by: Maxime Coquelin Acked-by: Eelco Chaudron --- Changes since v3: - updated with v21.11 log updates, - restored telemetry log, Ch

Re: [ovs-dev] [PATCH v3 5/5] Documentation: Remove experimental tag for PMD ALB.

2021-12-24 Thread David Marchand
efault, and can be enabled with: > $ ovs-vsctl set open_vswitch . other_config:pmd-auto-lb="true" > > Signed-off-by: Kevin Traynor > Acked-by: Sunil Pai G Acked-by: David Marchand -- David Marchand ___ dev

Re: [ovs-dev] [PATCH v3 4/5] Documentation: Update PMD Auto Load Balance section.

2021-12-24 Thread David Marchand
On Mon, Dec 20, 2021 at 3:39 PM Kevin Traynor wrote: > > Updates to the PMD Auto Load Balance section to make it more readable. > > No change to the core content. > > Signed-off-by: Kevin Traynor > Acked-by: Sunil Pai G Reviewed-by: David Marchand

Re: [ovs-dev] [PATCH v3 3/5] Documentation: Update PMD thread statistics.

2021-12-24 Thread David Marchand
s: links in ovs doc. I see that there are more http than https links in the current documentation. My preferrence would go to https: but I suppose both are acceptable. -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v3 2/5] Documentation: Minor spelling and grammar fixes.

2021-12-24 Thread David Marchand
On Mon, Dec 20, 2021 at 3:39 PM Kevin Traynor wrote: > > Some minor spelling and grammar fixes in pmd.rst. > > Signed-off-by: Kevin Traynor > Acked-by: Sunil Pai G Reviewed-by: David Marchand -- David Marchand ___ dev

Re: [ovs-dev] [PATCH v3 1/5] Documentation: Fix Rx/Tx queue configuration section.

2021-12-24 Thread David Marchand
d0dae22a0e ("doc: Add "PMD" topic document") > Signed-off-by: Kevin Traynor > Acked-by: Sunil Pai G Reviewed-by: David Marchand -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v3] dpif-netdev: Call cpuid for x86 isa availability.

2021-12-15 Thread David Marchand
; (with minor > modifications for assert) Ilya comments made sense, I was expeecting replies from your side but seen none. So I understood this as you were ok with Ilya comments, so I only updated the parts we agreed on previously. -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [PATCH v4] dpif-netdev: Call cpuid for x86 isa availability.

2021-12-15 Thread David Marchand
cpuid API that comes from the compiler. Note: this also fixes the check on BMI2 availability: DPDK had a bug for this isa, see https://git.dpdk.org/dpdk/commit/?id=aae3037ab1e0. Suggested-by: Ilya Maximets Signed-off-by: David Marchand --- Changes since v3: - added an assert in cpuid check, Ch

Re: [ovs-dev] [PATCH v3] dpif-netdev: Call cpuid for x86 isa availability.

2021-12-15 Thread David Marchand
ely on > Windows. And that never was a problem, AFAIK. +1 I'll keep the current implementation, but respin with an ovs_assert() where needed as agreed previously. More high level logs might be added in dpif in the future. Thanks. -- David Marchand __

Re: [ovs-dev] [PATCH v2] dpdk: Use --in-memory by default.

2021-12-15 Thread David Marchand
nal authorship (I hope that git send-email tracked that >correctly as I didn't re-send someone else's patches for a while). > - Minor rebase, typo fix. > - Re-sending to remind others about the patch and address all the >

[ovs-dev] [PATCH] system-dpdk: Fix race in vhost-user tests.

2021-12-14 Thread David Marchand
Waiting only on the vhost user port to be ready is not enough since a tap is also initialized by testpmd and is used to inject/receive packets in/from the kernel. Wait on the tap link status. Fixes: 18db7ec5eb83 ("system-dpdk: Improve vhost-user ping tests reliability.") Signed-off

Re: [ovs-dev] [PATCH] docs: Re-work the documentation around CPU ISA optimizations.

2021-12-14 Thread David Marchand
356,7 +356,64 @@ The phy test will skip if no compatible physical > >> device is available. > >> .. _Configure hugepages: > >> https://doc.dpdk.org/guides-21.11/linux_gsg/sys_reqs.html > >> > >> All the features documented under `Unit Tests`_ are av

Re: [ovs-dev] [PATCH v3 2/4] system-dpdk: Use dummy-pmd port for packet injection.

2021-12-14 Thread David Marchand
On Mon, Dec 6, 2021 at 11:16 PM Ilya Maximets wrote: > > On 11/30/21 16:00, David Marchand wrote: > > net_pcap is not always available in DPDK (like, in a dev > > environment when you forgot to install the libpcap-devel). > > On the other hand, OVS already has its own way

Re: [ovs-dev] [PATCH] docs: Re-work the documentation around CPU ISA optimizations.

2021-12-13 Thread David Marchand
me parts of the doc still needs some re-wording, but this change > provides at least a starting point for improvement setting a better > structure for the document. +1. > > Signed-off-by: Ilya Maximets I don't mind if you drop some of my suggestion / nits (see inline ), this

Re: [ovs-dev] [PATCH dpdk-latest v8] dpdk: Support running PMD threads on any core.

2021-12-13 Thread David Marchand
On Wed, Nov 10, 2021 at 5:54 PM David Marchand wrote: > > Previously in OVS, a PMD thread running on cpu X used lcore X. > This assumption limited OVS to run PMD threads on physical cpu < > RTE_MAX_LCORE. > > DPDK 20.08 introduced a new API that associates a non-EAL thread to

Re: [ovs-dev] [PATCH 1/4] netdev-dpdk: Introduce per rxq/txq Vhost-user statistics

2021-12-09 Thread David Marchand
On Thu, Dec 9, 2021 at 3:51 PM Maxime Coquelin wrote: > On 12/7/21 21:37, David Marchand wrote: > >> +struct netdev_dpdk_vhost_q_stats { > >> +uint64_t bytes; > >> +uint64_t packets; > >> +uint64_t errors; > >> +}; > >> + > &

Re: [ovs-dev] [PATCH v1 1/1] dpdk: Update to use DPDK v21.11.

2021-12-09 Thread David Marchand
> For credit all authors of the original commits to 'dpdk-latest' with the above > changes have been added as co-authors for this commit. > > Signed-off-by: David Marchand > Co-authored-by: David Marchand > Reviewed-by: Maxime Coquelin > Signed-off-by: Ian Stokes &

Re: [ovs-dev] [PATCH 1/4] netdev-dpdk: Introduce per rxq/txq Vhost-user statistics

2021-12-08 Thread David Marchand
es=2414 tx_dropped=1 tx_packets=20 tx_q0_bytes=2414 tx_q0_packets=20 So we end up with misalignment of "global" stats and per q stats in this situation. Can we do something about it? I am unsure about resetting all stats to 0, but it could be the simpler solution... -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH 1/4] netdev-dpdk: Introduce per rxq/txq Vhost-user statistics

2021-12-08 Thread David Marchand
On Tue, Dec 7, 2021 at 11:11 PM Maxime Coquelin wrote: > On 12/7/21 21:37, David Marchand wrote: > > On Wed, Nov 24, 2021 at 10:24 PM Maxime Coquelin > > wrote: > >> > >> HXPS feature will enable steering Tx packets on transmist > > > > transmit* &g

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