Re: [ovs-dev] [PATCH v7] utilities: Add revalidator measurement script and needed USDT probes.

2023-01-19 Thread Simon Horman
d > > Signed-off-by: Eelco Chaudron Thanks Eelco, this looks very nice. A few minor nits from my side, but that not withstanding. Acked-by: Simon Horman ... > +# > +# event_to_dict() > +# > +def event_to_dict(event): > +event_dict = {} > + > +for field, _ in event

Re: [ovs-dev] [PATCH v2] ofproto-dpif-xlate: Remove repeated function for judge garp

2023-01-20 Thread Simon Horman
Hi Han Ding, On Thu, Jan 05, 2023 at 02:15:03PM +0800, Han Ding wrote: > Function is_gratuitous_arp() and function is_garp() are all used to judge > whether the flow is gratuitous arp. It is not necessary to use two functions > to do the same thing and just keep one. I agree it is nice to consoli

Re: [ovs-dev] [RFC PATCH ovn] utilities: Add simple container automation

2023-01-20 Thread Simon Horman
On Thu, Jan 05, 2023 at 12:39:18PM +0100, Ales Musil wrote: > Add simple script that allows user to run tests and builds > using container. At the same time add example Dockerfile for > Fedora 37. > > Basic usage is: > ./utilities/containers/ci.sh > > This will compile the project with GCC, it ex

Re: [ovs-dev] [PATCH] flow: Consistent VXLAN UDP src ports for fragmented packets

2023-01-20 Thread Simon Horman
On Thu, Jan 05, 2023 at 06:55:03PM +0530, Hemanth Aramadaka via dev wrote: > Issue: > > The src-port for UDP is based on RSS hash in the packet metadata. > In case of packets coming from VM it will be 5-tuple, if available, > otherwise just IP addresses.If the VM fragments a large IP packet > and

Re: [ovs-dev] [PATCH] docs: Add HyperThreading notes for auto-lb usage.

2023-01-20 Thread Simon Horman
te the loads during a dry-run. > > Signed-off-by: Cheng Li Makes sense to me. Reviewed-by: Simon Horman > --- > Documentation/topics/dpdk/pmd.rst | 4 > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/topics/dpdk/pmd.rst > b/Documentation/topics/d

Re: [ovs-dev] [PATCH] id-pool: Refactor to use a bitmap.

2023-01-20 Thread Simon Horman
On Fri, Jan 13, 2023 at 04:51:51PM -0500, Mark Michelson wrote: > Using a bitmap makes the id-pool use less memory and be more > cache-friendly. It theoretically should be faster since hashes do not > have to be computed. > > This takes the approach of expanding the bitmap when necessary rather >

Re: [ovs-dev] [PATCH ovn 1/2] northd: make traffic routed to vtep lport distributed

2023-01-23 Thread Simon Horman
On Sat, Jan 21, 2023 at 07:49:11PM +0300, Vladislav Odintsov wrote: > Please check out the v2: > https://patchwork.ozlabs.org/project/ovn/patch/20230121164609.3625347-1-odiv...@gmail.com/ Thanks, done :) ___ dev mailing list d...@openvswitch.org https://

Re: [ovs-dev] [PATCH ovn v2 1/2] northd: make traffic routed to vtep lport distributed

2023-01-23 Thread Simon Horman
dates relevant testcases to check the changed flows > generation and port_binding:options:always-redirect logic. > > Signed-off-by: Vladislav Odintsov Thanks for the updates since v1, they look good to me. FWIIW, Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v7] utilities: Add revalidator measurement script and needed USDT probes.

2023-01-23 Thread Simon Horman
On Mon, Jan 23, 2023 at 11:28:45AM +0100, Eelco Chaudron wrote: > > > On 19 Jan 2023, at 11:38, Simon Horman wrote: > > > On Tue, Jan 17, 2023 at 10:19:23AM +0100, Eelco Chaudron wrote: > >> This patch adds a Python script that can be used to analyze the > &g

Re: [ovs-dev] [PATCH v8] utilities: Add revalidator measurement script and needed USDT probes.

2023-01-23 Thread Simon Horman
d > > Signed-off-by: Eelco Chaudron > Acked-by: Adrian Moreno > Acked-by: Simon Horman LGTM, thanks. ___ 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-23 Thread Simon Horman
16e24c ("System Tests: Enhance NAT tests.") > > Signed-off-by: Ilya Maximets > > Reviewed-by: David Marchand FWIIW, Reviewed-by: Simon Horman > Some notes: > - in system-offloads-traffic.at, there is a similar issue, > 5660b89a309d ("dpif-netlink: Offloading mete

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

2023-01-25 Thread Simon Horman
On Tue, Jan 24, 2023 at 05:15:53PM +0100, David Marchand wrote: > 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: > > >

Re: [ovs-dev] [PATCH] netdev-offload-tc: Fix misaligned access to ct label.

2023-01-25 Thread Simon Horman
:9 >10 0x6cf6ea in udpif_upcall_handler ofproto/ofproto-dpif-upcall.c:801:13 >11 0xb6d7ea in ovsthread_wrapper lib/ovs-thread.c:423:12 >12 0x7f5ccf017801 in start_thread >13 0x7f5ccefb744f in __GI___clone3 > > Fixes: 9221c721bec0 ("netdev-offload-tc: Add conntrac

Re: [ovs-dev] [PATCH v2 1/2] ofproto-ipfix: use per-domain template timeouts

2023-01-25 Thread Simon Horman
On Tue, Jan 24, 2023 at 08:21:28PM +0100, Adrián Moreno wrote: > From: Adrian Moreno > > IPFIX templates have to be sent for each Observation Domain ID. > Currently, a timer is kept at each dpif_ipfix_exporter to send them. > This works fine for per-bridge sampling where there is only one > Obser

Re: [ovs-dev] [PATCH v2] ofproto-dpif-xlate: Remove repeated function for judge garp

2023-01-25 Thread Simon Horman
On Tue, Jan 24, 2023 at 12:22:43PM +0100, Ilya Maximets wrote: ... > I did some research that might answer or maybe clarify the questions above. > Namely reading ARP-related RFCs - 826 and 5227. From these I carried > following: > > - Gratuitous ARP / ARP Announcement messages are generally li

Re: [ovs-dev] [PATCH v8 00/15] tests: Add system-traffic.at tests to check-offloads.

2023-01-26 Thread Simon Horman
put: recirc_id sharing not supported An alternate approach would be to probe for recirc_id sharing support. [*] These tests fail, presumably mixing TC and OVS kernel datapath flows breaks things. This feels like a bug. As a work-around this patch disables these tests via the OVS_TEST_SK

Re: [ovs-dev] [PATCH v8 14/15] tests: Fix reading of OpenFlow byte counters in GRE test cases.

2023-01-26 Thread Simon Horman
On Tue, Jan 24, 2023 at 02:01:19PM +0100, Eelco Chaudron wrote: > With some datapaths, read TC, it takes a bit longer to update the > OpenFlow statistics. Rather than adding an additional delay, try > to read the counters multiple times until we get the desired value. > > Signed-off-by: Eelco Chau

Re: [ovs-dev] [PATCH v8 00/15] tests: Add system-traffic.at tests to check-offloads.

2023-01-26 Thread Simon Horman
On Thu, Jan 26, 2023 at 06:29:44PM +0100, Eelco Chaudron wrote: > > > On 26 Jan 2023, at 17:52, Simon Horman wrote: > > > On Tue, Jan 24, 2023 at 01:42:57PM +0100, Eelco Chaudron wrote: > >> This series makes it possible to include system-traffic.at tests into >

Re: [ovs-dev] [PATCH v8 14/15] tests: Fix reading of OpenFlow byte counters in GRE test cases.

2023-01-26 Thread Simon Horman
On Thu, Jan 26, 2023 at 06:21:34PM +0100, Eelco Chaudron wrote: > > > On 26 Jan 2023, at 17:58, Simon Horman wrote: > > > On Tue, Jan 24, 2023 at 02:01:19PM +0100, Eelco Chaudron wrote: > >> With some datapaths, read TC, it takes a bit longer to update the > >&

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

2023-01-27 Thread Simon Horman
meter to tc police action") Reported-by: David Marchand Reviewed-by: Louis Peens Signed-off-by: Simon Horman --- tests/system-offloads-traffic.at | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/system-offloads-traffic.at b/tests/system-offloads-traffic.at index 1a60570801e1..1

[ovs-dev] system-traffic: correct dependancies on nc

2023-01-27 Thread Simon Horman
This series addresses an unnecessary and missing dependency on 'nc' in system tests. Patch 1/2: Remove unnecessary dependency on nc Patch 2/2: Add necessary dependency on nc As reported by David Marchand Ref: https://mail.openvswitch.org/pipermail/ovs-dev/2023-January/401399.html Si

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

2023-01-27 Thread Simon Horman
The conntrack - ICMP related to original direction" test does not use nc and therefore does not need to be skipped if nc is not present. Fixes: d0e4206230b3 ("tests: ICMP related to original direction test.") Reported-by: David Marchand Reviewed-by: Louis Peens Signed-off-b

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

2023-01-29 Thread Simon Horman
On Fri, Jan 27, 2023 at 05:52:41PM +0100, Ilya Maximets wrote: > On 1/25/23 13:50, Simon Horman wrote: > > On Tue, Jan 24, 2023 at 05:15:53PM +0100, David Marchand wrote: > >> On Mon, Jan 23, 2023 at 3:50 PM Simon Horman > >> wrote: > >>> > >>&

Re: [ovs-dev] system-traffic: correct dependancies on nc

2023-01-30 Thread Simon Horman
On Fri, Jan 27, 2023 at 06:05:57PM +0100, Ilya Maximets wrote: > On 1/27/23 14:34, Simon Horman wrote: > > This series addresses an unnecessary and missing dependency on 'nc' in > > system tests. > > > > Patch 1/2: Remove unnecessary dependency on nc > >

[ovs-dev] [PATCH v3 0/3] dpif-netlink: add revalidator for offload of meters

2023-01-30 Thread Simon Horman
This series provides a mechanism to allow the revalidator to retry deletion of tc police action instances. Without such a technique action instances created independent of flows, for metering, may be left dangling if deletion fails when they are still used by flows. Change since v2: * Only apply m

[ovs-dev] [PATCH v3 1/3] id_pool: expose id_node for external use

2023-01-30 Thread Simon Horman
From: Tianyu Yuan Expose id_node structure for external use. F.e., the hash_node could be directly accessed by this structure. Signed-off-by: Tianyu Yuan Signed-off-by: Simon Horman --- lib/id-pool.c | 7 --- lib/id-pool.h | 7 +++ 2 files changed, 7 insertions(+), 7 deletions

[ovs-dev] [PATCH v3 3/3] dpif-netlink: add revalidator for offload of meters

2023-01-30 Thread Simon Horman
supports revalidator to delete remaining polices in tc datapath by storing meter_id deleted unsuccessfully in a hmap and continuously deleting them in revalidator until success. Signed-off-by: Tianyu Yuan Signed-off-by: Simon Horman --- lib/dpif-netdev.c | 1 + lib/dpif-netlink.c

[ovs-dev] [PATCH v3 2/3] id_pool: add helper function to add id_node in hmap

2023-01-30 Thread Simon Horman
From: Tianyu Yuan Add helper function to add id_node in hmap directly and expose this function for external use. Signed-off-by: Tianyu Yuan Signed-off-by: Simon Horman --- lib/id-pool.c | 12 ++-- lib/id-pool.h | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a

Re: [ovs-dev] a curious intel-ovs-compilation test fail

2023-01-31 Thread Simon Horman
On Tue, Jan 31, 2023 at 05:22:11PM +0800, Faicker Mo wrote: > Hi, a curious ovsrobot/intel-ovs-compilation test fail, > > > 88: conntrack - IPv6 fragmentation + cvlan FAILED > (system-traffic.at:3939) > > > ./system-traffic.at:3939: ip netns exec at_ns0 sh << NS_EXEC_HEREDOC > ping6 -

Re: [ovs-dev] [PATCH] net: openvswitch: fix flow memory leak in ovs_flow_cmd_new

2023-02-01 Thread Simon Horman
On Tue, Jan 31, 2023 at 10:19:39PM +0300, Fedor Pchelkin wrote: > Syzkaller reports a memory leak of new_flow in ovs_flow_cmd_new() as it is > not freed when an allocation of a key fails. > > BUG: memory leak > unreferenced object 0x888116668000 (size 632): > comm "syz-executor231", pid 1090

Re: [ovs-dev] [PATCH] net: openvswitch: fix flow memory leak in ovs_flow_cmd_new

2023-02-01 Thread Simon Horman
On Wed, Feb 01, 2023 at 07:28:09PM +0300, Fedor Pchelkin wrote: > On 2/1/23 6:45 PM, Simon Horman wrote: > > I see this would work by virtue of kfree(key) doing nothing > > of key is NULL, the error case in question. And that otherwise key is > > non-NULL if this path is hit.

Re: [ovs-dev] [PATCH v2] net: openvswitch: fix flow memory leak in ovs_flow_cmd_new

2023-02-02 Thread Simon Horman
4abfdcf4>] entry_SYSCALL_64_after_hwframe+0x61/0xc6 > > > > To fix this the patch rearranges the goto labels to reflect the order of > > object allocations and adds appropriate goto statements on the error > > paths. > > > >

Re: [ovs-dev] [PATCH v10 00/11] tests: Add system-traffic.at tests to check-offloads.

2023-02-02 Thread Simon Horman
On Thu, Feb 02, 2023 at 12:09:37PM +0100, Eelco Chaudron wrote: > This series makes it possible to include system-traffic.at tests into > "make check-offloads" tests. > > The last patch of the series explains which tests are still not passing > and might need some more work. > > I'll try to work

Re: [ovs-dev] [PATCH v10 01/11] tests: Include working system-traffic tests into the system-offloads-testsuite.

2023-02-03 Thread Simon Horman
On Thu, Feb 02, 2023 at 12:09:47PM +0100, Eelco Chaudron wrote: > Include and run the system-traffic.at tests as part of the system offload > testsuite. Exclude all the tests that will not run without any special > modifications. > > Signed-off-by: Eelco Chaudron > Acked-by: Roi Dayan ... > di

Re: [ovs-dev] [PATCH v10 01/11] tests: Include working system-traffic tests into the system-offloads-testsuite.

2023-02-04 Thread Simon Horman
On Fri, Feb 03, 2023 at 08:36:12PM +0100, Ilya Maximets wrote: > On 2/3/23 17:48, Simon Horman wrote: > > On Thu, Feb 02, 2023 at 12:09:47PM +0100, Eelco Chaudron wrote: > >> Include and run the system-traffic.at tests as part of the system offload > >> testsuite. Excl

Re: [ovs-dev] [PATCH v1 1/3] string_helpers: Move string_is_valid() to the header

2023-02-04 Thread Simon Horman
g_helpers: Move string_is_valid() That notwithstanding, Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v1 2/3] genetlink: Use string_is_valid() helper

2023-02-04 Thread Simon Horman
ld appear in the patch subject: [PATCH v1 net-next 1/3] genetlink: Use string_is_valid() helper That notwithstanding, Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v1 3/3] openvswitch: Use string_is_valid() helper

2023-02-04 Thread Simon Horman
ld appear in the patch subject: [PATCH v1 net-next 3/3] openvswitch: Use string_is_valid() That notwithstanding, Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH net-next v7 1/1] net:openvswitch:reduce cpu_used_mask memory

2023-02-04 Thread Simon Horman
On Fri, Feb 03, 2023 at 11:42:45PM +0800, Eddy Tao wrote: > Use actual CPU number instead of hardcoded value to decide the size > of 'cpu_used_mask' in 'struct sw_flow'. Below is the reason. > > 'struct cpumask cpu_used_mask' is embedded in struct sw_flow. > Its size is hardcoded to CONFIG_NR_CPUS

Re: [ovs-dev] [PATCH v2] id-pool: Refactor to use a bitmap.

2023-02-06 Thread Simon Horman
ecessary rather > than allocating the entire space at once. This makes the approach less > memory-intensive for id pools with a large theoretical maximum number of > values. > > Signed-off-by: Mark Michelson Reviewed-by: Simon Horman

Re: [ovs-dev] [PATCH v3] ofproto-dpif-xlate: Remove repeated function for judge garp

2023-02-07 Thread Simon Horman
On Tue, Feb 07, 2023 at 01:04:41PM +0800, Han Ding wrote: > > Function is_gratuitous_arp() and function is_garp() are all used to judge > whether the flow is gratuitous arp. It is not necessary to use two functions > to do the same thing and just keep one. > > Signed-off-by: Han Ding > --- > li

Re: [ovs-dev] [PATCH v6] conntrack: Properly unNAT inner header of related traffic

2023-02-07 Thread Simon Horman
oo :) Reviewed-by: Simon Horman > diff --git a/lib/conntrack.c b/lib/conntrack.c > index 550b2be9b..3162924ca 100644 > --- a/lib/conntrack.c > +++ b/lib/conntrack.c ... > static void > -reverse_nat_packet(struct dp_packet *pkt, const struct conn *conn) > +nat_inner_packet

Re: [ovs-dev] [PATCH v1 1/2] ovs-router: introduce src param in ovs/route/add.

2023-02-07 Thread Simon Horman
when caching routes from > Kernel FIB with Netlink, but are not dealt with in this patch. > > Signed-off-by: Nobuhiro MIKI Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v1 2/2] route-table: retrieving the preferred source address from Netlink.

2023-02-07 Thread Simon Horman
t; calculated with its own logic. This patch resolves the difference > between kernel FIB and OVS route table cache by retrieving the > RTA_PREFSRC attribute of Netlink messages. > > Signed-off-by: Nobuhiro MIKI Reviewed-by: Simon Horman

Re: [ovs-dev] [PATCH net-next v1 1/1] net: openvswitch: remove unnecessary vlan init in key_extract

2023-02-07 Thread Simon Horman
On Tue, Feb 07, 2023 at 12:31:33PM +0800, Eddy Tao wrote: > Redefine clear_vlan to initialize one struct vlan_head > Define clear_vlans to initialize key.eth.vlan and key.eth.cvlan > Calls the revised functions accurately > > Reasoning: > > For vlan packet, current code calls clear_vlan unneces

Re: [ovs-dev] [PATCH v6] conntrack: Properly unNAT inner header of related traffic

2023-02-08 Thread Simon Horman
On Wed, Feb 08, 2023 at 07:29:27AM +0100, Ales Musil wrote: > On Tue, Feb 7, 2023 at 11:54 AM Simon Horman > wrote: > > > On Mon, Feb 06, 2023 at 12:46:10PM +0100, Ales Musil wrote: > > > The inner header was not handled properly. > > > Simplify the code which al

Re: [ovs-dev] [PATCHv2 net-next 1/5] net: create nf_conntrack_ovs for ovs and tc use

2023-02-08 Thread Simon Horman
t; There are nf_ct_helper() and nf_ct_add_helper() from nf_conntrak_helper > in this patch, and will be more in the following patches. > > Signed-off-by: Xin Long Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mai

Re: [ovs-dev] [PATCHv2 net-next 2/5] net: extract nf_ct_skb_network_trim function to nf_conntrack_ovs

2023-02-08 Thread Simon Horman
ff-by: Xin Long Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCHv2 net-next 3/5] openvswitch: move key and ovs_cb update out of handle_fragments

2023-02-08 Thread Simon Horman
> Signed-off-by: Xin Long Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCHv2 net-next 5/5] net: extract nf_ct_handle_fragments to nf_conntrack_ovs

2023-02-08 Thread Simon Horman
e > done only when defrag returns 0, as it does in other places > in kernel. > > Signed-off-by: Xin Long Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCHv2 net-next 4/5] net: sched: move frag check and tc_skb_cb update out of handle_fragments

2023-02-08 Thread Simon Horman
ned-off-by: Xin Long Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v11 01/11] tests: Include working system-traffic tests into the system-offloads-testsuite.

2023-02-08 Thread Simon Horman
t supported" message, so tests > will not fail with older kernels. This is not an error level message, but > should be debug, like all other, EOPNOTSUPP, related log messages. > > Signed-off-by: Eelco Chaudron > Acked-by: Roi Dayan Reviewed-b

Re: [ovs-dev] [PATCH v11 01/11] tests: Include working system-traffic tests into the system-offloads-testsuite.

2023-02-08 Thread Simon Horman
t supported" message, so tests > will not fail with older kernels. This is not an error level message, but > should be debug, like all other, EOPNOTSUPP, related log messages. > > Signed-off-by: Eelco Chaudron > Acked-by: Roi Dayan Reviewed-b

Re: [ovs-dev] [PATCH v11 02/11] test: Do not use MPLS implicit null label in test cases.

2023-02-08 Thread Simon Horman
On Tue, Feb 07, 2023 at 03:04:17PM +0100, Eelco Chaudron wrote: > TC flower does not allow the push of the implicit null labels (RFC3032). > Avoid the use of such labels in the MPLS test cases. > > Signed-off-by: Eelco Chaudron > Acked-by: Roi Dayan Reviewed-by: Simon Horman T

Re: [ovs-dev] [PATCH v11 03/11] netdev-offload-tc: Fix tc conntrack force commit support.

2023-02-08 Thread Simon Horman
-by: Eelco Chaudron > Acked-by: Roi Dayan Reviewed-by: Simon Horman Tested-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v11 04/11] test: Flush datapath when changing rules on the fly.

2023-02-08 Thread Simon Horman
On Tue, Feb 07, 2023 at 03:05:07PM +0100, Eelco Chaudron wrote: > Flush datapath flows as TC flows take some more time to be flushed out. > The flush speeds this up. > > Signed-off-by: Eelco Chaudron > Acked-by: Roi Dayan Reviewed-by: Simon Horman Tested-b

Re: [ovs-dev] [PATCH v11 05/11] netdev-offload-tc: Conntrack ALGs are not supported with tc.

2023-02-08 Thread Simon Horman
; the kernel module, return traffic might flow through a tc conntrack > rule, and it will not invoke the ALG helper. > > Fixes: 576126a931cd ("netdev-offload-tc: Add conntrack support") > Signed-off-by: Eelco Chaudron > Acked-by: Roi Dayan Reviewed-by:

Re: [ovs-dev] [PATCH v11 06/11] test: tc does not support conntrack timeout, skip the related test.

2023-02-08 Thread Simon Horman
related test by overriding the support macro. > > Signed-off-by: Eelco Chaudron > Acked-by: Roi Dayan Reviewed-by: Simon Horman Tested-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v11 07/11] test: Fix 'conntrack - Multiple ICMP traverse' for tc case.

2023-02-08 Thread Simon Horman
tc-offload.rst. > > Signed-off-by: Eelco Chaudron > Acked-by: Roi Dayan Reviewed-by: Simon Horman Tested-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v11 08/11] odp-util: Make odp_flow_key_from_flow__ nlattr order the same as the kernel.

2023-02-08 Thread Simon Horman
e order for all datapath. > > Signed-off-by: Eelco Chaudron > Acked-by: Roi Dayan Reviewed-by: Simon Horman Tested-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v11 09/11] netdev-offload-tc: If the flow has not been used, report it as such.

2023-02-08 Thread Simon Horman
y is also present > in other ICMP/IGMP tests. > > f98e418fbdb6 ("tc: Add tc flower functions") > Signed-off-by: Eelco Chaudron > Acked-by: Roi Dayan Reviewed-by: Simon Horman Tested-by: Simon Horman ___ dev mailing list d...@openv

Re: [ovs-dev] [PATCH v11 10/11] tests: Fix reading of OpenFlow byte counters in GRE test cases.

2023-02-08 Thread Simon Horman
On Tue, Feb 07, 2023 at 03:07:24PM +0100, Eelco Chaudron wrote: > With some datapaths, read TC, it takes a bit longer to update the > OpenFlow statistics. Rather than adding an additional delay, try > to read the counters multiple times until we get the desired value. > > Signed-off-by: Eelco Chau

Re: [ovs-dev] [PATCH v11 01/11] tests: Include working system-traffic tests into the system-offloads-testsuite.

2023-02-08 Thread Simon Horman
On Wed, Feb 08, 2023 at 05:32:30PM +0100, Simon Horman wrote: > On Tue, Feb 07, 2023 at 03:03:57PM +0100, Eelco Chaudron wrote: > > Include and run the system-traffic.at tests as part of the system offload > > testsuite. Exclude all the tests that will not run without any special &g

Re: [ovs-dev] [PATCH v11 10/11] tests: Fix reading of OpenFlow byte counters in GRE test cases.

2023-02-09 Thread Simon Horman
On Thu, Feb 09, 2023 at 09:42:03AM +0100, Eelco Chaudron wrote: > > > On 8 Feb 2023, at 17:50, Simon Horman wrote: > > > On Tue, Feb 07, 2023 at 03:07:24PM +0100, Eelco Chaudron wrote: > >> With some datapaths, read TC, it takes a bit longer to update the > >&

Re: [ovs-dev] [PATCH v11 11/11] tests: Comment currently failing TC system-traffic tests.

2023-02-09 Thread Simon Horman
; investigation. They are: > > datapath - truncate and output to gre tunnel > datapath - truncate and output to gre tunnel by simulated packets > > These tests where executed on a Fedora37 machine with the kernel > 6.1.5-200.fc37.x86_64 installed. > > Signed-off-by:

Re: [ovs-dev] [PATCH v2] net: openvswitch: fix possible memory leak in ovs_meter_cmd_set()

2023-02-09 Thread Simon Horman
On Thu, Feb 09, 2023 at 05:32:40PM +0800, Hangyu Hua wrote: > old_meter needs to be free after it is detached regardless of whether > the new meter is successfully attached. > > Fixes: c7c4c44c9a95 ("net: openvswitch: expand the meters supported number") > Signed-off-by: Hangyu Hua > --- > > v2:

Re: [ovs-dev] [PATCH v3] net: openvswitch: fix possible memory leak in ovs_meter_cmd_set()

2023-02-10 Thread Simon Horman
c9a95 ("net: openvswitch: expand the meters supported number") > > Signed-off-by: Hangyu Hua > > Thanks for doing a v3. The change looks good to me! > > Acked-by: Eelco Chaudron Reviewed-by: Simon Horman ___ dev mailin

Re: [ovs-dev] [PATCH v2 1/2] ofproto-ipfix: use per-domain template timeouts

2023-02-10 Thread Simon Horman
On Fri, Feb 10, 2023 at 12:30:58PM +0100, Adrian Moreno wrote: > > > On 1/25/23 16:35, Simon Horman wrote: > > On Tue, Jan 24, 2023 at 08:21:28PM +0100, Adrián Moreno wrote: > > > From: Adrian Moreno > > > > > > IPFIX templates have to be sent for each

Re: [ovs-dev] [PATCH net-next v1 1/1] net: openvswitch: ovs_packet_cmd_execute put sw_flow mainbody in stack

2023-02-19 Thread Simon Horman
On Sat, Feb 18, 2023 at 02:53:29PM +0800, Eddy Tao wrote: > Add 2 performance revisions for ovs_packet_cmd_execute I think that in general it's nicer to do one change per patch: i.e. split this into two patches. > 1.Stores mainbody of sw_flow(600+ bytes) in stack > Benifit: avoid kmem cache all

Re: [ovs-dev] [PATCH net-next v1 1/1] net: openvswitch: ovs_packet_cmd_execute put sw_flow mainbody in stack

2023-02-20 Thread Simon Horman
On Mon, Feb 20, 2023 at 03:11:17PM +0800, Eddy Tao wrote: > Hi, Simon: > > >     About your concern for the stack size, it leads to more room for > improvement. > > I will file a new version which will have smaller stack occupation and > better performance > > > The new revision is invoked by

Re: [ovs-dev] [PATCH v3 1/2] ofproto-ipfix: use per-domain template timeouts

2023-02-20 Thread Simon Horman
t; Fix per-flow sampling by using an hmap to keep a timer for each > Observation Domain ID. > > Signed-off-by: Adrian Moreno Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v3 2/2] ipfix: make template and stats interval configurable

2023-02-20 Thread Simon Horman
tests which generate errors in Intel CI. Will submit in > independent series. > - v2: > - Fixed a potential race condition in unit test. > - v1: > - Added unit test. Reviewed-by: Simon Horman ___ dev mailing list d...@openvsw

Re: [ovs-dev] [PATCH v3 1/3] netdev-dummy: Support multiple IP addresses

2023-02-20 Thread Simon Horman
ue_packet(dev, reply, NULL, 0); } } I wonder if it would be appropriate to add a break; after the call to netdev_dummy_queue_packet(). I don't think we expect multiple hits. And it would save spinning over the loop unnecessarily, though perhaps we don't expect the list of

Re: [ovs-dev] [PATCH v3 2/3] ovs-router: Introduce src option in ovs/route/add command.

2023-02-20 Thread Simon Horman
On Tue, Feb 14, 2023 at 12:39:05PM +0900, Nobuhiro MIKI wrote: > When adding a route with ovs/route/add command, the source address > in "ovs_router_entry" structure is always the FIRST address that the > interface has. See "ovs_router_get_netdev_source_address" > function for more information. >

Re: [ovs-dev] [PATCH v3 3/3] route-table: Retrieving the preferred source address from Netlink.

2023-02-20 Thread Simon Horman
t; calculated with its own logic. This patch resolves the difference > between kernel FIB and OVS route table cache by retrieving the > RTA_PREFSRC attribute of Netlink messages. > > Signed-off-by: Nobuhiro MIKI Reviewed-by: Simon Horman

Re: [ovs-dev] [PATCH v3 1/3] netdev-dummy: Support multiple IP addresses

2023-02-21 Thread Simon Horman
On Tue, Feb 21, 2023 at 05:41:59PM +0900, Nobuhiro MIKI wrote: > On 2023/02/21 1:35, Simon Horman wrote: > > On Tue, Feb 14, 2023 at 12:39:04PM +0900, Nobuhiro MIKI wrote: > >> This is useful in test cases where multiple IPv4/IPv6 addresses > >> are assigned togeth

Re: [ovs-dev] [PATCH v3 2/3] ovs-router: Introduce src option in ovs/route/add command.

2023-02-21 Thread Simon Horman
On Tue, Feb 21, 2023 at 06:33:32PM +0900, Nobuhiro MIKI wrote: > On 2023/02/21 2:23, Simon Horman wrote: > > On Tue, Feb 14, 2023 at 12:39:05PM +0900, Nobuhiro MIKI wrote: > >> When adding a route with ovs/route/add command, the source address > >> in "ovs_route

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Mirror packets that are modified

2023-02-21 Thread Simon Horman
On Thu, Feb 16, 2023 at 03:05:08PM -0500, Mike Pattrick wrote: > Currently OVS keeps track of which mirrors that each packet has been > sent to for the purpose of deduplication. However, this doesn't consider > that openflow rules can make significant changes to packets after > ingress. > > For ex

Re: [ovs-dev] [PATCH v4] ofproto-dpif-upcall: Wait for valid hw flow stats before applying min-revalidate-pps

2023-02-21 Thread Simon Horman
lem with min-revalidate-pps, as old statistic values are used > during this period. > > This fix will wait for at least 2 seconds, by default, before assuming no > packets where received during this period. > > Signed-off-by: Eelco Chaudron Some minor nits inline, but this looks g

Re: [ovs-dev] [PATCH v3 1/2] ofproto-dpif-upcall: Reset ukey's last stats value if the datapath changed.

2023-02-21 Thread Simon Horman
On Fri, Feb 03, 2023 at 12:12:12PM +0100, Eelco Chaudron wrote: > When the ukey's action set changes, it could caus the flow to use a nit: s/caus/cause/ > different datapath, for example, when it moves from tc to kernel. > This will cause the the cached previous datapath statistics to be used. >

Re: [ovs-dev] [PATCH 2/2] ci: Run tc offload tests in GitHub Actions.

2023-02-21 Thread Simon Horman
On Wed, Feb 15, 2023 at 09:15:04PM +0100, Ilya Maximets wrote: > On 2/14/23 14:54, Eelco Chaudron wrote: > > Run "make check-offloads" as part of the GitHub actions tests. > > > > This test was run 25 times using GitHub actions, and the > > failing rerun test cases where excluded. There are quite

Re: [ovs-dev] [PATCH v6] netdev-offload-tc: del ufid mapping if device not exist

2023-02-21 Thread Simon Horman
On Wed, Feb 01, 2023 at 10:49:22AM +0800, Faicker Mo wrote: > The device may be deleted and added with ifindex changed. > The tc rules on the device will be deleted if the device is deleted. > The func tc_del_filter will fail when flow del. The mapping of > ufid to tc will not be deleted. > The tra

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Mirror packets that are modified

2023-02-21 Thread Simon Horman
On Tue, Feb 21, 2023 at 10:11:27AM -0500, Mike Pattrick wrote: > On Tue, Feb 21, 2023 at 5:35 AM Simon Horman > wrote: > > > > On Thu, Feb 16, 2023 at 03:05:08PM -0500, Mike Pattrick wrote: > > > Currently OVS keeps track of which mirrors that each packet has been &g

Re: [ovs-dev] [PATCH v4 2/4] ovs-router: Cleanup parser for ovs/route/add command.

2023-02-22 Thread Simon Horman
pecification is used. Also, pkt_mark and gw have separate prefix > strings so they can be parsed in any order. > > Signed-off-by: Nobuhiro MIKI Thanks, looks good. Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org http

Re: [ovs-dev] [PATCH v4 3/4] ovs-router: Introduce src option in ovs/route/add command.

2023-02-22 Thread Simon Horman
On Wed, Feb 22, 2023 at 05:12:36PM +0900, Nobuhiro MIKI wrote: > When adding a route with ovs/route/add command, the source address > in "ovs_router_entry" structure is always the FIRST address that the > interface has. See "ovs_router_get_netdev_source_address" > function for more information. >

Re: [ovs-dev] [PATCH v6] netdev-offload-tc: del ufid mapping if device not exist

2023-02-22 Thread Simon Horman
this mailing list. And could you please look at my comment regarding the test you have added in this patch. Thanks! > From: Simon Horman > Date: 2023-02-21 23:09:05 > To: Faicker Mo > Cc: d...@openvswitch.org > Subject: Re: [ovs-dev] [PATCH v6] netdev-offload-tc: del ufid mappi

Re: [ovs-dev] [PATCH ovn] dbctl: Fix a couple of memory leaks

2023-02-22 Thread Simon Horman
On Wed, Feb 22, 2023 at 09:02:10AM +0100, Ales Musil wrote: > Nothing is being freed wherever we are calling > ctl_fatal which is fine because the program is > about to shutdown anyway however one of the > leaks was caught by address sanitizer. > Fix most of the leaks that are happening before > ca

Re: [ovs-dev] [PATCH v4 3/4] ovs-router: Introduce src option in ovs/route/add command.

2023-02-22 Thread Simon Horman
On Wed, Feb 22, 2023 at 06:31:55PM +0900, Nobuhiro MIKI wrote: > On 2023/02/22 18:04, Simon Horman wrote: > > On Wed, Feb 22, 2023 at 05:12:36PM +0900, Nobuhiro MIKI wrote: ... > >> diff --git a/ofproto/ofproto-tnl-unixctl.man > >> b/ofproto/ofproto-tnl-unixctl.

Re: [ovs-dev] [PATCH ovn] dbctl: Fix a couple of memory leaks

2023-02-22 Thread Simon Horman
On Wed, Feb 22, 2023 at 11:24:04AM +0100, Ales Musil wrote: > On Wed, Feb 22, 2023 at 10:59 AM Simon Horman > wrote: ... Hi Ales, > Hi Simon, > thank you for your review. you are welcome. > > > --- > > > utilities/ovn-dbctl.c | 76 +++

Re: [ovs-dev] [PATCH 1/1] tc: Fix cleaning chains

2023-02-22 Thread Simon Horman
I think this needs an ack from Eelco (CCed). But it looks good to me. Reviewed-by: Simon Horman > --- > lib/netdev-offload-tc.c | 7 --- > lib/tc.c| 4 +++- > 2 files changed, 7 insertions(+), 4 deletions(-) > > diff --git a/lib/netdev-offload-tc.c b/li

Re: [ovs-dev] [PATCH v5 3/5] ofproto: Fix mam page for tunnel related commands.

2023-02-22 Thread Simon Horman
On Wed, Feb 22, 2023 at 07:29:50PM +0900, Nobuhiro MIKI wrote: > These commands already support both IPv4 and IPv6. > > Signed-off-by: Nobuhiro MIKI Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvs

Re: [ovs-dev] [PATCH v5 4/5] ovs-router: Introduce src option in ovs/route/add command.

2023-02-22 Thread Simon Horman
when caching routes from > Kernel FIB with Netlink, but are not dealt with in this patch. > > Signed-off-by: Nobuhiro MIKI Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH ovn v2] dbctl: Fix a couple of memory leaks

2023-02-22 Thread Simon Horman
pace/ovn/utilities/ovn-dbctl.c:132:20 > #7 0x5b58c7 in main /workspace/ovn/utilities/ovn-nbctl.c:7943:12 > > Signed-off-by: Ales Musil > --- > v2: Address comments from Simon: > - Rearrange the cleanup according to suggestion. >

Re: [ovs-dev] [PATCH v6] netdev-offload-tc: del ufid mapping if device not exist

2023-02-22 Thread Simon Horman
th the C-code change I am yet to see the test fail, so far I'm up to 80 attempts. I do wonder if this warrants a Fixes tag. And if so, if it should be: Fixes: 262a07956fab ("netdev-tc-offloads: Delete ufid tc mapping in the right place") That notwithstanding, I am ha

Re: [ovs-dev] [PATCH v6] netdev-offload-tc: del ufid mapping if device not exist

2023-02-22 Thread Simon Horman
On Wed, Feb 22, 2023 at 04:19:37PM +0100, Simon Horman wrote: > On Wed, Feb 22, 2023 at 06:33:50PM +0800, Faicker Mo wrote: > > It's not easy to add a fail test without the changed code. > > But I test it failed with the old code manually following these steps, > > 1. App

Re: [ovs-dev] [PATCH v6] netdev-offload-tc: del ufid mapping if device not exist

2023-02-23 Thread Simon Horman
On Thu, Feb 23, 2023 at 10:24:54AM +0800, Faicker Mo wrote: > I can run the fail-test more easier. > There exists a flow in verbose log like this, > recirc_id(0),in_port(2),eth(src=aa:1a:54:e9:c5:56,dst=86:29:2a:05:94:90),eth_type(0x0800),ipv4(frag=no), > packets:1, bytes:84, used:12.240s, action

Re: [ovs-dev] [PATCH net-next v2 1/1] net: openvswitch: Use on stack sw_flow_key in ovs_packet_cmd_execute

2023-02-23 Thread Simon Horman
On Thu, Feb 23, 2023 at 08:24:50PM +0800, Eddy Tao wrote: > Sorry, there is a typo in the mail, i will resend shortly, please ignore it > for now net-next is now closed. You'll need to repost this patch after v6.3-rc1 has been tagged. Or post it as an RFC. Ref: https://www.kernel.org/doc/html/l

[ovs-dev] [PATCH] test: move check for tc ingress pps support to test script

2023-02-23 Thread Simon Horman
check seems to execute for many make targets. And it attempts to temporarily modify system state. This seems inappopriate. All these problems are addressed by this patch. Signed-off-by: Simon Horman Reviewed-by: Louis Peens --- tests/atlocal.in | 11 --- tests/system

Re: [ovs-dev] [PATCH] test: move check for tc ingress pps support to test script

2023-02-23 Thread Simon Horman
On Thu, Feb 23, 2023 at 03:19:37PM +0100, Ilya Maximets wrote: > On 2/23/23 14:02, Simon Horman wrote: > > Move check for tc ingress pps support to from aclocal to test script > > > > This has several problems: > > > > 1. Stderror from failing commands is out

Re: [ovs-dev] [PATCH] test: move check for tc ingress pps support to test script

2023-02-23 Thread Simon Horman
On Thu, Feb 23, 2023 at 04:09:10PM +0100, Ilya Maximets wrote: > On 2/23/23 15:19, Ilya Maximets wrote: > > On 2/23/23 14:02, Simon Horman wrote: ... > >> +AT_CHECK([ > >> +if ! tc qdisc add dev veth0 handle : ingress; then > >> +i

<    10   11   12   13   14   15   16   17   >