Re: [ovs-dev] [RFC 1/3] ofproto: change type of n_handlers and n_revalidators

2021-05-28 Thread Flavio Leitner
On Fri, Apr 30, 2021 at 11:31:27AM -0400, Mark Gray wrote: > 'n_handlers' and 'n_revalidators' are declared as type 'size_t'. > However, dpif_handlers_set() requires parameter 'n_handlers' as > type 'uint32_t'. This patch fixes this type mismatch. The change looks good, but I didn't understand the

Re: [ovs-dev] [RFC 2/3] dpif-netlink: fix report_loss() message

2021-05-28 Thread Flavio Leitner
On Fri, Apr 30, 2021 at 11:31:28AM -0400, Mark Gray wrote: > Signed-off-by: Mark Gray This looks like a bug fix for this commit: 1579cf677fcb dpif-linux: Implement the API functions to allow multiple ... If you agree, please add the Fixes: tag. fbl > --- > lib/dpif-netlink.c | 4 ++-- > 1 fil

Re: [ovs-dev] [RFC net-next] openvswitch: Introduce per-cpu upcall dispatch

2021-05-28 Thread Flavio Leitner
Hi Mark, I think this patch is going in the right direction but there are some points that I think we should address. See below. On Fri, Apr 30, 2021 at 11:33:25AM -0400, Mark Gray wrote: > The Open vSwitch kernel module uses the upcall mechanism to send > packets from kernel space to user spac

[ovs-dev] [PATCH ovn 4/4] ovn-controller: Fix incremental processing for logical port references.

2021-05-28 Thread Han Zhou
If a lflow has an lport name in the match, but when the lflow is processed the port-binding is not seen by ovn-controller, the corresponding openflow will not be created. Later if the port-binding is created/monitored by ovn-controller, the lflow is not reprocessed because the lflow didn't change a

[ovs-dev] [PATCH ovn 2/4] ovn-northd: Remove lflow_add_unique.

2021-05-28 Thread Han Zhou
This patch removes the workaround when adding multicast group related lflows, because the multicast group dependency problem is fixed in ovn-controller in the previous commit. This patch also removes the UniqueFlow/AnnotatedFlow usage in northd DDlog implementation for the same reason. Signed-off

[ovs-dev] [PATCH ovn 3/4] ovn-controller: Always monitor all logical datapath groups.

2021-05-28 Thread Han Zhou
Always monitor all logical datapath groups. Otherwise, DPG updates may be received *after* the lflows using it are seen by ovn-controller. Since the number of DPGs are relatively small, we monitor all DPGs to avoid the unnecessarily extra control plane round trip for the lflows to be processed. Si

[ovs-dev] [PATCH ovn 1/4] ovn-controller: Fix incremental processing for multicast group dependency.

2021-05-28 Thread Han Zhou
Multicast group changes are handled for physical flows in I-P, but not handled for logical flows. Although logical flow doesn't care about the content of a multicast group, the existance of it matters for logical flow processing. If the multicast group is not found when the logical flow is processe

[ovs-dev] [PATCH ovn 0/4] Fix ovn-controller I-P for multicast groups and lport changes

2021-05-28 Thread Han Zhou
The series fixes incremental processing for missing dependency handling for multicast group and logical port binding changes when computing logical flows. It also removes the workaround in northd that was required due to the missing dependency handling. In addition, the fix also allows us to monito

Re: [ovs-dev] [PATCH 2/2] ofproto: Fix potential NULL dereference in ofproto_ct_*_zone_timeout_policy().

2021-05-28 Thread Paolo Valerio
Dumitru Ceara writes: > Spotted during code inspection. > > Fixes: 993cae678bca ("ofproto-dpif: Consume CT_Zone, and CT_Timeout_Policy > tables") > Signed-off-by: Dumitru Ceara > --- Acked-by: Paolo Valerio ___ dev mailing list d...@openvswitch.org

Re: [ovs-dev] [PATCH 1/2] ofproto: Fix potential NULL dereference in ofproto_get_datapath_cap().

2021-05-28 Thread Paolo Valerio
Dumitru Ceara writes: > Reproducer: > ovs-vsctl \ > -- add-br br \ > -- set bridge br datapath-type=foo \ > -- --id=@m create Datapath datapath_version=0 'capabilities={}' \ > -- set Open_vSwitch . datapaths:"foo"=@m > > Fixes: 27501802d09f ("ofproto-dpif: Expose datapath capabi

[ovs-dev] [PATCH ovn] northd: Add support for DHCP Option 12 (Hostname)

2021-05-28 Thread Vladislav Odintsov
DHCP Option Hostname is a per-Logical_Switch_Port property, configured in Logical_Switch_Port's options:hostname field. It is used if DHCPv4 is enabled for this LSP. Signed-off-by: Vladislav Odintsov --- The implementation for ovn-northd-ddlog is absent, it needs help from somebody, who's familia

Re: [ovs-dev] [PATCH ovn] controller-vtep: fix mmr and physical locators create/update

2021-05-28 Thread Odintsov Vladislav
I've posted a new version of this patch with requested changes: https://patchwork.ozlabs.org/project/ovn/patch/20210528082105.70086-1-odiv...@gmail.com/ Regards, Vladislav Odintsov On 27.05.2021, 23:00, "dev on behalf of 0-day Robot" wrote: Bleep bloop. Greetings Vladislav Odintsov, I

[ovs-dev] [PATCH v2 ovn] ovn-controller-vtep: Fix MMR create/update

2021-05-28 Thread Vladislav Odintsov
Before this patch ovn-controller-vtep created Mcast_Macs_Remote record for each Port Binding in the ovn Logical Switch, to which vtep Logical Switch was attached. With this patch there is only one Mcast_Macs_Remote record per datapath. Physical Locator set is created every time when physical locato