Re: [ovs-dev] [PATCH 1/2] test-conntrack: add per zone benchmark tool

2024-04-24 Thread 0-day Robot
Bleep bloop. Greetings Felix Huettner, 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: The subject summary should start with a capital. WARNING: The subject summary

[ovs-dev] [PATCH 2/2] conntrack: Key connections by zone.

2024-04-24 Thread Felix Huettner via dev
Currently conntrack uses a single large cmap for all connections stored. This cmap contains all connections for all conntrack zones which are completely separate from each other. By separating each zone to its own cmap we can significantly optimize the performance when using multiple zones. The

[ovs-dev] [PATCH 1/2] test-conntrack: add per zone benchmark tool

2024-04-24 Thread Felix Huettner via dev
The current test-conntrack benchmark command runs with multiple threads against a single conntrack zone. We now add a new benchmark-zones command that allows us to check the performance between multiple zones. We in there test the following scenarios for one zone while other zones also contain

[ovs-dev] [PATCH OVN v6 0/3] DHCP Relay Agent support for overlay subnets.

2024-04-24 Thread Naveen Yerramneni
This patch contains changes to enable DHCP Relay Agent support for overlay subnets. USE CASE: -- - Enable IP address assignment for overlay subnets from the centralized DHCP server present in the underlay network. PREREQUISITES -- - Logical

[ovs-dev] [PATCH OVN v6 1/3] actions: DHCP Relay Agent support for overlay IPv4 subnets.

2024-04-24 Thread Naveen Yerramneni
NEW OVN ACTIONS --- 1. dhcp_relay_req_chk(, ) - This action executes on the source node on which the DHCP request originated. - This action relays the DHCP request coming from client to the server. Relay-ip is used to update GIADDR in the DHCP header. 2.

Re: [ovs-dev] [PATCH] net: openvswitch: Fix Use-After-Free in ovs_ct_exit

2024-04-24 Thread Aaron Conole
Hyunwoo Kim writes: > Since kfree_rcu, which is called in the hlist_for_each_entry_rcu traversal > of ovs_ct_limit_exit, is not part of the RCU read critical section, it > is possible that the RCU grace period will pass during the traversal and > the key will be free. > > To prevent this, it

[ovs-dev] [PATCH v2 1/2] test-conntrack: Add per zone benchmark tool.

2024-04-24 Thread Felix Huettner via dev
The current test-conntrack benchmark command runs with multiple threads against a single conntrack zone. We now add a new benchmark-zones command that allows us to check the performance between multiple zones. We in there test the following scenarios for one zone while other zones also contain

[ovs-dev] [PATCH v2 2/2] conntrack: Key connections by zone.

2024-04-24 Thread Felix Huettner via dev
Currently conntrack uses a single large cmap for all connections stored. This cmap contains all connections for all conntrack zones which are completely separate from each other. By separating each zone to its own cmap we can significantly optimize the performance when using multiple zones. The

Re: [ovs-dev] [PATCH 1/1] netdev-dpdk: Fix possible memory leak configuring VF MAC address.

2024-04-24 Thread Simon Horman
On Tue, Apr 23, 2024 at 11:33:15AM +0100, Simon Horman wrote: > On Wed, Apr 17, 2024 at 10:43:11AM +0300, Roi Dayan wrote: > > > > > > On 16/04/2024 18:48, Simon Horman wrote: > > > On Tue, Apr 16, 2024 at 04:21:48PM +0300, Roi Dayan via dev wrote: > > >> VLOG_WARN_BUF() is allocating memory for

[ovs-dev] [PATCH OVN v6 3/3] northd, tests: DHCP Relay Agent support for overlay IPv4 subnets.

2024-04-24 Thread Naveen Yerramneni
NB SCHEMA CHANGES - 1. New DHCP_Relay table "DHCP_Relay": { "columns": { "name": {"type": "string"}, "servers": {"type": {"key": "string", "min": 0,

[ovs-dev] [PATCH OVN v6 2/3] controller: DHCP Relay Agent support for overlay IPv4 subnets.

2024-04-24 Thread Naveen Yerramneni
Added changes in pinctrl to process DHCP Relay opcodes: - ACTION_OPCODE_DHCP_RELAY_REQ_CHK: For request packets - ACTION_OPCODE_DHCP_RELAY_RESP_CHK: For response packet Signed-off-by: Naveen Yerramneni --- controller/pinctrl.c | 597 ++- lib/ovn-l7.h

Re: [ovs-dev] [PATCH OVN v6 3/3] northd, tests: DHCP Relay Agent support for overlay IPv4 subnets.

2024-04-24 Thread 0-day Robot
References: <20240424095607.129155-4-naveen.yerramn...@nutanix.com> Bleep bloop. Greetings Naveen Yerramneni, 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

[ovs-dev] [RFC ovn] northd: Add bfd and bfd_consumer nodes to I-P engine.

2024-04-24 Thread Lorenzo Bianconi
Introduce bfd and bfd_consumer nodes to northd I-P engine to track bfd connections and northd static_route/policy_route changes. Signed-off-by: Lorenzo Bianconi --- northd/en-lflow.c| 19 +-- northd/en-northd.c | 92 + northd/en-northd.h | 8 ++

Re: [ovs-dev] [PATCH OVN v5 0/4] DHCP Relay Agent support for overlay subnets.

2024-04-24 Thread Naveen Yerramneni
> On 05-Apr-2024, at 9:08 PM, Numan Siddique wrote: > > CAUTION: External Email > > > On Wed, Mar 20, 2024 at 10:40 AM Naveen Yerramneni > wrote: > > > > This patch contains changes to enable DHCP Relay Agent support for > > overlay subnets. > > > > USE CASE: > > -- >

[ovs-dev] [PATCH net-next 8/8] selftests: openvswitch: add psample test

2024-04-24 Thread Adrian Moreno
Add a test to verify sampling packets via psample works. In order to do that, create a subcommand in ovs-dpctl.py to listen to on the psample multicast group and print samples. In order to also test simultaneous sFlow and psample actions, add missing parsing support for "userspace" action (via

[ovs-dev] [PATCH net-next 7/8] selftests: openvswitch: add sample action.

2024-04-24 Thread Adrian Moreno
Add sample action support to ovs-dpctl.py. Signed-off-by: Adrian Moreno --- .../selftests/net/openvswitch/ovs-dpctl.py| 96 ++- 1 file changed, 95 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/openvswitch/ovs-dpctl.py

[ovs-dev] [PATCH net-next 6/8] net:openvswitch: add psample support

2024-04-24 Thread Adrian Moreno
Add support for psample sampling via two new attributes to the OVS_ACTION_ATTR_SAMPLE action. OVS_SAMPLE_ATTR_PSAMPLE_GROUP used to pass an integer psample group_id. OVS_SAMPLE_ATTR_PSAMPLE_COOKIE used to pass a variable-length binary cookie that will be forwared to psample. The maximum length

[ovs-dev] [PATCH net-next 0/8] net: openvswitch: Add sample multicasting.

2024-04-24 Thread Adrian Moreno
** Background ** Currently, OVS supports several packet sampling mechanisms (sFlow, per-bridge IPFIX, per-flow IPFIX). These end up being translated into a userspace action that needs to be handled by ovs-vswitchd's handler threads only to be forwarded to some third party application that will

Re: [ovs-dev] [PATCH 2/2] conntrack: Key connections by zone.

2024-04-24 Thread 0-day Robot
Bleep bloop. Greetings Felix Huettner, 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 #104 FILE: lib/conntrack-private.h:203:

Re: [ovs-dev] selftests: openvswitch: Questions about possible enhancements

2024-04-24 Thread Aaron Conole
Simon Horman writes: > Hi Aaron, Jakub, all, > > I have recently been exercising the Open vSwitch kernel selftests, > using vng, something like this: > > TESTDIR="tools/testing/selftests/net/openvswitch" > > vng -v --run . --user root --cpus 2 \ > --overlay-rwdir

[ovs-dev] [RFC 10/11] ofproto-dpif-psample: Add command to show stats.

2024-04-24 Thread Adrian Moreno
Signed-off-by: Adrian Moreno --- ofproto/ofproto-dpif-psample.c | 59 ++ ofproto/ofproto-dpif-psample.h | 1 + ofproto/ofproto-dpif.c | 1 + 3 files changed, 61 insertions(+) diff --git a/ofproto/ofproto-dpif-psample.c b/ofproto/ofproto-dpif-psample.c

[ovs-dev] [RFC 11/11] tests: Add test for sample offloading.

2024-04-24 Thread Adrian Moreno
Signed-off-by: Adrian Moreno --- tests/system-common-macros.at| 4 +++ tests/system-offloads-traffic.at | 53 2 files changed, 57 insertions(+) diff --git a/tests/system-common-macros.at b/tests/system-common-macros.at index 2a68cd664..860d6a8c9 100644 ---

[ovs-dev] [RFC 08/11] netdev-offload-tc: Add sample support.

2024-04-24 Thread Adrian Moreno
Offload the sample action if it contains psample information by creating a tc "sample" action with the user cookie inside the action's cookie. Avoid using the "sample" action's cookie to store the ufid. Signed-off-by: Adrian Moreno --- include/linux/automake.mk| 5 +-

[ovs-dev] [RFC 09/11] ofproto-dpif-xlate-cache: Add psample to xcache.

2024-04-24 Thread Adrian Moreno
Add a cache entry type for psample objects. Store both the dpif_psample reference and the collector_set_id so we can quickly find the particular exporter. Using that mechanism, account for packet and byte statistics. Signed-off-by: Adrian Moreno --- ofproto/ofproto-dpif-psample.c | 20

[ovs-dev] [RFC 06/11] utilities: Add ovs-psample.

2024-04-24 Thread Adrian Moreno
This simple program reads from psample and prints the packets to stdout. It's useful for quickly collecting sampled packets. Signed-off-by: Adrian Moreno --- Documentation/automake.mk | 1 + Documentation/conf.py | 2 + Documentation/ref/index.rst | 1 +

Re: [ovs-dev] [PATCH net-next] net: openvswitch: Release reference to netdev

2024-04-24 Thread Aaron Conole
Jun Gu writes: > dev_get_by_name will provide a reference on the netdev. So ensure that > the reference of netdev is released after completed. > > Fixes: 2540088b836f ("net: openvswitch: Check vport netdev name") > Signed-off-by: Jun Gu > --- Thanks! Reviewed-by: Aaron Conole

Re: [ovs-dev] selftests: openvswitch: Questions about possible enhancements

2024-04-24 Thread Simon Horman
On Wed, Apr 24, 2024 at 05:44:05PM +0100, Simon Horman wrote: > Hi Aaron, Jakub, all, > > I have recently been exercising the Open vSwitch kernel selftests, > using vng, something like this: > > TESTDIR="tools/testing/selftests/net/openvswitch" > > vng -v --run . --user root

[ovs-dev] [RFC 07/11] netlink-offload-tc: Rename act_cookie->flow_cookie.

2024-04-24 Thread Adrian Moreno
In preparation to allowing certain actions to have a cookie that does not represent the entire flow, rename flower->act_cookie to flower->flow_cookie. This patch does not introduce any behavioral change, it's just a variable renaming. Signed-off-by: Adrian Moreno --- lib/netdev-offload-tc.c |

[ovs-dev] [RFC 05/11] ofproto_dpif_xlate: Use psample for OFP samples.

2024-04-24 Thread Adrian Moreno
When a OFP_SAMPLE action is xlated and a dpif_psample object has been configured (via Flow_Sample_Collector_Set table) with the same collector_set_id, add psample information to the odp sample action. Signed-off-by: Adrian Moreno --- ofproto/ofproto-dpif-psample.c | 20 +

[ovs-dev] [RFC 03/11] ofproto: Add ofproto-dpif-psample.

2024-04-24 Thread Adrian Moreno
Add a new resource in ofproto-dpif and the corresponding API in ofproto_provider.h to represent and change psample configuration. Signed-off-by: Adrian Moreno --- ofproto/automake.mk| 2 + ofproto/ofproto-dpif-psample.c | 167 +

[ovs-dev] [RFC 04/11] vswitchd: Add psample to schema and configure it.

2024-04-24 Thread Adrian Moreno
Add a psample_group field to the Flow Sample Collector Set table and use it to configure the psample ofproto layer. Signed-off-by: Adrian Moreno --- vswitchd/bridge.c | 54 ++ vswitchd/vswitch.ovsschema | 7 - vswitchd/vswitch.xml | 32

[ovs-dev] [RFC 01/11] odp-util: Add support to new psample uAPI.

2024-04-24 Thread Adrian Moreno
The new odp sample attributes allow userspace to specify a group_id and user-defined cookie to be passed down to psample. Add support for parsing and formatting such action. Signed-off-by: Adrian Moreno --- include/linux/openvswitch.h | 49 +--- lib/odp-execute.c| 3 +

[ovs-dev] [RFC 02/11] ofproto_dpif: Check for psample support.

2024-04-24 Thread Adrian Moreno
Only kernel datapath supports psample so check that the datapath is not userspace and that it accepts the new attributes. Signed-off-by: Adrian Moreno --- ofproto/ofproto-dpif.c | 59 ++ ofproto/ofproto-dpif.h | 6 - 2 files changed, 64

[ovs-dev] [RFC 00/11] Add psample support to NXAST_SAMPLE action.

2024-04-24 Thread Adrian Moreno
This is the userspace counterpart of the work being done in the kernel [1]. Sending it as RFC to get some early feedback on the overall solution. ** Problem description ** Currently, OVS supports several observability features, such as per-bridge IPFIX, per-flow IPFIX and sFlow. However, given

[ovs-dev] [PATCH v4 ovn] northd: Fix pmtud for non routed traffic.

2024-04-24 Thread Lorenzo Bianconi
Similar to what is already implemented for routed e/w traffic, introduce pmtud support for e/w traffic between two logical switch ports connected to the same logical switch, but running on two different hypervisors. Acked-by: Mark Michelson Reported-at: https://issues.redhat.com/browse/FDP-524

[ovs-dev] selftests: openvswitch: Questions about possible enhancements

2024-04-24 Thread Simon Horman
Hi Aaron, Jakub, all, I have recently been exercising the Open vSwitch kernel selftests, using vng, something like this: TESTDIR="tools/testing/selftests/net/openvswitch" vng -v --run . --user root --cpus 2 \ --overlay-rwdir "$PWD" -- \ "modprobe

Re: [ovs-dev] [ovs-discuss] [branch-2.16] ovn distributed gateway chassisredirect strip_vlan not taking effect with stt

2024-04-24 Thread aginwala
Update: Seems in upstream 5.4 linux, it only clears vlan_present vs old 4.15 kernel https://github.com/torvalds/linux/blob/v5.4/net/core/skbuff.c#L5408 int skb_vlan_pop(struct sk_buff *skb) { u16 vlan_tci; __be16 vlan_proto; int err; if (likely(skb_vlan_tag_present(skb))) {

Re: [ovs-dev] selftests: openvswitch: Questions about possible enhancements

2024-04-24 Thread Aaron Conole
Benjamin Poirier writes: > On 2024-04-24 18:37 +0100, Simon Horman wrote: >> On Wed, Apr 24, 2024 at 05:44:05PM +0100, Simon Horman wrote: >> > Hi Aaron, Jakub, all, >> > >> > I have recently been exercising the Open vSwitch kernel selftests, >> > using vng, something like this: >> > >> >

Re: [ovs-dev] selftests: openvswitch: Questions about possible enhancements

2024-04-24 Thread Benjamin Poirier
On 2024-04-24 18:37 +0100, Simon Horman wrote: > On Wed, Apr 24, 2024 at 05:44:05PM +0100, Simon Horman wrote: > > Hi Aaron, Jakub, all, > > > > I have recently been exercising the Open vSwitch kernel selftests, > > using vng, something like this: > > > >

Re: [ovs-dev] selftests: openvswitch: Questions about possible enhancements

2024-04-24 Thread Jakub Kicinski
On Wed, 24 Apr 2024 17:44:05 +0100 Simon Horman wrote: > I have recently been exercising the Open vSwitch kernel selftests, > using vng, Speaking of ovs tests, we currently don't run them in CI (and suffer related skips in pmtu.sh) because Amazon Linux doesn't have ovs packaged and building it

Re: [ovs-dev] [PATCH ovn v1 2/2] Add support for overlay provider networks.

2024-04-24 Thread Mark Michelson
Hi Numan, I haven't done a full review of this yet, but I figured I'd give some initial feedback from what I had looked at. At a high level, this is missing documentation in ovn-nb.xml for the new "overlay_provider_network" option. There should also be a NEWS entry for the new

Re: [ovs-dev] [PATCH OVN v5 0/4] DHCP Relay Agent support for overlay subnets.

2024-04-24 Thread Numan Siddique
On Wed, Apr 24, 2024 at 9:21 AM Naveen Yerramneni < naveen.yerramn...@nutanix.com> wrote: > > > > On 05-Apr-2024, at 9:08 PM, Numan Siddique wrote: > > > > CAUTION: External Email > > > > > > On Wed, Mar 20, 2024 at 10:40 AM Naveen Yerramneni < > naveen.yerramn...@nutanix.com> wrote: > > > > > >

Re: [ovs-dev] [PATCH] net: openvswitch: Fix Use-After-Free in ovs_ct_exit

2024-04-24 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Mon, 22 Apr 2024 05:37:17 -0400 you wrote: > Since kfree_rcu, which is called in the hlist_for_each_entry_rcu traversal > of ovs_ct_limit_exit, is not part of the RCU read critical section, it > is possible that the

Re: [ovs-dev] [PATCH OVN v6 1/3] actions: DHCP Relay Agent support for overlay IPv4 subnets.

2024-04-24 Thread Numan Siddique
On Wed, Apr 24, 2024 at 5:56 AM Naveen Yerramneni < naveen.yerramn...@nutanix.com> wrote: > NEW OVN ACTIONS > --- > 1. dhcp_relay_req_chk(, ) >- This action executes on the source node on which the DHCP request > originated. >- This action relays the DHCP request

Re: [ovs-dev] [PATCH OVN v6 2/3] controller: DHCP Relay Agent support for overlay IPv4 subnets.

2024-04-24 Thread Numan Siddique
On Wed, Apr 24, 2024 at 5:57 AM Naveen Yerramneni < naveen.yerramn...@nutanix.com> wrote: > Added changes in pinctrl to process DHCP Relay opcodes: > - ACTION_OPCODE_DHCP_RELAY_REQ_CHK: For request packets > - ACTION_OPCODE_DHCP_RELAY_RESP_CHK: For response packet > > Signed-off-by: Naveen

Re: [ovs-dev] [PATCH ovn v1 2/2] Add support for overlay provider networks.

2024-04-24 Thread Numan Siddique
On Wed, Apr 24, 2024 at 5:14 PM Mark Michelson wrote: > > Hi Numan, > > I haven't done a full review of this yet, but I figured I'd give some > initial feedback from what I had looked at. > > At a high level, this is missing documentation in ovn-nb.xml for the new > "overlay_provider_network"

Re: [ovs-dev] [PATCH net-next] net: openvswitch: Release reference to netdev

2024-04-24 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Tue, 23 Apr 2024 15:37:51 +0800 you wrote: > dev_get_by_name will provide a reference on the netdev. So ensure that > the reference of netdev is released after completed. > > Fixes: 2540088b836f ("net:

Re: [ovs-dev] [PATCH OVN v6 3/3] northd, tests: DHCP Relay Agent support for overlay IPv4 subnets.

2024-04-24 Thread Numan Siddique
On Wed, Apr 24, 2024 at 5:57 AM Naveen Yerramneni < naveen.yerramn...@nutanix.com> wrote: > NB SCHEMA CHANGES > - > 1. New DHCP_Relay table > "DHCP_Relay": { > "columns": { > "name": {"type": "string"}, > "servers": {"type":

[ovs-dev] [PATCH ovn] northd: Add lsp option force_fdb_lookup.

2024-04-24 Thread shibir-basak
This option is applicable only if the lsp is of default 'type' i.e. type=empty_string (which is a VM (or VIF) interface) and the lsp also has 'unknown' addresses configured. If lsp option 'force_fdb_lookup' is set to true, mac addresses of the lsp (if configured) are not installed in the l2 lookup