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

2023-02-28 Thread Simon Horman
On Tue, Feb 28, 2023 at 04:24:57PM +0100, Eelco Chaudron wrote: > > > On 16 Feb 2023, at 13:21, Eelco Chaudron wrote: > > > On 15 Feb 2023, at 21:15, Ilya Maximets wrote: > > > >> On 2/14/23 14:54, Eelco Chaudron wrote: > >>> Run "make check-offloads" as part of the GitHub actions tests. > >>>

Re: [ovs-dev] [PATCH ovn 2/3] ovn-util: Optimize is_dynamic_lsp_address.

2023-02-28 Thread Simon Horman
arse IPv4 twice. > > Signed-off-by: Ilya Maximets Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH ovn 3/3] northd: Don't parse LSP addresses twice.

2023-02-28 Thread Simon Horman
On Mon, Feb 27, 2023 at 09:03:44PM +0100, Ilya Maximets wrote: > At the point of IPAM configuration all the addresses are already parsed. > No need to waste time parsing them again. > > Signed-off-by: Ilya Maximets Reviewed-by: Simon Horman ___

Re: [ovs-dev] [PATCH ovn 1/3] treewide: Remove unnecessary strlen() calls.

2023-02-28 Thread Simon Horman
s called by > northd for every logical port and involves 2 unnecessary strlen() calls. > > Signed-off-by: Ilya Maximets Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH ovn] ovn-util: Remove unused ovn_parse_internal_version_minor.

2023-02-28 Thread Simon Horman
ovn-controller: Use ct_mark.natted only when > ct_lb_mark is used.") > Signed-off-by: Ilya Maximets Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

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

2023-02-28 Thread Simon Horman
On Mon, Feb 27, 2023 at 04:44:02PM +0100, Ilya Maximets wrote: > On 2/24/23 14:01, 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 v2] system-traffic.at: Add icmp error tests while dnatting address and port.

2023-02-28 Thread Simon Horman
-- > v2: > - added missing OVS_WAIT_UNTIL for tcpdump > - removed nc dependency and replaced with packet-out Reviewed-by: Simon Horman I also successfully exercising this using the following make targets: - check-offloads - check-kernel - check-system-userspace - check-system-t

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

2023-02-28 Thread Simon Horman
On Mon, Feb 27, 2023 at 02:08:25PM +0100, Eelco Chaudron wrote: > > > On 22 Feb 2023, at 13:46, Simon Horman wrote: > > > On Wed, Feb 22, 2023 at 12:30:17PM +0200, Roi Dayan via dev wrote: > >> Sometimes there is a need to clean empty chains as done in >

Re: [ovs-dev] [PATCH v5 2/2] ofproto-dpif-upcall: Include hardware offloaded flows in total flows.

2023-02-27 Thread Simon Horman
gt; Signed-off-by: Eelco Chaudron Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

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

2023-02-27 Thread Simon Horman
gt; This change will reset the cached statistics when a change in > datapath is discovered. > > Signed-off-by: Eelco Chaudron Reviewed-by: Simon Horman ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

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

2023-02-27 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. > > Reviewed-by: Simon Horman > Signed-off-by: Eelco Chaudron > --

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

2023-02-24 Thread Simon Horman
On Fri, Feb 24, 2023 at 04:08:46PM +0100, Adrian Moreno wrote: > > > On 2/24/23 14:09, Simon Horman wrote: > > On Fri, Feb 24, 2023 at 12:05:45PM +0100, Adrian Moreno wrote: > > > Please ignore this patch that was sent without the correct version. > > >

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

2023-02-24 Thread Simon Horman
On Fri, Feb 24, 2023 at 12:05:45PM +0100, Adrian Moreno wrote: > Please ignore this patch that was sent without the correct version. Is the "v4" posting the correct revision? https://mail.openvswitch.org/pipermail/ovs-dev/2023-February/402308.html ___

Re: [ovs-dev] [PATCH] ofproto: Fix re-creation of tunnel backing interfaces on restart.

2023-02-24 Thread Simon Horman
uary/052215.html > Signed-off-by: Ilya Maximets Thanks Ilya, this looks good to me. I have a few comments below, but those notwithstanding, Reviewed-by: Simon Horman ... > @@ -729,8 +723,6 @@ open_dpif_backer(const char *type, struct dpif_backer > **backerp) > struct dpif_port_du

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

2023-02-24 Thread Simon Horman
. The check seems to execute for many make targets. And it attempts to temporarily modify system state. This seems inappropriate. 4. veth0 and veth1 seem far too generic and could easily conflict with other parts of the system. All these problems are addressed by this patch. Signed-off-by: Simon

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: ... > > +exit 77 > > +fi > > +]) > > +AT_CHECK([ > > +if ! tc filter add dev veth0 parent : \ > > 'dnl' is

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:36:25PM +0100, Ilya Maximets wrote: > On 2/23/23 16:33, Simon Horman wrote: > > 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: > >

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 > >> +

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

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

2023-02-23 Thread Simon Horman
. The 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 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:

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,

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. Apply

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

2023-02-22 Thread Simon Horman
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 happy with t

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 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 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 1/1] tc: Fix cleaning chains

2023-02-22 Thread Simon Horman
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/lib/net

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 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 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 >

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

2023-02-22 Thread Simon Horman
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 mapping if

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 v4 2/4] ovs-router: Cleanup parser for ovs/route/add command.

2023-02-22 Thread Simon Horman
; specification 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] 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 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

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 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 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] 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

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_r

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 tog

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 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 1/3] netdev-dummy: Support multiple IP addresses

2023-02-20 Thread Simon Horman
} 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 addresses to be very long else we wouldn't use a list at al

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

2023-02-20 Thread Simon Horman
it 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/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 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 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

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 e

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

2023-02-10 Thread Simon Horman
4c44c9a95 ("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] 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 > --- > >

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-

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 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-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

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
delay 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 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 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 06/11] test: tc does not support conntrack timeout, skip the related test.

2023-02-08 Thread Simon Horman
he 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 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 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 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 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 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] [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] [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 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 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 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] [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

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

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 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 v6] conntrack: Properly unNAT inner header of related traffic

2023-02-07 Thread Simon Horman
p too :) 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 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 > --- >

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 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

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

2023-02-04 Thread Simon Horman
hould 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 v1 2/3] genetlink: Use string_is_valid() helper

2023-02-04 Thread Simon Horman
hould 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 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 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 > >> tests

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 ... >

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 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] 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

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

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

[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

[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 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 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

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 > > Patch 2/

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: > >>> > >>&

[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

[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 Simon Horman

[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

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 > >&

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 >

<    4   5   6   7   8   9   10   11   12   13   >