[ovs-dev] [PATCH v2 7/7] system-dpdk: Disable some datapath tests.

2023-08-23 Thread David Marchand
As reported by Ales, net/tap has broken support for checksum offloading. Fixes have been sent to the DPDK side, but waiting for the fixes, simply disable all conntrack related tests and some IPv6 tunnel tests. Signed-off-by: David Marchand --- tests/system-dpdk-macros.at | 9 + 1 file

[ovs-dev] [PATCH v2 6/7] system-dpdk: Run traffic tests.

2023-08-23 Thread David Marchand
polled by OVS. Signed-off-by: David Marchand --- tests/system-dpdk-macros.at| 85 +- tests/system-dpdk-testsuite.at | 2 + tests/system-dpdk.at | 3 -- 3 files changed, 86 insertions(+), 4 deletions(-) diff --git a/tests/system-dpdk-macros.at b/tests

[ovs-dev] [PATCH v2 5/7] system-dpdk: Refactor OVS daemons helpers.

2023-08-23 Thread David Marchand
Align system-dpdk existing helpers to other common OVS helpers so they can accept some optional arguments. Introduce a OVS_DPDK_STOP_VSWITCHD wrapper around OVS_VSWITCHD_STOP to catch dpdk related logs in a centralised fashion. Signed-off-by: David Marchand --- tests/system-dpdk-macros.at

[ovs-dev] [PATCH v2 4/7] tests: Define a macro to skip tc/tcpdump relying tests.

2023-08-23 Thread David Marchand
-by: David Marchand --- tests/system-common-macros.at| 12 tests/system-offloads-traffic.at | 6 +++--- tests/system-traffic.at | 32 3 files changed, 31 insertions(+), 19 deletions(-) diff --git a/tests/system-common-macros.at b/tests

[ovs-dev] [PATCH v2 2/7] system-dpdk: Don't require hugetlbfs.

2023-08-23 Thread David Marchand
on hugetlbfs presence. Signed-off-by: David Marchand Acked-by: Aaron Conole --- tests/system-dpdk-macros.at | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/system-dpdk-macros.at b/tests/system-dpdk-macros.at index 665ca5c2f0..01346fe6ec 100644 --- a/tests/system

[ovs-dev] [PATCH v2 3/7] ci: Run DPDK tests in GitHub Actions.

2023-08-23 Thread David Marchand
for OVS main and PMD threads). Signed-off-by: David Marchand Acked-by: Aaron Conole --- Changes since v1: - rebased after DPDK build has been moved out of linux-build.sh, - restored running "normal" checks in the DPDK jobs, --- .ci/dpdk-build.sh| 8 +---

[ovs-dev] [PATCH v2 1/7] system-dpdk: Introduce helpers for testpmd.

2023-08-23 Thread David Marchand
Rather than copy/paste everywhere, introduce helpers to control testpmd runs. Rely on --stats-period (which outputs port stats every n seconds) so that testpmd keeps running without expecting any user input. Signed-off-by: David Marchand Acked-by: Aaron Conole --- Changes since v1: - fixed

[ovs-dev] [RFC] netdev: Disable Tx offloads.

2023-08-22 Thread David Marchand
offloads. Link: https://patchwork.dpdk.org/project/dpdk/patch/20230818090351.2402519-1-david.march...@redhat.com/ Link: https://patchwork.dpdk.org/project/dpdk/patch/20230822073244.3751885-1-david.march...@redhat.com/ Signed-off-by: David Marchand --- lib/netdev-provider.h | 5 ++- lib/netdev.c

[ovs-dev] [PATCH] netdev-dpdk: Clear IP packet type when no offload is requested.

2023-08-22 Thread David Marchand
: 5d11c47d3ebe ("userspace: Enable IP checksum offloading by default.") Signed-off-by: David Marchand --- Some note: - I submitted a fix on the DPDK side for net/iavf. But to be on the safe side, this OVS patch here is a proposal to avoid hitting bugs in some other drivers, --- lib/netdev-

Re: [ovs-dev] [PATCH] netdev-dpdk: Fix build with experimental API.

2023-08-08 Thread David Marchand
On Tue, Aug 8, 2023 at 3:14 PM Ilya Maximets wrote: > > On 8/8/23 09:17, David Marchand wrote: > > On Thu, Jul 13, 2023 at 11:02 AM Viacheslav Galaktionov via dev > > wrote: > >> > >> The set_error function is now used regardless of whether experimental APIs

Re: [ovs-dev] [PATCH] netdev-dpdk: Fix build with experimental API.

2023-08-08 Thread David Marchand
eering configuration.") > Signed-off-by: Viacheslav Galaktionov > Acked-by: Ivan Malov Can we merge the dpdk-latest patch for checking experimental API compilation in the master branch? I am referring to: https://github.com/openvswitch/ovs/commit/561e15fabd43613cb9c8a2d996c1da

Re: [ovs-dev] [PATCH] cirrus: Update to FreeBSD 13.2.

2023-08-07 Thread David Marchand
On Mon, Aug 7, 2023 at 2:28 PM Ilya Maximets wrote: > > 13.2 was released in April and 13.1 images no longer able > to update packages: > pkg: repository FreeBSD contains packages for wrong OS version > > Fix that by updating to FreeBSD 13.2. > > Reported-by: Davi

Re: [ovs-dev] [PATCH] ci: Fix OPTS not being passed to OSX builds.

2023-08-04 Thread David Marchand
at breaks the build. > > Fixes: 6cb2f5a630e3 ("github: Add GitHub Actions workflow.") > Signed-off-by: Ilya Maximets Reviewed-by: David Marchand -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [PATCH v6] netdev-dpdk: Drop TSO in case of conflicting virtio features.

2023-07-07 Thread David Marchand
virtio features (and disabling TSO for this vhost port). Acked-by: Mike Pattrick Acked-by: Simon Horman Signed-off-by: David Marchand --- Changelog since v5: - fixed coding style, Changelog since v4: - I kept acks as the logic behind the state machine did not change much, - fixed indent

Re: [ovs-dev] [PATCH v2 4/6] dpif-netdev: Remove pmd-sleep-max experimental tag.

2023-07-07 Thread David Marchand
On Wed, Jun 21, 2023 at 11:26 AM Kevin Traynor wrote: > > Signed-off-by: Kevin Traynor 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 6/6] pmd.at: Add per pmd max sleep unit tests.

2023-07-07 Thread David Marchand
On Wed, Jun 21, 2023 at 11:26 AM Kevin Traynor wrote: > > Add unit tests for new per pmd options of pmd-sleep-max. > > Signed-off-by: Kevin Traynor Reviewed-by: David Marchand -- David Marchand ___ dev mailing list d...@openvswit

Re: [ovs-dev] [PATCH v2 5/6] dpif-netdev: Add per pmd sleep config.

2023-07-07 Thread David Marchand
request values. > > Signed-off-by: Kevin Traynor Reviewed-by: David Marchand I have some nits below which can be fixed when applying. But I am ok too if we go with the current patch. > diff --git a/Documentation/topics/dpdk/pmd.rst > b/Documentation/topics/dpdk/pmd.rst > index 40

Re: [ovs-dev] [PATCH v2 3/6] dpif-netdev: Add pmd-sleep-show command.

2023-07-07 Thread David Marchand
expanded when future > additions are added. > > Signed-off-by: Kevin Traynor 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 2/6] pmd.at: Add macro for checking pmd sleep max time and state.

2023-07-07 Thread David Marchand
On Wed, Jun 21, 2023 at 11:26 AM Kevin Traynor wrote: > > This is just cosmetic. There is no change to the tests. > > Signed-off-by: Kevin Traynor Reviewed-by: David Marchand -- David Marchand ___ dev mailing list d...@openvswit

Re: [ovs-dev] [PATCH v2 1/6] dpif-netdev: Rename pmd-maxsleep config option.

2023-07-07 Thread David Marchand
command can follow > the 'pmd-sleep-xyz' pattern. > > Signed-off-by: Kevin Traynor I don't have a strong opinion against this name change. Having a clear prefix for this feature params and using this same prefix for appctl commands (later in this series) seems a good thing to me.

Re: [ovs-dev] [PATCH v5] netdev-dpdk: Drop TSO in case of conflicting virtio features.

2023-07-07 Thread David Marchand
ng is wrong on the TSO side. With announcing that TSO is off for both sides of this vhost port, I think we have more chances a user would search in OVS documentation and find out about the "userspace-tso" status field. -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [PATCH v5] netdev-dpdk: Drop TSO in case of conflicting virtio features.

2023-07-06 Thread David Marchand
virtio features (and disabling TSO for this vhost port). Acked-by: Mike Pattrick Acked-by: Simon Horman Signed-off-by: David Marchand --- Changelog since v4: - I kept acks as the logic behind the state machine did not change much, - fixed indent of enumeration in documentation, - used status

Re: [ovs-dev] [PATCH RESEND v4] netdev-dpdk: Drop TSO in case of conflicting virtio features.

2023-07-03 Thread David Marchand
On Thu, Jun 29, 2023 at 9:43 PM Ilya Maximets wrote: > > On 6/20/23 13:26, David Marchand wrote: > > At some point in OVS history, some virtio features were announced as > > supported (ECN and UFO virtio features). > > > > The userspace TSO code, which has been

Re: [ovs-dev] [PATCH 1/6] dpif-netdev: Rename pmd-maxsleep config option.

2023-07-03 Thread David Marchand
date the param name now for the reason Kevin gave in the commitlog. -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v15 4/4] userspace: Enable L4 checksum offloading by default.

2023-06-26 Thread David Marchand
On Mon, Jun 26, 2023 at 4:05 PM David Marchand wrote: > > On Mon, Jun 26, 2023 at 3:19 PM Ilya Maximets wrote: > > > - if the UFO feature is "restored" in the master branch, OVS can't > > > expose CSUM if the guest negotiated UFO. > > > > Yep. I

Re: [ovs-dev] [PATCH v15 4/4] userspace: Enable L4 checksum offloading by default.

2023-06-26 Thread David Marchand
e for new/restarted VMs. > >> > >> Does that make sense? > > > > I think you covered all cases. I have been thinking about it again. From a guest pov, is it important to support checksum offloading if TSO is not working? I am not sure anymore what was the reason to have only a

Re: [ovs-dev] [PATCH v15 4/4] userspace: Enable L4 checksum offloading by default.

2023-06-26 Thread David Marchand
On Mon, Jun 26, 2023 at 11:37 AM David Marchand wrote: > > Currently possible configurations: > > > > 1. CSUM + TSO + ___ + ___ OVS 3.1 with userspace-tso=true > > 2. + TSO + ECN + ___ OVS 3.1 with userspace-tso=false > > 3. + ___ + ECN + UFO O

Re: [ovs-dev] [PATCH v15 4/4] userspace: Enable L4 checksum offloading by default.

2023-06-26 Thread David Marchand
__ + ___ > y. CSUM + ___ + ___ + ___ > > > Logic can be: > > 1. Try 'a/x' if userspace-tso=true > 2. Try 'y' if userspace-tso=false > 3. Try 'c' if above failed > > As far as I understand we can advertise new features, but we can't remove > already acked ones. So, the configuration 'c' is a catch-all for broken > cases. 'y' will only be possible for new/restarted VMs. > > Does that make sense? I think you covered all cases. -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v15 4/4] userspace: Enable L4 checksum offloading by default.

2023-06-23 Thread David Marchand
On Fri, Jun 23, 2023 at 5:14 PM Ilya Maximets wrote: > On 6/23/23 15:16, David Marchand wrote: > > On Wed, Jun 21, 2023 at 12:13 AM Ilya Maximets wrote: > >> > >> On 6/14/23 21:03, Mike Pattrick wrote: > >>> The netdev receiving packets is supposed to provi

Re: [ovs-dev] [PATCH v15 4/4] userspace: Enable L4 checksum offloading by default.

2023-06-23 Thread David Marchand
_ANY_LAYOUT VIRTIO_RING_F_INDIRECT_DESC VIRTIO_RING_F_EVENT_IDX ! VHOST_USER_F_PROTOCOL_FEATURES VIRTIO_F_VERSION_1 VIRTIO_F_RING_PACKED VIRTIO_F_IN_ORDER And.. so qemu sets VHOST_USER_SET_FEATURES: $ ./features.sh 6176171906 VIRTIO_NET_F_GUEST_CSUM VIRTIO_NET_F_GUEST_TSO4 VIRTIO_NET_F_GUEST_TSO6 VIRTIO_NET_F_GUEST_ECN VIRTIO_NET_F_GUEST_UFO VIRTIO_NET_F_HOST_ECN VIRTIO_NET_F_HOST_UFO VIRTIO_NET_F_MRG_RXBUF VIRTIO_NET_F_GUEST_ANNOUNCE VIRTIO_RING_F_INDIRECT_DESC VIRTIO_RING_F_EVENT_IDX ! VHOST_USER_F_PROTOCOL_FEATURES VIRTIO_F_VERSION_1 As a conclusion, we may have to handle both incorrect setting of UFO and ECN :-(. We probably missed this issue during validation as people are not testing upgrades from 2.11 to current master. Did I miss any other concern of yours? -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [PATCH RESEND v4] netdev-dpdk: Drop TSO in case of conflicting virtio features.

2023-06-20 Thread David Marchand
virtio features (and disabling TSO for this vhost port). Signed-off-by: David Marchand Acked-by: Mike Pattrick --- Note: resending this v4 for CI (I added Mike ack). Changelog since v3: - updated documentation now that the interface offloads status is reported in ovsdb, - fixed one coding style

Re: [ovs-dev] [PATCH 3/6] dpif-netdev: Add pmd-sleep-show command.

2023-06-14 Thread David Marchand
(void *)_aux); > +unixctl_command_register("dpif-netdev/pmd-sleep-show", "[-pmd core] > [dp]", > + 0, 3, dpif_netdev_pmd_info, > + (void *)_aux); > unixctl_command_register("dp

Re: [ovs-dev] [PATCH 2/6] pmd.at: Add macro for checking pmd sleep max time and state.

2023-06-14 Thread David Marchand
_UNTIL([tail ovs-vswitchd.log | grep "PMD load based sleeps are > disabled."]) > +CHECK_DP_SLEEP_MAX([0], [disabled], []) > > dnl Check low value max sleep > get_log_next_line_num Not directly related to this patch. I did not realise before when those tests were added, b

[ovs-dev] [PATCH v4] netdev-dpdk: Drop TSO in case of conflicting virtio features.

2023-06-14 Thread David Marchand
virtio features (and disabling TSO for this vhost port). Signed-off-by: David Marchand --- Note: this series depends on Mike series and won't apply cleanly without it. Changelog since v3: - updated documentation now that the interface offloads status is reported in ovsdb, - fixed one coding style

Re: [ovs-dev] [PATCH 2/2] dpif-netdev: Fix flushing of a vport

2023-06-09 Thread David Marchand
cenario deleting vxlan ports, flushing flows manually and I saw nothing broken. 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/2] netdev-offload-dpdk: Fix flushing of a physdev

2023-06-07 Thread David Marchand
for details. > ovs-vsctl: The default log directory is "/var/log/openvswitch". Ok, got it thanks. It seems a bit strange to remove and re-add the PF port, but cleaning up those flows makes sense on the principle. > > I can rebase and rephrase the commit msg. Maybe rephrase yes, otherwise the fix works and lgtm. -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [PATCH] cpu: Fix cpuid check for some AMD processors.

2023-06-07 Thread David Marchand
Fixes: b366fa2f4947 ("dpif-netdev: Call cpuid for x86 isa availability.") Signed-off-by: David Marchand --- lib/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cpu.c b/lib/cpu.c index 0292f715ec..fbbea40053 100644 --- a/lib/cpu.c +++ b/lib/cpu.c @@ -

Re: [ovs-dev] [PATCH] netdev-offload: Fix some typos.

2023-05-31 Thread David Marchand
On Wed, May 31, 2023 at 3:22 PM David Marchand wrote: > > Caught while reviewing code. > > Fixes: aca2f8a8a6b6 ("netdev-offload-dpdk: Implement HW miss packet recover > for vport.") > Fixes: b6cabb8f8f80 ("netdev: Split up netdev offloading to separate module.&q

[ovs-dev] [PATCH] netdev-offload: Fix some typos.

2023-05-31 Thread David Marchand
Caught while reviewing code. Fixes: aca2f8a8a6b6 ("netdev-offload-dpdk: Implement HW miss packet recover for vport.") Fixes: b6cabb8f8f80 ("netdev: Split up netdev offloading to separate module.") Signed-off-by: David Marchand --- lib/netdev-offload-dpdk.c | 2 +- lib/netde

Re: [ovs-dev] [PATCH] netdev-dpdk: fix warning with gcc 13

2023-05-31 Thread David Marchand
you send a v2, feel free to add: Reviewed-by: David Marchand -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [PATCH] netdev-offload-dpdk: Fix crash in debug log.

2023-05-26 Thread David Marchand
sages.") Signed-off-by: David Marchand --- lib/netdev-offload-dpdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netdev-offload-dpdk.c b/lib/netdev-offload-dpdk.c index 7c91f8a799..14bc877719 100644 --- a/lib/netdev-offload-dpdk.c +++ b/lib/netdev-offload-dpdk.c @

Re: [ovs-dev] [PATCH 1/2] netdev-offload-dpdk: Fix flushing of a physdev

2023-05-26 Thread David Marchand
On Fri, May 26, 2023 at 4:35 PM David Marchand wrote: > > Hello Eli, > > On Mon, Sep 5, 2022 at 4:46 PM Eli Britstein via dev > wrote: > > > > Vport's offloads are done on the tracked orig-in-port, but the flow itself > > is associated in the vport's map. > &

Re: [ovs-dev] [PATCH 1/2] netdev-offload-dpdk: Fix flushing of a physdev

2023-05-26 Thread David Marchand
49 ("netdev-offload-dpdk: Use per-netdev offload metadata.") > Reported-by: 15895987278 > Signed-off-by: Eli Britstein -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v4 2/2] netdev-dpdk: Check rx/tx descriptor sizes for device.

2023-05-24 Thread David Marchand
; value and log. > > Reported-at: https://bugzilla.redhat.com/2119876 > Signed-off-by: Kevin Traynor 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 v3 1/2] netdev-dpdk: Remove requested descriptors from get_config.

2023-05-10 Thread David Marchand
aximets > Signed-off-by: Kevin Traynor 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 2/2] netdev-dpdk: Check rx/tx descriptor sizes for device.

2023-05-10 Thread David Marchand
EFAULT_RXQ_SIZE, > ->requested_rxq_size); > -dpdk_process_queue_size(netdev, args, "n_txq_desc", > -NIC_PORT_DEFAULT_TXQ_SIZE, > ->requested_txq_size); > - > new_dev

[ovs-dev] [PATCH v4] ci: Separate DPDK from OVS build.

2023-05-04 Thread David Marchand
DPDK does not depend on how we will link OVS against it, so we can use a single cache entry regardless of DPDK_SHARED option, Reviewed-by: Simon Horman Signed-off-by: David Marchand --- Changes since v3: - fixed git log trace, - set DPDK_GIT explicitly in yml, Changes since v2: - removed

Re: [ovs-dev] [PATCH v3] ci: Separate DPDK from OVS build.

2023-05-04 Thread David Marchand
dpdk-ci-signature > > +grep -rwE 'DPDK_GIT|DPDK_VER' .github/ >> dpdk-ci-signature > > +if [ "${DPDK_VER##refs/*/}" != "${DPDK_VER}" ]; then > > +git ls-remote --heads $DPDK_GIT $DPDK_VER >> dpdk-ci-signature > >

Re: [ovs-dev] [PATCH v2] ci: Separate DPDK from OVS build.

2023-04-28 Thread David Marchand
On Fri, Apr 28, 2023 at 2:26 PM David Marchand wrote: > > On Fri, Apr 28, 2023 at 11:36 AM David Marchand > wrote: > > > > +- name: create ci signature file for the dpdk cache key > > > > + # This will collect most of DPDK related lines, s

[ovs-dev] [PATCH v3] ci: Separate DPDK from OVS build.

2023-04-28 Thread David Marchand
DPDK does not depend on how we will link OVS against it, so we can use a single cache entry regardless of DPDK_SHARED option, Reviewed-by: Simon Horman Signed-off-by: David Marchand --- Changes since v2: - removed unneeded checks when the cache is hit, - exposed the cache key computed

Re: [ovs-dev] [PATCH v2] ci: Separate DPDK from OVS build.

2023-04-28 Thread David Marchand
On Fri, Apr 28, 2023 at 11:36 AM David Marchand wrote: > > > +- name: create ci signature file for the dpdk cache key > > > + # This will collect most of DPDK related lines, so hash will be > > > different > > > + # if something changed in

Re: [ovs-dev] [PATCH v2] ci: Separate DPDK from OVS build.

2023-04-28 Thread David Marchand
DPDK including > > DPDK_VER. > > + # This also allows us to use cache from any branch as long as version > > + # and a way we're building DPDK stays the same. > > + run: | > > +grep -irE 'RTE_|DPDK|meson|ninja' .ci/dpdk-* > dpdk-ci-signature >

Re: [ovs-dev] [PATCH v3] dpif-netlink: Fix memory leak dpif_netlink_open().

2023-04-24 Thread David Marchand
onfigure vswitchd/bridge.c:885 > #16 0x41f1a9 in bridge_run vswitchd/bridge.c:3313 > #17 0x42d4fb in main vswitchd/ovs-vswitchd.c:132 > #18 0x7fe09cc03c86 in __libc_start_main (/usr/lib64/libc.so.6+0x25c86) > > Fixes: b841e3cd4a28 ("dpif-netlink: Fix feature negotiation

Re: [ovs-dev] [PATCH v2] netdev-dpdk: Check rx/tx descriptor sizes for device.

2023-04-21 Thread David Marchand
; value and log. > > Reported-at: https://bugzilla.redhat.com/2119876 > Signed-off-by: Kevin Traynor Thanks for the added log. Overall, this looks good to me. I have a comment on how the limits are taken into account (see below). But in any case this patch is ok as is for me: Reviewed-by: D

Re: [ovs-dev] [PATCH] python-stream: handle SSL error in do_handshake

2023-04-20 Thread David Marchand
nitially when enabling ASan: https://mail.openvswitch.org/pipermail/ovs-dev/2021-February/380467.html More recently, Eelco mentionned it: https://mail.openvswitch.org/pipermail/ovs-dev/2022-September/397476.html I also see it every once in a while in GHA. -- David Marchand _

Re: [ovs-dev] [PATCH] dpif-netlink: Fix memory leak dpif_netlink_open().

2023-04-19 Thread David Marchand
specific call to dpif_netlink_dp_transact() (line 398) in dpif_netlink_open(), the 'dp' content is not considered in the branch when no error returned (starting line 430). Besides, 'dp' / 'buf' are overwritten later in this same branch, by sending a new netlink request (line 437). So if this code is not

Re: [ovs-dev] [PATCH] system-offloads-traffic: Remove tc ingress pps check on meter offload.

2023-04-18 Thread David Marchand
xes tag for your patch. I just sent a new patch, and marked this current one as Rejected. Thanks Simon and sorry for the confusion. -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [PATCH] system-offloads-traffic: Fix tc ingress pps check for meter offload.

2023-04-18 Thread David Marchand
Caught during some code review. SUPPORT_TC_INGRESS_PPS has been replaced with CHECK_TC_INGRESS_PPS(). Fixes: 5f0fdf5e2c2e ("test: Move check for tc ingress pps support to test script.") Signed-off-by: David Marchand --- tests/system-offloads-traffic.at | 2 +- 1 file changed, 1 inser

Re: [ovs-dev] [PATCH] dpif-netlink: Fix memory leak dpif_netlink_open().

2023-04-18 Thread David Marchand
_request.user_features |= OVS_DP_F_VPORT_PIDS; dp_request.user_features |= OVS_DP_F_UNSUPPORTED; -error = dpif_netlink_dp_transact(_request, , ); +error = dpif_netlink_dp_transact(_request, NULL, NULL); if (error) { /* The Open vSwitch kernel module has two modes for dispatching

Re: [ovs-dev] [PATCH] system-offloads-traffic: Remove tc ingress pps check on meter offload.

2023-04-18 Thread David Marchand
On Tue, Apr 18, 2023 at 10:20 AM Simon Horman wrote: > > On Mon, Apr 17, 2023 at 06:28:13PM +0200, David Marchand wrote: > > Caught during some code review. > > The incriminated commit had put an unneeded check on tc ingress support > > for the meter offlo

[ovs-dev] [PATCH] system-offloads-traffic: Remove tc ingress pps check on meter offload.

2023-04-17 Thread David Marchand
60b89a309d ("dpif-netlink: Offloading meter to tc police action") Signed-off-by: David Marchand --- tests/system-offloads-traffic.at | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/system-offloads-traffic.at b/tests/system-offloads-traffic.at index da18597cd8..df43caa9e5 10064

[ovs-dev] [PATCH v2] ci: Separate DPDK from OVS build.

2023-04-13 Thread David Marchand
DPDK does not depend on how we will link OVS against it, so we can use a single cache entry regardless of DPDK_SHARED option, Signed-off-by: David Marchand --- Changes since v1: - filtered dpdk build job dependencies: it only needs gcc, ninja and libnuma-dev, - removed matrix configuration

Re: [ovs-dev] [PATCH] ci: Separate DPDK from OVS build.

2023-04-12 Thread David Marchand
Hello Ilya, On Tue, Apr 4, 2023 at 8:01 PM Ilya Maximets wrote: > > On 3/30/23 11:24, David Marchand wrote: > > Let's separate DPDK compilation from the rest of OVS build: > > - this avoids multiple jobs building DPDK in parallel, which especially > > affects builds i

Re: [ovs-dev] [PATCH v2] github: Test building Fedora RPMs.

2023-04-06 Thread David Marchand
s. > We may switch to quay.io if that will ever become a problem > in the future. > > Signed-off-by: Ilya Maximets Reviewed-by: David Marchand -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] github: Test building Fedora RPMs.

2023-04-05 Thread David Marchand
er. I would go with ubuntu-latest. > +container: fedora:37 > +timeout-minutes: 30 > + > +strategy: > + fail-fast: false -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] ci: Separate DPDK from OVS build.

2023-03-31 Thread David Marchand
On Thu, Mar 30, 2023 at 11:24 AM David Marchand wrote: > > Let's separate DPDK compilation from the rest of OVS build: > - this avoids multiple jobs building DPDK in parallel, which especially > affects builds in the dpdk-latest branch, Err, this patch actually breaks dpdk-

[ovs-dev] [PATCH] ci: Separate DPDK from OVS build.

2023-03-30 Thread David Marchand
DPDK does not depend on how we will link OVS against it, so we can use a single cache entry regardless of DPDK_SHARED option, Signed-off-by: David Marchand --- .ci/dpdk-build.sh| 68 .ci/dpdk-prepare.sh | 11 + .ci/linux

Re: [ovs-dev] [PATCH v2] dpdk: Allow retaining CAP_SYS_RAWIO privileges

2023-03-07 Thread David Marchand
if (retval) { > diff --git a/vswitchd/ovs-vswitchd.8.in b/vswitchd/ovs-vswitchd.8.in > index 9569265fcb..a6a4a24606 100644 > --- a/vswitchd/ovs-vswitchd.8.in > +++ b/vswitchd/ovs-vswitchd.8.in > @@ -81,6 +81,14 @@ unavailable or unsuccessful. >

Re: [ovs-dev] [PATCH] netdev-dpdk: Check rx/tx descriptor sizes for device.

2023-03-06 Thread David Marchand
On Mon, Mar 6, 2023 at 5:05 PM David Marchand wrote: > > diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c > > index fb0dd43f7..e901f857e 100644 > > --- a/lib/netdev-dpdk.c > > +++ b/lib/netdev-dpdk.c > > @@ -1008,4 +1008,13 @@ dpdk_watchdog(void *dummy OVS_UNUS

Re: [ovs-dev] [PATCH] netdev-dpdk: Check rx/tx descriptor sizes for device.

2023-03-06 Thread David Marchand
ntel xl710, which reserves some of them for > -- > 2.39.1 > > ___ > dev mailing list > d...@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-dev > -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] ofproto-dpif-mirror: Add support for pre-selection filter

2023-03-01 Thread David Marchand
fg->filter; I am not familiar with this code. I prefer to ask. Is it safe to only reference the ovsrec content? I think it is in this case, since mirror_set will convert this information into a flow / mask. > + > /* Get port selection. */ > if (cfg->select_all) { >

Re: [ovs-dev] Deadlock happen when delete vhostuserclient port while qemu destroy virtio

2023-02-28 Thread David Marchand
rect in fdset_try_del ? > > > >CC: David and Maxime. This could be a different issue, but there was a change for this area of the vhost library in v21.11: 451dc0fad83d ("vhost: fix crash on port deletion") I don't see it backported to 19.11 stable release, but it got to v20.11.4 (used in 2.15 and 2.16 ovs branches). I would suggest backporting it to your 19.11 dpdk and retest with ovs 2.14. -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [PATCH v2] sparse: Fix build with DPDK and GCC 12.

2023-02-09 Thread David Marchand
error: Expected ) in function call [...] Besides, the list of headers by rte_memcpy.h is now out of sync with DPDK. OVS takes care to include the right headers in its sources. Simply make this header self-sufficient. 1: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=a68412117fa4 Signed-of

Re: [ovs-dev] [PATCH] sparse: Fix build with DPDK and GCC 12.

2023-02-06 Thread David Marchand
On Fri, Feb 3, 2023 at 4:13 PM Ilya Maximets wrote: > > On 2/2/23 10:21, David Marchand wrote: > > On Wed, Feb 1, 2023 at 5:54 PM David Marchand > > wrote: > >> > >> rte_vect.h pulls some AVX512 instrinsics headers added in GCC 12 [1] > >> trigger

Re: [ovs-dev] [PATCH 3/3] ci: Run DPDK tests in GitHub Actions.

2023-02-02 Thread David Marchand
On Fri, Jan 27, 2023 at 12:15 PM Ilya Maximets wrote: > > On 1/27/23 11:29, David Marchand wrote: > > On Thu, Jan 26, 2023 at 11:30 PM Aaron Conole wrote: > >> > >> David Marchand writes: > >> > >>> Let's enhance our coverage in the CI and ru

Re: [ovs-dev] [PATCH 3/3] ci: Run DPDK tests in GitHub Actions.

2023-02-02 Thread David Marchand
On Fri, Jan 27, 2023 at 12:13 PM Ilya Maximets wrote: > > On 1/23/23 13:14, David Marchand wrote: > > Let's enhance our coverage in the CI and run DPDK system tests. > > > > A few DPDK drivers are enabled in DPDK compilation. > > > > Put DPDK build in $P

Re: [ovs-dev] [PATCH] sparse: Fix build with DPDK and GCC 12.

2023-02-02 Thread David Marchand
On Wed, Feb 1, 2023 at 5:54 PM David Marchand wrote: > > rte_vect.h pulls some AVX512 instrinsics headers added in GCC 12 [1] > trigger a lot of warnings: > > libtool: compile: env "REAL_CC=ccache gcc" "CHECK=sparse -Wsparse-error > -I ../include/sparse

Re: [ovs-dev] [PATCH] sparse: Fix numa.h for libnuma >= 2.0.13.

2023-02-02 Thread David Marchand
h both versions of a header. > Just defining all the functions we actually use in OVS instead and > not including the original header. > > Fixes: e8568993e062 ("netdev-afxdp: NUMA-aware memory allocation for XSK > related memory.") > Signed-off-by: Ilya Maximet

[ovs-dev] [PATCH] sparse: Fix build with DPDK and GCC 12.

2023-02-01 Thread David Marchand
re should be no side effect in removing those headers inclusions from the rte_memcpy.h fake header. 1: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=a68412117fa4 Signed-off-by: David Marchand --- include/sparse/rte_memcpy.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/include/s

Re: [ovs-dev] [PATCH 2/2] system-offloads-traffic: skip tests if nc is not present

2023-01-30 Thread David Marchand
ng - offloads enabled" > > Fixes: 5660b89a309d ("dpif-netlink: Offloading meter to tc police action") > Reported-by: David Marchand > Reviewed-by: Louis Peens > Signed-off-by: Simon Horman Reviewed-by: David Marchand -- David Marchand

Re: [ovs-dev] [PATCH 1/2] system-traffic: remove unnecessary dependency on nc

2023-01-30 Thread David Marchand
t.") > Reported-by: David Marchand > Reviewed-by: Louis Peens > Signed-off-by: Simon Horman Reviewed-by: David Marchand -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] system-traffic.at: Skip the 'ICMP6 Related' test if nc is missing.

2023-01-30 Thread David Marchand
On Sun, Jan 29, 2023 at 11:34 AM Simon Horman wrote: > > >>>> Probably not important, but: > > >>>> Fixes: b020a416e24c ("System Tests: Enhance NAT tests.") > > >>>>> Signed-off-by: Ilya Maximets > > >>>>

Re: [ovs-dev] [PATCH 3/3] ci: Run DPDK tests in GitHub Actions.

2023-01-27 Thread David Marchand
On Thu, Jan 26, 2023 at 11:30 PM Aaron Conole wrote: > > David Marchand writes: > > > Let's enhance our coverage in the CI and run DPDK system tests. > > > > A few DPDK drivers are enabled in DPDK compilation. > > > > Put DPDK build in $PATH for dpdk-testp

Re: [ovs-dev] [PATCH 1/3] system-dpdk: Introduce helpers for testpmd.

2023-01-27 Thread David Marchand
On Mon, Jan 23, 2023 at 1:14 PM David Marchand wrote: > +# OVS_DPDK_START_TESTPMD() > +# > +# Start dpdk-testpmd in background. > +# > +m4_define([OVS_DPDK_START_TESTPMD], > + [AT_CHECK([lscpu], [], [stdout]) > + AT_CHECK([cat stdout | grep "NUMA node(s)&qu

Re: [ovs-dev] [PATCH] system-traffic.at: Skip the 'ICMP6 Related' test if nc is missing.

2023-01-24 Thread David Marchand
On Mon, Jan 23, 2023 at 3:50 PM Simon Horman wrote: > > On Mon, Jan 23, 2023 at 03:29:50PM +0100, David Marchand wrote: > > On Mon, Jan 23, 2023 at 3:05 PM Ilya Maximets wrote: > > > > > > Test fails is 'nc' is not available, it should be skipped instead. > &

Re: [ovs-dev] [PATCH] system-traffic.at: Skip the 'ICMP6 Related' test if nc is missing.

2023-01-23 Thread David Marchand
On Mon, Jan 23, 2023 at 3:05 PM Ilya Maximets wrote: > > Test fails is 'nc' is not available, it should be skipped instead. > Probably not important, but: Fixes: b020a416e24c ("System Tests: Enhance NAT tests.") > Signed-off-by: Ilya Maximets Reviewed-by: David

[ovs-dev] [PATCH 3/3] ci: Run DPDK tests in GitHub Actions.

2023-01-23 Thread David Marchand
). Signed-off-by: David Marchand --- .ci/linux-build.sh | 22 ++ .github/workflows/build-and-test.yml | 7 --- tests/system-dpdk-macros.at | 2 +- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/.ci/linux-build.sh b/.ci/linux

[ovs-dev] [PATCH 2/3] system-dpdk: Don't require hugetlbfs.

2023-01-23 Thread David Marchand
on hugetlbfs presence. Signed-off-by: David Marchand --- tests/system-dpdk-macros.at | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/system-dpdk-macros.at b/tests/system-dpdk-macros.at index 08117d3bf9..9f13f8ec20 100644 --- a/tests/system-dpdk-macros.at +++ b

[ovs-dev] [PATCH 1/3] system-dpdk: Introduce helpers for testpmd.

2023-01-23 Thread David Marchand
Rather than copy/paste everywhere, introduce helpers to control testpmd runs. Rely on --stats-period (which outputs port stats every n seconds) so that testpmd keeps running without expecting any user input. Signed-off-by: David Marchand --- tests/system-dpdk-macros.at | 34 tests

[ovs-dev] [PATCH] tests/mfex: Silence Blowfish/CAST5 deprecation warnings.

2023-01-23 Thread David Marchand
=algorithms.Blowfish, /usr/lib/python3.11/site-packages/scapy/layers/ipsec.py:485: CryptographyDeprecationWarning: CAST5 has been deprecated cipher=algorithms.CAST5, Signed-off-by: Robin Jarry Signed-off-by: David Marchand --- tests/mfex_fuzzy.py | 8 1 file changed, 8 insertions

Re: [ovs-dev] [PATCH 2/2] dpif-netdev: Set PMD load based sleep start/inc to 1 us.

2023-01-23 Thread David Marchand
erfaces that might be sensitive to large sleep times. > > Signed-off-by: Kevin Traynor Reviewed-by: David Marchand -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [PATCH v2] netdev-dpdk: Fix deadlock due to virtqueue stats retrieval.

2023-01-17 Thread David Marchand
ch.org/pipermail/ovs-dev/2023-January/401101.html Fixes: 3b29286db1c5 ("netdev-dpdk: Add per virtqueue statistics.") Signed-off-by: David Marchand --- Changes since v1: - moved handling of events to a dedicated thread, - added a warning if a fair number of updates is pending, --- lib/net

Re: [ovs-dev] [PATCH] netdev-dpdk: Fix deadlock due to virtqueue stats retrieval.

2023-01-16 Thread David Marchand
ng updates. Now that I went with the dedicated thread approach, all I see is an increase of 1-2M, maximum. I think we can avoid going with your suggestion. WDYT? > > We're entering a gross over-engineering territory, but the solution > might be following: > > RCU-list with nodes with following elements: > - ifname > - qid > - atomic_bool enabled > - atomic_bool seen > - timestamp -- David Marchand ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] netdev-dpdk: Fix deadlock due to virtqueue stats retrieval.

2023-01-13 Thread David Marchand
On Fri, Jan 13, 2023 at 1:58 PM Ilya Maximets wrote: > > On 1/12/23 21:55, David Marchand wrote: > > As Ilya reported, we have a ABBA deadlock between DPDK vq->access_lock > > and OVS dev->mutex when OVS main thread refreshes statistics, while a > > vring state c

Re: [ovs-dev] [PATCH] netdev-dpdk: Fix deadlock due to virtqueue stats retrieval.

2023-01-13 Thread David Marchand
} > > +mpsc_queue_release(_state_change_queue); > > Maybe we should limit the number of iteration at each run, to give time > for the OVS main thread to handle other work in case the queue gets > overloaded (intentionally or not). I agree that this is somethi

[ovs-dev] [PATCH] netdev-dpdk: Fix deadlock due to virtqueue stats retrieval.

2023-01-12 Thread David Marchand
g from the vhost-events DPDK thread, back to the OVS main thread using a lockless queue. Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2023-January/401101.html Fixes: 3b29286db1c5 ("netdev-dpdk: Add per virtqueue statistics.") Signed-off-by: David Marchand --- lib/ne

Re: [ovs-dev] [PATCH v7 1/2] netdev-dpdk: Add per virtqueue statistics.

2023-01-12 Thread David Marchand
On Thu, Jan 12, 2023 at 1:26 PM Ilya Maximets wrote: > > On 1/6/23 16:58, David Marchand wrote: > > The DPDK vhost-user library maintains more granular per queue stats > > which can replace what OVS was providing for vhost-user ports. > > > > The benefits for O

Re: [ovs-dev] [PATCH] netdev-dpdk: Free mbufs in bulk.

2023-01-12 Thread David Marchand
uf_pool_bulk() - that tests with > different mempools. > > > I vaguely remember that there was an API to bulk free mbufs that was > suitable only when all mbufs are from the same pool. And the comment > that I'm removing here in the code also suggests that. But I don't > remember wh

Re: [ovs-dev] [PATCH 4/5] Documentation: Remove link to obsolete sources.

2023-01-11 Thread David Marchand
On Wed, Jan 11, 2023 at 8:34 PM Ilya Maximets wrote: > > On 1/9/23 17:55, David Marchand wrote: > > This archive website disappeared. > > On the other hand, the link to an obsolete dpif-provider man page > > probably did not provide much info and we can simply ment

[ovs-dev] [PATCH v2] Documentation: Remove link to obsolete sources.

2023-01-11 Thread David Marchand
This archive website disappeared. On the other hand, the link to an obsolete dpif-provider man page probably did not provide much info and we can simply mention the current file. Signed-off-by: David Marchand --- Changes since v1: - renumbered links, --- Documentation/topics/windows.rst | 29

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