Re: [ovs-dev] [PATCH v3 3/3] dpif-netlink: Remove redundant null assignment

2022-11-04 Thread Justin Pettit
I assume someone else will pull this in as part of the patch set, so: Acked-by: Justin Pettit Ilya, let me know if you'd like me to merge it, though. --Justin > On Nov 4, 2022, at 6:06 AM, Roi Dayan wrote: > > The assignment of the features pointer is not doing > anything and can be

[ovs-dev] [PATCH ovn 2/2] northd: Add I-P for syncing SB address sets.

2022-11-04 Thread numans
From: Numan Siddique Updates to NB address sets and NB port groups are handled incrementally for syncing the SB address sets. This patch doesn't support syncing the SB Address sets for the router load balancer vips incrementally, instead a full recompute is triggered for any changes to NB load

[ovs-dev] [PATCH ovn 1/2] northd IP: Add a new engine node 'en_sb_sync' to sync SB tables.

2022-11-04 Thread numans
From: Numan Siddique A sub-engine node 'en_address_set_sync' is added with-in the 'en_sb_sync' node to sync the Address_Set table in the SB database. To start with, it falls back to full recompute all the time. Upcoming patch will add the incremental processing support to sync the SB

Re: [ovs-dev] [ovs-build] |fail| pw1699340 dpif-netdev: fix flow allocation size

2022-11-04 Thread Peng He
I've rerun the test 150 in my VM. it runs successfully. Looks like this is a flaky uint test. Peng He 于2022年11月4日周五 17:05写道: > I've rerun the test 150 in my VM. it runs successfully. > Looks like this is a flaky uint test. > > 于2022年11月4日周五 16:24写道: > >> Test-Label: intel-ovs-compilation >>

Re: [ovs-dev] [PATCH ovn v2 2/5] Add NB and SB Template_Var tables.

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Dumitru Ceara, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: ERROR: Inappropriate bracing around statement #314 FILE: northd/template-var.h:36:

Re: [ovs-dev] [PATCH ovn v2 1/5] lflow: Factor out the lflow reference handling code into a new module.

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Dumitru Ceara, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: ERROR: Inappropriate bracing around statement #1187 FILE: lib/objdep.h:52: HMAP_FOR_EACH

Re: [ovs-dev] [PATCH ovn] ci: Update jobs to use numbers instead of test flags

2022-11-04 Thread Dumitru Ceara
On 11/4/22 22:45, Han Zhou wrote: > On Wed, Nov 2, 2022 at 7:46 AM Dumitru Ceara wrote: >> >> On 11/2/22 15:35, Ales Musil wrote: >>> To prevent some jobs not running after CI scripts updates >>> use numbers instead of the test flags. This still allows us >>> to use parallelization, but without

Re: [ovs-dev] [PATCH ovn 2/5] Add NB and SB Template_Var tables.

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Dumitru Ceara, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: ERROR: Inappropriate bracing around statement #314 FILE: northd/template-var.h:36:

Re: [ovs-dev] [PATCH ovn 1/5] lflow: Factor out the lflow reference handling code into a new module.

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Dumitru Ceara, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: ERROR: Inappropriate bracing around statement #1187 FILE: lib/objdep.h:52: HMAP_FOR_EACH

[ovs-dev] [PATCH ovn v2 5/5] tutorial: Add scripts to simulate node-port ovn-k8s services.

2022-11-04 Thread Dumitru Ceara
In a sandbox run: $ ./ovn-lb-benchmark.sh to simulate an ovn-k8s-like topology with N nodes, VIPS NodePort services applied to all nodes. Each service has BACKENDS backends. If USE_TEMPLATES is "yes" then the configuration will be optimized to use Chassis_Template_Vars. Otherwise it will

[ovs-dev] [PATCH ovn v2 4/5] lb: Support using templates.

2022-11-04 Thread Dumitru Ceara
Allow the CMS to configure template LBs. The following configurations are supported: - VIPs of the form: ^vip_variable[:^port_variable|:port] - Backends of the form: ^backendip_variable1[:^port_variable1|:port],^backendip_variable2[:^port_variable2|:port] OR

[ovs-dev] [PATCH ovn v2 3/5] controller: Add support for templated actions and matches.

2022-11-04 Thread Dumitru Ceara
Expand SB.Template_Var records in two stages: 1. first expand them to local values in match/action strings 2. then reparse the expanded strings For the case when a lflow references a Chassis_Template_Var also track references (similar to the ones maintained for multicast groups, address sets,

[ovs-dev] [PATCH ovn v2 2/5] Add NB and SB Template_Var tables.

2022-11-04 Thread Dumitru Ceara
Propagate the contents of the NB table to the Southbound. Signed-off-by: Dumitru Ceara --- Note: - ovn-trace doesn't support template variables (yet). V2: - Fixed TEMPLATE_VAR_TABLE_INITIALIZER definition so that GCC doesn't complain anymore. - Addressed Han's comments: - Rename tables to

[ovs-dev] [PATCH ovn v2 1/5] lflow: Factor out the lflow reference handling code into a new module.

2022-11-04 Thread Dumitru Ceara
This makes it easier to have an overview of what the code does and at the same time it allows multiple users to define and manage "resource <-> object" dependencies. Acked-by: Han Zhou Signed-off-by: Dumitru Ceara --- V2: - Addressed Mark's comments: - Fixed typos in comments in objdep.h. -

[ovs-dev] [PATCH v2 ovn 0/5] Add OVN component templates.

2022-11-04 Thread Dumitru Ceara
Sometimes network components are compute node-specific. Sometimes such components are replicated, almost identically, for multiple nodes in the cluster. One such example is the case of Kubernetes NodePort services which translate (in the ovn-kubernetes case) to Load_Balancer objects being

Re: [ovs-dev] [PATCH ovn 0/5] Add OVN component templates.

2022-11-04 Thread Dumitru Ceara
On 11/4/22 23:06, Dumitru Ceara wrote: > Sometimes network components are compute node-specific. Sometimes such > components are replicated, almost identically, for multiple nodes > in the cluster. > > One such example is the case of Kubernetes NodePort services which > translate (in the

[ovs-dev] [PATCH ovn 4/5] lb: Support using templates.

2022-11-04 Thread Dumitru Ceara
Allow the CMS to configure template LBs. The following configurations are supported: - VIPs of the form: ^vip_variable[:^port_variable|:port] - Backends of the form: ^backendip_variable1[:^port_variable1|:port],^backendip_variable2[:^port_variable2|:port] OR

[ovs-dev] [PATCH ovn 5/5] tutorial: Add scripts to simulate node-port ovn-k8s services.

2022-11-04 Thread Dumitru Ceara
In a sandbox run: $ ./ovn-lb-benchmark.sh to simulate an ovn-k8s-like topology with N nodes, VIPS NodePort services applied to all nodes. Each service has BACKENDS backends. If USE_TEMPLATES is "yes" then the configuration will be optimized to use Chassis_Template_Vars. Otherwise it will

[ovs-dev] [PATCH ovn 3/5] controller: Add support for templated actions and matches.

2022-11-04 Thread Dumitru Ceara
Expand SB.Template_Var records in two stages: 1. first expand them to local values in match/action strings 2. then reparse the expanded strings For the case when a lflow references a Chassis_Template_Var also track references (similar to the ones maintained for multicast groups, address sets,

[ovs-dev] [PATCH ovn 2/5] Add NB and SB Template_Var tables.

2022-11-04 Thread Dumitru Ceara
Propagate the contents of the NB table to the Southbound. Signed-off-by: Dumitru Ceara --- Note: - ovn-trace doesn't support template variables (yet). V2: - Fixed TEMPLATE_VAR_TABLE_INITIALIZER definition so that GCC doesn't complain anymore. - Addressed Han's comments: - Rename tables to

[ovs-dev] [PATCH ovn 1/5] lflow: Factor out the lflow reference handling code into a new module.

2022-11-04 Thread Dumitru Ceara
This makes it easier to have an overview of what the code does and at the same time it allows multiple users to define and manage "resource <-> object" dependencies. Acked-by: Han Zhou Signed-off-by: Dumitru Ceara --- V2: - Addressed Mark's comments: - Fixed typos in comments in objdep.h. -

[ovs-dev] [PATCH ovn 0/5] Add OVN component templates.

2022-11-04 Thread Dumitru Ceara
Sometimes network components are compute node-specific. Sometimes such components are replicated, almost identically, for multiple nodes in the cluster. One such example is the case of Kubernetes NodePort services which translate (in the ovn-kubernetes case) to Load_Balancer objects being

[ovs-dev] [PATCH v3] ovs-thread: Detect changes in number of cpus

2022-11-04 Thread Adrian Moreno
Currently, things like the number of handler and revalidator threads are calculated based on the number of available CPUs. However, this number is considered static and only calculated once, hence ignoring events such as cpus being hotplugged, switched on/off or affinity mask changing. On the

Re: [ovs-dev] [PATCH] ovs-thread: Detect changes in number of cpus

2022-11-04 Thread Adrian Moreno
On 11/4/22 21:47, Mike Pattrick wrote: On Fri, Nov 4, 2022 at 11:45 AM Adrian Moreno wrote: Currently, things like the number of handler and revalidator threads are calculated based on the number of available CPUs. However, this number is considered static and only calculated once, hence

Re: [ovs-dev] [PATCH ovn] ci: Update jobs to use numbers instead of test flags

2022-11-04 Thread Han Zhou
On Wed, Nov 2, 2022 at 7:46 AM Dumitru Ceara wrote: > > On 11/2/22 15:35, Ales Musil wrote: > > To prevent some jobs not running after CI scripts updates > > use numbers instead of the test flags. This still allows us > > to use parallelization, but without worrying about skipping > > some tests

Re: [ovs-dev] [PATCH 2/2] ovsdb/transaction.c: Fix weak reference leak.

2022-11-04 Thread Han Zhou
On Fri, Nov 4, 2022 at 10:22 AM Ilya Maximets wrote: > > On 11/2/22 05:09, Han Zhou wrote: > > When a row is deleted, if the row has weak references to other rows, the > > weak reference nodes attached to the destination rows (through > > weak->dst_node hmap) are not destroyed. > > > > Deleting

Re: [ovs-dev] [PATCH] ovs-thread: Detect changes in number of cpus

2022-11-04 Thread Mike Pattrick
On Fri, Nov 4, 2022 at 11:45 AM Adrian Moreno wrote: > > Currently, things like the number of handler and revalidator threads are > calculated based on the number of available CPUs. However, this number > is considered static and only calculated once, hence ignoring events > such as cpus being

Re: [ovs-dev] [OVN v13] OVN - Add Support for Remote Port Mirroring

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Abhiram R N, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line lacks whitespace around operator #2593 FILE: utilities/ovn-nbctl.c:275:

[ovs-dev] [OVN v13] OVN - Add Support for Remote Port Mirroring

2022-11-04 Thread Abhiram R N
Mirror creation just creates the mirror. The lsp-attach-mirror triggers the sequence to create Mirror in OVS DB on compute node. OVS already supports Port Mirroring. Note: This is targeted to mirror to destinations anywhere outside the cluster where the analyser resides and it need not be an OVN

Re: [ovs-dev] [PATCH 2/2] ovsdb/transaction.c: Fix weak reference leak.

2022-11-04 Thread Ilya Maximets
On 11/2/22 05:09, Han Zhou wrote: > When a row is deleted, if the row has weak references to other rows, the > weak reference nodes attached to the destination rows (through > weak->dst_node hmap) are not destroyed. > > Deleting weak references is properly handled when a row is modified. The >

Re: [ovs-dev] [PATCH ovn v5 3/3] northd: add drop sampling

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Adrian Moreno, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: ERROR: Inappropriate spacing around cast #77 FILE: controller/ovn-controller.c:3200:

Re: [ovs-dev] [PATCH ovn v4 2/3] northd: make default drops explicit

2022-11-04 Thread Adrian Moreno
On 11/1/22 18:08, Numan Siddique wrote: On Mon, Oct 17, 2022 at 9:15 AM Adrian Moreno wrote: By default, traffic that doesn't match any configured flow will be dropped. But having that behavior implicit makes those drops more difficult to visualize. Make default drops explicit both as

[ovs-dev] [PATCH ovn v5 3/3] northd: add drop sampling

2022-11-04 Thread Adrian Moreno
Two new options are added to NB_Global table that enable drop sampling by specifying the collector_set_id and the obs_domain_id of the sample actions added to all drop flows. For drops coming from an lflow, the sample has the following fields: - obs_domain_id (32-bit): obs_domain_id << 8 |

[ovs-dev] [PATCH ovn v5 2/3] northd: make default drops explicit

2022-11-04 Thread Adrian Moreno
By default, traffic that doesn't match any configured flow will be dropped. But having that behavior implicit makes those drops more difficult to visualize. Make default drops explicit both as default logical flows and as default openflow flows (e.g: for physical tables). Signed-off-by: Adrian

[ovs-dev] [PATCH ovn v5 1/3] actions: add sample action

2022-11-04 Thread Adrian Moreno
sample ovn action encodes into the OFPACT_SAMPLE ovs action. OVN action allows the following parameters: - obs_domain_id: 8-bit integer that identifies the sampling application. This value will be combined with the datapath's tunnel_id to form the final observation_domain_id that will be

[ovs-dev] [PATCH ovn v5 0/3] Add ovn drop debugging

2022-11-04 Thread Adrian Moreno
Very often when troubleshooting networking issues in an OVN cluster one would like to know if any packet (or a specific one) is being dropped by OVN. Currently, this cannot be known because of two main reasons: 1 - Implicit drops: Some tables do not have a default action (priority=0, match=1).

[ovs-dev] [PATCH] ovs-thread: Detect changes in number of cpus

2022-11-04 Thread Adrian Moreno
Currently, things like the number of handler and revalidator threads are calculated based on the number of available CPUs. However, this number is considered static and only calculated once, hence ignoring events such as cpus being hotplugged, switched on/off or affinity mask changing. On the

[ovs-dev] [PATCH] rculist: Fix iteration macros.

2022-11-04 Thread Ilya Maximets
Some macros for rculist have no users and there are no unit tests specific to that library as well, so broken code wasn't spotted while updating to multi-variable iterators. Fixing multiple problems like missing commas, parenthesis, incorrect variable and macro names. Fixes: d293965d7b06

Re: [ovs-dev] [PATCH ovn] northd: Refactor build_lrouter_nat_flows_for_lb function

2022-11-04 Thread Ales Musil
On Fri, Nov 4, 2022 at 2:57 PM Mark Michelson wrote: > Hi Ales, > Hi Mark, thank you for the review. > > On 10/20/22 10:14, Ales Musil wrote: > > To avoid make it easier to add flow to this stage refactor > > the function, this has also the benefit that we should > > see fewer allocations due

Re: [ovs-dev] [PATCH ovn] northd: Refactor build_lrouter_nat_flows_for_lb function

2022-11-04 Thread Mark Michelson
Hi Ales, On 10/20/22 10:14, Ales Musil wrote: To avoid make it easier to add flow to this stage refactor the function, this has also the benefit that we should see fewer allocations due to rearrange how we create flows and how do we manipulate with match string. This commit message was kind

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

2022-11-04 Thread Hemanth Aramadaka via dev
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 sends the fragments to ovs, only the first fragment will contain the L4 header.

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

2022-11-04 Thread Ilya Maximets
On 11/4/22 13:58, 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 sends the fragments to

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

2022-11-04 Thread Ilya Maximets
On 11/4/22 14:03, Hemanth Aramadaka wrote: > Hi , > > Thanks for the review and comments. I have addressed the comments and raised > the review request again. > > Ran these tests (tunnel_push_pop - packet_out and tunnel_push_pop - > packet_out debug_slow ). I am attaching the test results

[ovs-dev] [PATCH ovn] binding: add the capability to apply QoS for lsp

2022-11-04 Thread Lorenzo Bianconi
Introduce the capability to apply QoS rules for logical switch ports claimed by ovn-controller. Rely on shash instead of sset for egress_ifaces. Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=2129742 Signed-off-by: Lorenzo Bianconi --- controller/binding.c| 78

[ovs-dev] [PATCH v3 3/3] dpif-netlink: Remove redundant null assignment

2022-11-04 Thread Roi Dayan via dev
The assignment of the features pointer is not doing anything and can be removed. CC: Justin Pettit Signed-off-by: Roi Dayan --- Notes: v3: - fix get meter features commit to just remove redundant null assignment. v2: - move memset from wrapper call lib/dpif-netlink.c | 1

[ovs-dev] [PATCH v3 2/3] tc: Fix coverity dereference null return value

2022-11-04 Thread Roi Dayan via dev
CID 550702 (#1 of 1): Dereference null return value (NULL_RETURNS) 7. dereference: Dereferencing a pointer that might be NULL ex_type when calling nl_attr_get_u16. Signed-off-by: Roi Dayan --- lib/tc.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/tc.c b/lib/tc.c index

[ovs-dev] [PATCH v3 1/3] tc: Pass tun_metadata by reference

2022-11-04 Thread Roi Dayan via dev
Fix coverity big parameter passed by value CID 549858 (#1 of 1): Big parameter passed by value (PASS_BY_VALUE) pass_by_value: Passing parameter metadata of type struct tun_metadata (size 272 bytes) by value, which exceeds the medium threshold of 256 bytes Signed-off-by: Roi Dayan --- lib/tc.c

[ovs-dev] [PATCH v3 0/3] Small fixes found with coverity tool

2022-11-04 Thread Roi Dayan via dev
Hi, The following are fixes to small issues found with coverity tool. Thanks, Roi Roi Dayan (3): tc: Pass tun_metadata by reference tc: Fix coverity dereference null return value dpif-netlink: Remove redundant null assignment lib/dpif-netlink.c | 1 - lib/tc.c | 24

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

2022-11-04 Thread Hemanth Aramadaka via dev
Hi , Thanks for the review and comments. I have addressed the comments and raised the review request again. Ran these tests (tunnel_push_pop - packet_out and tunnel_push_pop - packet_out debug_slow ). I am attaching the test results as well here. R620-10-CSSCI-5:/home/sdn/zarahem/ovs #

Re: [ovs-dev] [PATCH v2 3/3] dpif-netlink: Move meter features reset from wrapper

2022-11-04 Thread Roi Dayan via dev
On 04/11/2022 0:48, Justin Pettit wrote: > >> On Nov 3, 2022, at 3:38 PM, Ilya Maximets wrote: >> >> On 11/3/22 09:47, Roi Dayan wrote: >>> >>> diff --git a/lib/dpif-netlink.c b/lib/dpif-netlink.c >>> index a620a6ec52dd..2bdd2137af36 100644 >>> --- a/lib/dpif-netlink.c >>> +++

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

2022-11-04 Thread Hemanth Aramadaka via dev
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 sends the fragments to ovs, only the first fragment will contain the L4 header.

Re: [ovs-dev] [PATCH ovn v3 4/4] pinctrl: Send RARPs for external ipv6 interfaces

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Felix Hüttner, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: ERROR: Author Felix Hüttner needs to sign off. WARNING: Unexpected sign-offs from developers

Re: [ovs-dev] [PATCH ovn v3 3/4] ovn-macros: support ipv6 in ovn_attach

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Felix Hüttner, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: ERROR: Author Felix Hüttner needs to sign off. WARNING: Unexpected sign-offs from developers

Re: [ovs-dev] [PATCH ovn v3 2/4] northd: handle own rarps like garps

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Felix Hüttner, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: ERROR: Author Felix Hüttner needs to sign off. WARNING: Unexpected sign-offs from developers

Re: [ovs-dev] [PATCH ovn v3 1/4] logical-fields: add rarp fields

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Felix Hüttner, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: ERROR: Author Felix Hüttner needs to sign off. WARNING: Unexpected sign-offs from developers

Re: [ovs-dev] [PATCH ovn branch-22.03 8/8] northd: Properly check the wakeup time in MAC banding aging

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Ales Musil, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Unexpected sign-offs from developers who are not authors or co-authors or committers:

Re: [ovs-dev] [PATCH ovn branch-22.03 7/8] northd: Increase the MAC binding removal delay

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Ales Musil, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Unexpected sign-offs from developers who are not authors or co-authors or committers:

Re: [ovs-dev] [PATCH ovn branch-22.03 5/8] northd: Add config to limit bulk removal of MAC binding

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Ales Musil, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line is 84 characters long (recommended limit is 79) #128 FILE: ovn-nb.xml:166:

Re: [ovs-dev] [PATCH ovn branch-22.03 4/8] northd: Add MAC binding aging mechanism

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Ales Musil, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Comment with 'xxx' marker #99 FILE: northd/inc-proc-northd.c:222: /* XXX: The

[ovs-dev] [PATCH ovn v3 4/4] pinctrl: Send RARPs for external ipv6 interfaces

2022-11-04 Thread Felix Hüttner via dev
previously garps/rarps were only sent for NAT IPs if these had an ipv4 address attached. For lsp's on gateway routers that do not have an ipv4 address assigned (e.g. if they are ipv6 only) no rarps where send out. This causes traffic outages when changing the priority of a gateway chassis as the

[ovs-dev] [PATCH ovn v3 2/4] northd: handle own rarps like garps

2022-11-04 Thread Felix Hüttner via dev
Previously graceful rarps sent from ovn-controller were handled as normal packets and flooded to other routers. As the other routers should already have that information, we can skip flooding (just like it is done for GARPs already) and thereby mitigate ovs refusing to send the packet because of

[ovs-dev] [PATCH ovn v3 3/4] ovn-macros: support ipv6 in ovn_attach

2022-11-04 Thread Felix Hüttner via dev
in order to easily add future ipv6 test cases the common `ovn_attach` function should also support ipv6 addresses. Acked-by: Numan Siddique Signed-off-by: Felix Huettner --- tests/ovn-macros.at | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/ovn-macros.at

[ovs-dev] [PATCH ovn v3 1/4] logical-fields: add rarp fields

2022-11-04 Thread Felix Hüttner via dev
We need to be able to handle rarp fields in order to ensure we can handle rarp messages we send ourselves. This will be used by the next patch in the series. Acked-by: Numan Siddique Signed-off-by: Felix Huettner --- lib/logical-fields.c | 8 lib/ovn-util.c | 2 +- ovn-sb.xml

[ovs-dev] [PATCH ovn v3 0/4] Send Rarps for ipv6 router lsp

2022-11-04 Thread Felix Hüttner via dev
previously garps/rarps where only sent for "external" lsp's if these had an ipv4 address attached. For lsp's on gateway routers that do not have an ipv4 address assigned (e.g. if they are ipv6 only) no rarps were send out. This causes traffic outages when changing the priority of a gateway

[ovs-dev] [PATCH ovn branch-22.03 8/8] northd: Properly check the wakeup time in MAC banding aging

2022-11-04 Thread Ales Musil
We shouldn't run the MAC binding aging if the waker did not expire. This wouldn't cause any issue if the bulk removal limit is not configured. When the limit is configured and hit there will be some MAC bindings expired, just waiting for the bulk removal delay. If something wakes up the aging run

[ovs-dev] [PATCH ovn branch-22.03 7/8] northd: Increase the MAC binding removal delay

2022-11-04 Thread Ales Musil
Reported-at: https://bugzilla.redhat.com/2084668 Signed-off-by: Ales Musil Acked-by: Dumitru Ceara Signed-off-by: Mark Michelson --- northd/mac-binding-aging.c | 2 +- ovn-nb.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/northd/mac-binding-aging.c

[ovs-dev] [PATCH ovn branch-22.03 6/8] northd, controller: Add MAC binding timestamp feature indication

2022-11-04 Thread Ales Musil
It can happen that northd and SB DB are updated before ovn-controller in that case the new MAC binding would be added with timestamp=0. In combination with enabled MAC binding aging, the affected rows would be deleted over and over until the controller is upgraded. To prevent the before mentioned

[ovs-dev] [PATCH ovn branch-22.03 3/8] northd: Move struct ovn_datapath and related structs to northd.h

2022-11-04 Thread Ales Musil
The struct ovn_datapath could not be used outside the northd.c move it to northd.h that it can be used by other .c files later on. Reported-at: https://bugzilla.redhat.com/2084668 Acked-by: Dumitru Ceara Acked-by: Mark Michelson Acked-by: Han Zhou Signed-off-by: Ales Musil ---

[ovs-dev] [PATCH ovn branch-22.03 4/8] northd: Add MAC binding aging mechanism

2022-11-04 Thread Ales Musil
Add MAC binding aging mechanism, that utilizes the timestamp column of MAC_Binding table. When the MAC binding exceeds the threshold it is removed from SB DB, this is postponed only in case we receive update ARP with update to MAC address. The threshold is configurable via option

[ovs-dev] [PATCH ovn branch-22.03 5/8] northd: Add config to limit bulk removal of MAC binding

2022-11-04 Thread Ales Musil
Add configuration option into NB global table called "mac_binding_removal_limit" defaulting to 0. This option allows to limit number of MAC bindings that can be removed by the aging mechanism in a single transaction. The 0 means that the mechanism is disabled. If the limit is reached next removal

[ovs-dev] [PATCH ovn branch-22.03 2/8] controller: Add mac-binding-index.c/.h files

2022-11-04 Thread Ales Musil
Add helper source file for creating index over MAC binding table. Reported-at: https://bugzilla.redhat.com/2084668 Acked-by: Dumitru Ceara Acked-by: Mark Michelson Acked-by: Han Zhou Signed-off-by: Ales Musil --- controller/ovn-controller.c | 8 +++- lib/automake.mk | 2 ++

[ovs-dev] [PATCH ovn branch-22.03 1/8] northd, controller: Add timestamp column to MAC_Binding table

2022-11-04 Thread Ales Musil
The new timestamp column in MAC_Binding is populated with current time whenever the row is created or the MAC address is updated. This can be utilized by MAC binding aging mechanism, when we can check if enough time has passed since the creation/update. Reported-at:

Re: [ovs-dev] [PATCH ovn v2 2/2] northd: Allow related traffic through LB

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Ales Musil, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line is 89 characters long (recommended limit is 79) #108 FILE:

Re: [ovs-dev] [PATCH ovn branch-22.06 v2 8/8] northd: Properly check the wakeup time in MAC banding aging

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Ales Musil, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Unexpected sign-offs from developers who are not authors or co-authors or committers:

Re: [ovs-dev] [PATCH ovn branch-22.06 v2 7/8] northd: Increase the MAC binding removal delay

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Ales Musil, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Unexpected sign-offs from developers who are not authors or co-authors or committers:

Re: [ovs-dev] [PATCH ovn branch-22.06 v2 5/8] northd: Add config to limit bulk removal of MAC binding

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Ales Musil, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line is 84 characters long (recommended limit is 79) #128 FILE: ovn-nb.xml:166:

Re: [ovs-dev] [PATCH ovn branch-22.06 v2 4/8] northd: Add MAC binding aging mechanism

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Ales Musil, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Comment with 'xxx' marker #99 FILE: northd/inc-proc-northd.c:227: /* XXX: The

Re: [ovs-dev] [PATCH ovn v2 1/8] northd, controller: Add timestamp column to MAC_Binding table

2022-11-04 Thread 0-day Robot
Bleep bloop. Greetings Ales Musil, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. git-am: error: Failed to merge in the changes. hint: Use 'git am --show-current-patch=diff' to see the

[ovs-dev] [PATCH ovn v2 2/2] northd: Allow related traffic through LB

2022-11-04 Thread Ales Musil
In order to allow realted traffic use the new action ct_commit_nat, which ensures that the traffic is commited and NATted. In combination with match on ct.rel it allows the related traffic to go through with correct NAT being applied. Reported-at: https://bugzilla.redhat.com/2126083

[ovs-dev] [PATCH ovn v2 1/2] actions: Add new action called ct_commit_nat

2022-11-04 Thread Ales Musil
Add action called ct_commit_nat, that performs NAT while committing the connection. This is useful for related traffic on which we need to perform NAT, mainly ICMP. We need to commit due to design decision of OvS[0]: "Connections identified as rel are separate from the originating connection and

[ovs-dev] [PATCH ovn v2 0/2] Allow related traffic for LB

2022-11-04 Thread Ales Musil
The related traffic wasn't correctly forwarded through the LB, the main issue was that the traffic was not NATted. This series allows the NAT to be applied and the traffic should arrive with correct addresses. --- v2: Add e2e test case. Ales Musil (2): actions: Add new action called

[ovs-dev] [PATCH ovn branch-22.06 v2 8/8] northd: Properly check the wakeup time in MAC banding aging

2022-11-04 Thread Ales Musil
We shouldn't run the MAC binding aging if the waker did not expire. This wouldn't cause any issue if the bulk removal limit is not configured. When the limit is configured and hit there will be some MAC bindings expired, just waiting for the bulk removal delay. If something wakes up the aging run

[ovs-dev] [PATCH ovn branch-22.06 v2 7/8] northd: Increase the MAC binding removal delay

2022-11-04 Thread Ales Musil
Reported-at: https://bugzilla.redhat.com/2084668 Signed-off-by: Ales Musil Acked-by: Dumitru Ceara Signed-off-by: Mark Michelson --- northd/mac-binding-aging.c | 2 +- ovn-nb.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/northd/mac-binding-aging.c

[ovs-dev] [PATCH ovn branch-22.06 v2 6/8] northd, controller: Add MAC binding timestamp feature indication

2022-11-04 Thread Ales Musil
It can happen that northd and SB DB are updated before ovn-controller in that case the new MAC binding would be added with timestamp=0. In combination with enabled MAC binding aging, the affected rows would be deleted over and over until the controller is upgraded. To prevent the before mentioned

[ovs-dev] [PATCH ovn branch-22.06 v2 4/8] northd: Add MAC binding aging mechanism

2022-11-04 Thread Ales Musil
Add MAC binding aging mechanism, that utilizes the timestamp column of MAC_Binding table. When the MAC binding exceeds the threshold it is removed from SB DB, this is postponed only in case we receive update ARP with update to MAC address. The threshold is configurable via option

[ovs-dev] [PATCH ovn branch-22.06 v2 5/8] northd: Add config to limit bulk removal of MAC binding

2022-11-04 Thread Ales Musil
Add configuration option into NB global table called "mac_binding_removal_limit" defaulting to 0. This option allows to limit number of MAC bindings that can be removed by the aging mechanism in a single transaction. The 0 means that the mechanism is disabled. If the limit is reached next removal

[ovs-dev] [PATCH ovn branch-22.06 v2 1/8] northd, controller: Add timestamp column to MAC_Binding table

2022-11-04 Thread Ales Musil
The new timestamp column in MAC_Binding is populated with current time whenever the row is created or the MAC address is updated. This can be utilized by MAC binding aging mechanism, when we can check if enough time has passed since the creation/update. Reported-at:

[ovs-dev] [PATCH ovn branch-22.06 v2 3/8] northd: Move struct ovn_datapath and related structs to northd.h

2022-11-04 Thread Ales Musil
The struct ovn_datapath could not be used outside the northd.c move it to northd.h that it can be used by other .c files later on. Reported-at: https://bugzilla.redhat.com/2084668 Acked-by: Dumitru Ceara Acked-by: Mark Michelson Acked-by: Han Zhou Signed-off-by: Ales Musil ---

[ovs-dev] [PATCH ovn branch-22.06 v2 2/8] controller: Add mac-binding-index.c/.h files

2022-11-04 Thread Ales Musil
Add helper source file for creating index over MAC binding table. Reported-at: https://bugzilla.redhat.com/2084668 Acked-by: Dumitru Ceara Acked-by: Mark Michelson Acked-by: Han Zhou Signed-off-by: Ales Musil --- controller/ovn-controller.c | 8 +++- lib/automake.mk | 2 ++

Re: [ovs-dev] [PATCH ovn v2 1/8] northd, controller: Add timestamp column to MAC_Binding table

2022-11-04 Thread Ales Musil
Oh no it removed the branch-22.06. Sorry for the noise. On Fri, Nov 4, 2022 at 8:57 AM Ales Musil wrote: > The new timestamp column in MAC_Binding is > populated with current time whenever the row is > created or the MAC address is updated. > This can be utilized by MAC binding aging mechanism,

[ovs-dev] [PATCH ovn v2 7/8] northd: Increase the MAC binding removal delay

2022-11-04 Thread Ales Musil
Reported-at: https://bugzilla.redhat.com/2084668 Signed-off-by: Ales Musil Acked-by: Dumitru Ceara Signed-off-by: Mark Michelson --- northd/mac-binding-aging.c | 2 +- ovn-nb.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/northd/mac-binding-aging.c

[ovs-dev] [PATCH ovn v2 8/8] northd: Properly check the wakeup time in MAC banding aging

2022-11-04 Thread Ales Musil
We shouldn't run the MAC binding aging if the waker did not expire. This wouldn't cause any issue if the bulk removal limit is not configured. When the limit is configured and hit there will be some MAC bindings expired, just waiting for the bulk removal delay. If something wakes up the aging run

[ovs-dev] [PATCH ovn v2 6/8] northd, controller: Add MAC binding timestamp feature indication

2022-11-04 Thread Ales Musil
It can happen that northd and SB DB are updated before ovn-controller in that case the new MAC binding would be added with timestamp=0. In combination with enabled MAC binding aging, the affected rows would be deleted over and over until the controller is upgraded. To prevent the before mentioned

[ovs-dev] [PATCH ovn v2 3/8] northd: Move struct ovn_datapath and related structs to northd.h

2022-11-04 Thread Ales Musil
The struct ovn_datapath could not be used outside the northd.c move it to northd.h that it can be used by other .c files later on. Reported-at: https://bugzilla.redhat.com/2084668 Acked-by: Dumitru Ceara Acked-by: Mark Michelson Acked-by: Han Zhou Signed-off-by: Ales Musil ---

[ovs-dev] [PATCH ovn v2 4/8] northd: Add MAC binding aging mechanism

2022-11-04 Thread Ales Musil
Add MAC binding aging mechanism, that utilizes the timestamp column of MAC_Binding table. When the MAC binding exceeds the threshold it is removed from SB DB, this is postponed only in case we receive update ARP with update to MAC address. The threshold is configurable via option

[ovs-dev] [PATCH ovn v2 5/8] northd: Add config to limit bulk removal of MAC binding

2022-11-04 Thread Ales Musil
Add configuration option into NB global table called "mac_binding_removal_limit" defaulting to 0. This option allows to limit number of MAC bindings that can be removed by the aging mechanism in a single transaction. The 0 means that the mechanism is disabled. If the limit is reached next removal

[ovs-dev] [PATCH ovn v2 1/8] northd, controller: Add timestamp column to MAC_Binding table

2022-11-04 Thread Ales Musil
The new timestamp column in MAC_Binding is populated with current time whenever the row is created or the MAC address is updated. This can be utilized by MAC binding aging mechanism, when we can check if enough time has passed since the creation/update. Reported-at:

[ovs-dev] [PATCH ovn v2 2/8] controller: Add mac-binding-index.c/.h files

2022-11-04 Thread Ales Musil
Add helper source file for creating index over MAC binding table. Reported-at: https://bugzilla.redhat.com/2084668 Acked-by: Dumitru Ceara Acked-by: Mark Michelson Acked-by: Han Zhou Signed-off-by: Ales Musil --- controller/ovn-controller.c | 8 +++- lib/automake.mk | 2 ++

[ovs-dev] dpif-netdev: fix flow allocation size

2022-11-04 Thread Peng He
The tail of the struct dp_netdev_flow contains a whole netdev_flow_key struct. We need to first minus the size of netdev_flow_key then add back the real size of this netdev_flow_key. Signed-off-by: Peng He --- lib/dpif-netdev.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff

[ovs-dev] [PATCH v4] ovs-ofctl:'--bundle' option can be used with OpenFlow 1.3

2022-11-04 Thread yangchang
>From the commit 25070e045e, bundle option can be used with OpenFlow 1.3 Signed-off-by: yangchang Acked-by: Mike Pattrick --- utilities/ovs-ofctl.8.in | 10 +- utilities/ovs-save | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/utilities/ovs-ofctl.8.in

  1   2   >