[ovs-dev] [PATCH ovn] ovn-controller: Add command debug/dump-lflow-conj-ids.

2021-12-02 Thread Han Zhou
Add the debug command in case lflow conjunction ids mapping needs to be checked during trouble shooting. Also use the dump function in test cases. An example output: $ ovn-appctl -t ovn-controller debug/dump-lflow-conj-ids Conjunction IDs allocations: lflow: 4445d4a0-3ca3-4385-a677-c0199d65ea4d,

Re: [ovs-dev] [PATCH net-next v8] net: openvswitch: IPv6: Add IPv6 extension header support

2021-12-02 Thread Pravin Shelar
On Thu, Dec 2, 2021 at 12:20 PM Cpp Code wrote: > > On Wed, Dec 1, 2021 at 11:34 PM Pravin Shelar wrote: > > > > On Wed, Nov 24, 2021 at 11:33 AM Toms Atteka wrote: > > > > > > This change adds a new OpenFlow field OFPXMT_OFB_IPV6_EXTHDR and > > > packets can be filtered using ipv6_ext flag. >

Re: [ovs-dev] [PATCH 1/1] python: Add cooperative_yield() API method to Idl.

2021-12-02 Thread Mike Pattrick
Hello Terry, On Thu, Dec 2, 2021 at 3:52 PM Terry Wilson wrote: > > On Thu, Dec 2, 2021 at 2:38 PM 0-day Robot wrote: > > > > Bleep bloop. Greetings Terry Wilson, I am a robot and I have tried out > > your patch. > > Thanks for your contribution. > > > > I encountered some error that I wasn't

[ovs-dev] [PATCH 2/2] netdev-dpdk: Expose per rxq/txq basic statistics.

2021-12-02 Thread David Marchand
When troubleshooting multiqueue setups, having per queue statistics helps checking packets repartition in rx and tx queues. Per queue statistics are exported by most DPDK drivers (with capability RTE_ETH_DEV_AUTOFILL_QUEUE_XSTATS). OVS only filters DPDK statistics, there is nothing to request in

[ovs-dev] [PATCH 1/2] netdev-dpdk: Fix statistics when changing Rx/Tx queues count.

2021-12-02 Thread David Marchand
When changing number of Rx or Tx queues, per queue basic stats can be renumbered in DPDK ethdev layer [1]. OVS maintains an internal xstats IDs cache that was refreshed when a cached id was not valid anymore (in netdev_dpdk_get_custom_stats) or if a new DPDK port was created. This did not handle

Re: [ovs-dev] [PATCH 1/1] python: Add cooperative_yield() API method to Idl.

2021-12-02 Thread Terry Wilson
On Thu, Dec 2, 2021 at 2:38 PM 0-day Robot wrote: > > Bleep bloop. Greetings Terry Wilson, 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

Re: [ovs-dev] [PATCH 1/1] python: Add cooperative_yield() API method to Idl.

2021-12-02 Thread 0-day Robot
Bleep bloop. Greetings Terry Wilson, 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' to see the failed

[ovs-dev] [PATCH 1/1] python: Add cooperative_yield() API method to Idl.

2021-12-02 Thread Terry Wilson
When using eventlet monkey_patch()'d code, greenthreads can be blocked on connection for several seconds while the database contents are parsed. Eventlet recommends adding a sleep(0) call to cooperatively yield in cpu-bound code. asyncio code has asyncio.sleep(0). This patch adds an API method

[ovs-dev] [PATCH 0/1] python: Backport cooperative_yield addition

2021-12-02 Thread Terry Wilson
This is a backport of the cooperative yield addition. By default it does nothing without a user of the library overriding the method, but it does allow fixing some issues for greenthread users. If possible, I'd like to have it down to 2.13. It's simple enough, it should backport pretty cleanly

Re: [ovs-dev] [PATCH net-next v8] net: openvswitch: IPv6: Add IPv6 extension header support

2021-12-02 Thread Cpp Code
On Wed, Dec 1, 2021 at 11:34 PM Pravin Shelar wrote: > > On Wed, Nov 24, 2021 at 11:33 AM Toms Atteka wrote: > > > > This change adds a new OpenFlow field OFPXMT_OFB_IPV6_EXTHDR and > > packets can be filtered using ipv6_ext flag. > > > > Signed-off-by: Toms Atteka > > --- > >

[ovs-dev] [PATCH] net: openvswitch: Remove redundant if statements

2021-12-02 Thread Xu Wang
The 'if (dev)' statement already move into dev_{put , hold}, so remove redundant if statements. Signed-off-by: Xu Wang --- net/openvswitch/vport-netdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/openvswitch/vport-netdev.c b/net/openvswitch/vport-netdev.c index

Re: [ovs-dev] [PATCH v2 6/8] dpif-netdev: Add configure to enable autovalidator at build time.

2021-12-02 Thread 0-day Robot
Bleep bloop. Greetings Emma Finn, 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 v2 5/8] pmd.at: Add test-cases for ovs-actions commands.

2021-12-02 Thread 0-day Robot
Bleep bloop. Greetings Emma Finn, 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:

[ovs-dev] [PATCH v2 8/8] odp-execute: Add ISA implementation of pop_vlan action.

2021-12-02 Thread Emma Finn
This commit adds the AVX512 implementation of the pop_vlan action. The implementation here is auto-validated by the miniflow extract autovalidator, hence its correctness can be easily tested and verified. Signed-off-by: Emma Finn --- v2: - Refactor to fix build warnings ---

[ovs-dev] [PATCH v2 6/8] dpif-netdev: Add configure to enable autovalidator at build time.

2021-12-02 Thread Emma Finn
From: Kumar Amber This commit adds a new command to allow the user to enable autovalidatior by default at build time thus allowing for runnig unit test by default. $ ./configure --enable-actions-default-autovalidator Signed-off-by: Kumar Amber Signed-off-by: Emma Finn --- acinclude.m4

[ovs-dev] [PATCH v2 7/8] odp-execute: Add ISA implementation of actions.

2021-12-02 Thread Emma Finn
This commit adds the AVX512 implementation of the action functionality. Usage: $ ovs-appctl dpif-netdev/action-impl-set avx512 Signed-off-by: Emma Finn --- lib/automake.mk | 4 ++- lib/dpdk.c| 1 + lib/odp-execute-avx512.c | 69

[ovs-dev] [PATCH v2 5/8] pmd.at: Add test-cases for ovs-actions commands.

2021-12-02 Thread Emma Finn
From: Kumar Amber Added separate test-case for ovs-actions get/set commands: 1023: PMD - ovs-actions configuration The above added tests are to test the commands which are used to either get or set the ovs-actions function pointers to various different implementations like AVX512 or

[ovs-dev] [PATCH v2 3/8] odp-execute: Add auto validation function for actions.

2021-12-02 Thread Emma Finn
This commit introduced the auto-validation function which allows users to compare the batch of packets obtained from different action implementations against the linear action implementation. The autovalidator function can be triggered at runtime using the following command: $ ovs-appctl

[ovs-dev] [PATCH v2 4/8] odp-execute: Add command to switch action implementation.

2021-12-02 Thread Emma Finn
This commit adds a new command to allow the user to switch the active action implementation at runtime. A probe function is executed before switching the implementation, to ensure the CPU is capable of running the ISA required. Usage: $ ovs-appctl dpif-netdev/action-impl-set scalar This commit

[ovs-dev] [PATCH v2 0/8] Actions Infrastructure + Optimizations

2021-12-02 Thread Emma Finn
--- v2: - Fix the CI build issues. --- This patchset introduces actions infrastructure changes which allows the user to choose between different action implementations based on CPU ISA by using different commands. The Infrastructure also provides a way to check the correctness of the ISA

[ovs-dev] [PATCH v2 1/8] odp-execute: Add function pointers to odp-execute for different action implementations.

2021-12-02 Thread Emma Finn
This commit introduces the initial infrastructure required to allow different implementations for OvS actions. The patch introduces action function pointers which allows user to switch between different action implementations available. This will allow for more performance and flexibility so the

[ovs-dev] [PATCH v2 2/8] odp-execute: Add function pointer for pop_vlan action.

2021-12-02 Thread Emma Finn
This commit removes the pop_vlan action from the large switch and creates a separate function for batched processing. A function pointer is also added to call the new batched function for the pop_vlan action. Signed-off-by: Emma Finn --- v2: - Refactor to fix build warnings ---

Re: [ovs-dev] [PATCH] datapath: handle DNAT tuple collision

2021-12-02 Thread Odintsov Vladislav
Thanks for the backport from upstream! May I request backport patch [1] and this patch down to supported branches? Thanks. 1: https://github.com/openvswitch/ovs/commit/6a101a6c8372570a30e0f8edb558c8a69cc80e7d Regards, Vladislav Odintsov On 12 Oct 2021, at 22:30, Ilya Maximets

Re: [ovs-dev] [PATCH v3] dpif-netdev: Call cpuid for x86 isa availability.

2021-12-02 Thread David Marchand
On Tue, Nov 30, 2021 at 5:53 PM Van Haaren, Harry wrote: > > Resolve isa availability in constructors by using a simplified query > > based on cpuid API that comes from the compiler. > > Using constructors instead of an init() time call is interesting, but may not > be what we > always want. For

Re: [ovs-dev] [PATCH v3 2/4] system-dpdk: Use dummy-pmd port for packet injection.

2021-12-02 Thread David Marchand
On Thu, Dec 2, 2021 at 2:56 PM Van Haaren, Harry wrote: > > > -Original Message- > > From: dev On Behalf Of David Marchand > > Sent: Thursday, December 2, 2021 12:21 PM > > To: Amber, Kumar > > Cc: d...@openvswitch.org; i.maxim...@ovn.org; f...@sysclose.org; > >

Re: [ovs-dev] [PATCH v3 2/4] system-dpdk: Use dummy-pmd port for packet injection.

2021-12-02 Thread Van Haaren, Harry
> -Original Message- > From: dev On Behalf Of David Marchand > Sent: Thursday, December 2, 2021 12:21 PM > To: Amber, Kumar > Cc: d...@openvswitch.org; i.maxim...@ovn.org; f...@sysclose.org; > maxime.coque...@redhat.com > Subject: Re: [ovs-dev] [PATCH v3 2/4] system-dpdk: Use dummy-pmd

Re: [ovs-dev] [RFC PATCH 1/1] dpdk: Update to use DPDK v21.11.

2021-12-02 Thread David Marchand
On Thu, Dec 2, 2021 at 1:26 PM Stokes, Ian wrote: > > The rest is the same than dpdk-latest branch (with the experimental > > api build check kept in dpdk-latest only). > > So lgtm, and with those small things from above fixed, feel free to add: > > So the one thing I spotted was the dpdk unit

Re: [ovs-dev] [PATCH] net: openvswitch: Remove redundant if statements

2021-12-02 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (master) by David S. Miller : On Thu, 2 Dec 2021 07:51:48 + you wrote: > The 'if (dev)' statement already move into dev_{put , hold}, so remove > redundant if statements. > > Signed-off-by: Xu Wang > --- >

Re: [ovs-dev] [RFC PATCH 1/1] dpdk: Update to use DPDK v21.11.

2021-12-02 Thread Ilya Maximets
On 12/2/21 13:37, David Marchand wrote: > On Thu, Dec 2, 2021 at 1:18 PM Ilya Maximets wrote: >> >> On 12/2/21 12:47, David Marchand wrote: >>> I did a quick pass and caught some small things to fix: >>> >>> - should we list 21.11.x for 2.17.x in Documentation/faq/releases.rst table? >> >> This

[ovs-dev] [PATCH v2] tc: Fix incorrect TC rule for decap+encap datapath flow

2021-12-02 Thread Roi Dayan via dev
A datapath flow generated for traffic from vxlan port to another vxlan port looks like this: tunnel(tun_id=0x65,src=10.10.11.3,dst=10.10.11.2,ttl=0/0,tp_dst=4789,flags(+key)),...,in_port(vxlan_sys_4789),...,

Re: [ovs-dev] [PATCH] tc: Fix incorrect TC rule for decap+encap datapath flow

2021-12-02 Thread Roi Dayan via dev
On 2021-12-02 2:36 PM, Roi Dayan wrote: A datapath flow generated for traffic from vxlan port to another vxlan port looks like this: tunnel(tun_id=0x65,src=10.10.11.3,dst=10.10.11.2,ttl=0/0,tp_dst=4789,flags(+key)),...,in_port(vxlan_sys_4789),...,

Re: [ovs-dev] [RFC PATCH 1/1] dpdk: Update to use DPDK v21.11.

2021-12-02 Thread David Marchand
On Thu, Dec 2, 2021 at 1:18 PM Ilya Maximets wrote: > > On 12/2/21 12:47, David Marchand wrote: > > I did a quick pass and caught some small things to fix: > > > > - should we list 21.11.x for 2.17.x in Documentation/faq/releases.rst table? > > This will be done as part of "Prepare for 2.17.0."

[ovs-dev] [PATCH] tc: Fix incorrect TC rule for decap+encap datapath flow

2021-12-02 Thread Roi Dayan via dev
A datapath flow generated for traffic from vxlan port to another vxlan port looks like this: tunnel(tun_id=0x65,src=10.10.11.3,dst=10.10.11.2,ttl=0/0,tp_dst=4789,flags(+key)),...,in_port(vxlan_sys_4789),...,

Re: [ovs-dev] [RFC PATCH 1/1] dpdk: Update to use DPDK v21.11.

2021-12-02 Thread Stokes, Ian
> On Tue, Nov 30, 2021 at 4:54 PM Ian Stokes wrote: > > > > This commit adds support for DPDK v21.11, it includes the following > > changes. > > > > 1. ci: Install python elftools for DPDK 21.02. > > 2. ci: Update meson requirement for DPDK 21.05. > > 3. netdev-dpdk: Fix build with 21.05. > > 4.

Re: [ovs-dev] [PATCH v3 2/4] system-dpdk: Use dummy-pmd port for packet injection.

2021-12-02 Thread David Marchand
On Wed, Dec 1, 2021 at 3:52 PM Amber, Kumar wrote: > > diff --git a/tests/genpkts.py b/tests/genpkts.py new file mode 100755 index > > 00..f64f786ccb > > --- /dev/null > > +++ b/tests/genpkts.py > > @@ -0,0 +1,56 @@ > > +#!/usr/bin/env python3 > > + > > +import sys > > + > > +from

Re: [ovs-dev] [RFC PATCH 1/1] dpdk: Update to use DPDK v21.11.

2021-12-02 Thread Ilya Maximets
On 12/2/21 12:47, David Marchand wrote: > I did a quick pass and caught some small things to fix: > > - should we list 21.11.x for 2.17.x in Documentation/faq/releases.rst table? This will be done as part of "Prepare for 2.17.0." patch while preparing for the actual release along with update for

Re: [ovs-dev] [RFC PATCH 1/1] dpdk: Update to use DPDK v21.11.

2021-12-02 Thread David Marchand
On Tue, Nov 30, 2021 at 4:54 PM Ian Stokes wrote: > > This commit adds support for DPDK v21.11, it includes the following > changes. > > 1. ci: Install python elftools for DPDK 21.02. > 2. ci: Update meson requirement for DPDK 21.05. > 3. netdev-dpdk: Fix build with 21.05. > 4. ci: Compile DPDK

Re: [ovs-dev] [PATCH v1 8/8] odp-execute: Add ISA implementation of pop_vlan action.

2021-12-02 Thread 0-day Robot
Bleep bloop. Greetings Emma Finn, 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. Patch skipped due to previous failure. Please check this out. If you feel there has been an error, please

Re: [ovs-dev] [PATCH v1 7/8] odp-execute: Add ISA implementation of actions.

2021-12-02 Thread 0-day Robot
Bleep bloop. Greetings Emma Finn, 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. Patch skipped due to previous failure. Please check this out. If you feel there has been an error, please

Re: [ovs-dev] [PATCH v1 6/8] dpif-netdev: Add configure to enable autovalidator at build time.

2021-12-02 Thread 0-day Robot
Bleep bloop. Greetings Emma Finn, 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. Patch skipped due to previous failure. Please check this out. If you feel there has been an error, please

Re: [ovs-dev] [PATCH v1 5/8] pmd.at: Add test-cases for ovs-actions commands.

2021-12-02 Thread 0-day Robot
Bleep bloop. Greetings Emma Finn, 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. Patch skipped due to previous failure. Please check this out. If you feel there has been an error, please

Re: [ovs-dev] [PATCH v1 4/8] odp-execute: Add command to switch action implementation.

2021-12-02 Thread 0-day Robot
Bleep bloop. Greetings Emma Finn, 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. Patch skipped due to previous failure. Please check this out. If you feel there has been an error, please

Re: [ovs-dev] [PATCH v1 3/8] odp-execute: Add auto validation function for actions.

2021-12-02 Thread 0-day Robot
Bleep bloop. Greetings Emma Finn, 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. Patch skipped due to previous failure. Please check this out. If you feel there has been an error, please

Re: [ovs-dev] [PATCH v1 2/8] odp-execute: Add function pointer for pop_vlan action.

2021-12-02 Thread 0-day Robot
Bleep bloop. Greetings Emma Finn, 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. Patch skipped due to previous failure. Please check this out. If you feel there has been an error, please

Re: [ovs-dev] [PATCH v1 1/8] odp-execute: Add function pointers to odp-execute for different action implementations.

2021-12-02 Thread 0-day Robot
Bleep bloop. Greetings Emma Finn, 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. build: mv lib/nx-match.inc.tmp lib/nx-match.inc depbase=`echo lib/nx-match.lo | sed

[ovs-dev] [PATCH v1 8/8] odp-execute: Add ISA implementation of pop_vlan action.

2021-12-02 Thread Emma Finn
This commit adds the AVX512 implementation of the pop_vlan action. The implementation here is auto-validated by the miniflow extract autovalidator, hence its correctness can be easily tested and verified. Signed-off-by: Emma Finn --- lib/odp-execute-avx512.c | 76

[ovs-dev] [PATCH v1 7/8] odp-execute: Add ISA implementation of actions.

2021-12-02 Thread Emma Finn
This commit adds the AVX512 implementation of the action functionality. Usage: $ ovs-appctl dpif-netdev/action-impl-set avx512 Signed-off-by: Emma Finn --- lib/automake.mk | 4 ++- lib/dpdk.c| 1 + lib/odp-execute-avx512.c | 68

[ovs-dev] [PATCH v1 5/8] pmd.at: Add test-cases for ovs-actions commands.

2021-12-02 Thread Emma Finn
From: Kumar Amber Added separate test-case for ovs-actions get/set commands: 1023: PMD - ovs-actions configuration The above added tests are to test the commands which are used to either get or set the ovs-actions function pointers to various different implementations like AVX512 or

[ovs-dev] [PATCH v1 6/8] dpif-netdev: Add configure to enable autovalidator at build time.

2021-12-02 Thread Emma Finn
From: Kumar Amber This commit adds a new command to allow the user to enable autovalidatior by default at build time thus allowing for runnig unit test by default. $ ./configure --enable-actions-default-autovalidator Signed-off-by: Kumar Amber Signed-off-by: Emma Finn --- acinclude.m4

[ovs-dev] [PATCH v1 3/8] odp-execute: Add auto validation function for actions.

2021-12-02 Thread Emma Finn
This commit introduced the auto-validation function which allows users to compare the batch of packets obtained from different action implementations against the linear action implementation. The autovalidator function can be triggered at runtime using the following command: $ ovs-appctl

[ovs-dev] [PATCH v1 4/8] odp-execute: Add command to switch action implementation.

2021-12-02 Thread Emma Finn
This commit adds a new command to allow the user to switch the active action implementation at runtime. A probe function is executed before switching the implementation, to ensure the CPU is capable of running the ISA required. Usage: $ ovs-appctl dpif-netdev/action-impl-set scalar This commit

[ovs-dev] [PATCH v1 0/8] Actions Infrastructure + Optimizations

2021-12-02 Thread Emma Finn
This patchset introduces actions infrastructure changes which allows the user to choose between different action implementations based on CPU ISA by using different commands. The Infrastructure also provides a way to check the correctness of the ISA optimized action version against the scalar

[ovs-dev] [PATCH ovn v2] controller/pinctrl: improve packet-in debuggability

2021-12-02 Thread Mohammad Heib
Improve packet-in debuggability within pinctrl module by printing basic details about each received packet-in message, those messages will be printed to the logs only when DBG log level is enabled. Also, add two coverage counters that will indicate the total packet-in messages that were received

[ovs-dev] [PATCH v1 2/8] odp-execute: Add function pointer for pop_vlan action.

2021-12-02 Thread Emma Finn
This commit removes the pop_vlan action from the large switch and creates a separate function for batched processing. A function pointer is also added to call the new batched function for the pop_vlan action. Signed-off-by: Emma Finn --- lib/odp-execute.c | 29 +++-- 1

[ovs-dev] [PATCH v1 1/8] odp-execute: Add function pointers to odp-execute for different action implementations.

2021-12-02 Thread Emma Finn
This commit introduces the initial infrastructure required to allow different implementations for OvS actions. The patch introduces action function pointers which allows user to switch between different action implementations available. This will allow for more performance and flexibility so the

[ovs-dev] [PATCH v4] dpcls: Change info-get function to fetch dpcls usage stats.

2021-12-02 Thread Kumar Amber
Modified the dplcs info-get command output to include the count for different dpcls implementations. $ovs-appctl dpif-netdev/subtable-lookup-prio-get Available dpcls implementations: autovalidator (Use count: 1, Priority: 5) generic (Use count: 0, Priority: 1) avx512_gather (Use count: 0,

[ovs-dev] [PATCH v1] dpcls: Change info-get function to fetch dpcls usage stats.

2021-12-02 Thread Kumar Amber
Modified the dplcs info-get command output to include the count for different dpcls implementations. $ovs-appctl dpif-netdev/subtable-lookup-prio-get Available dpcls implementations: autovalidator (Use count: 1, Priority: 5) generic (Use count: 0, Priority: 1) avx512_gather (Use count: 0,

Re: [ovs-dev] [RFC PATCH 1/1] dpdk: Update to use DPDK v21.11.

2021-12-02 Thread Maxime Coquelin
Hi Ian, On 11/30/21 16:53, Ian Stokes wrote: This commit adds support for DPDK v21.11, it includes the following changes. 1. ci: Install python elftools for DPDK 21.02. 2. ci: Update meson requirement for DPDK 21.05. 3. netdev-dpdk: Fix build with 21.05. 4. ci: Compile DPDK in non developer