[ovs-dev] [PATCH v7] tc: Add support for TCA_STATS_PKT64

2022-12-22 Thread Mike Pattrick
o Chaudron Signed-off-by: Mike Pattrick --- Since v1: - Retain support for pre-TCA_STATS_PKT64 kernels Since v2: - Added compat header Since v3: - Rebased on to current master Since v4: - Fixed alignment issue - Moved declarations and definitions Since v5: -Aesthetic changes Since v6: -Aesthet

[ovs-dev] [PATCH v8] tc: Add support for TCA_STATS_PKT64

2023-01-04 Thread Mike Pattrick
o Chaudron Signed-off-by: Mike Pattrick --- Since v1: - Retain support for pre-TCA_STATS_PKT64 kernels Since v2: - Added compat header Since v3: - Rebased on to current master Since v4: - Fixed alignment issue - Moved declarations and definitions Since v5: -Aesthetic changes Since v6: -Aesthet

[ovs-dev] [PATCH v9] tc: Add support for TCA_STATS_PKT64

2023-01-05 Thread Mike Pattrick
32bit one has rolled over. Because the TCA_STATS_PKT64 attribute may appear multiple times in a netlink message, the method of parsing attributes was changed. Fixes: f98e418fbdb6 ("tc: Add tc flower functions") Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=1776816 Signed-of

[ovs-dev] [PATCH branch-2.17] tc: Add support for TCA_STATS_PKT64

2023-01-06 Thread Mike Pattrick
32bit one has rolled over. Because the TCA_STATS_PKT64 attribute may appear multiple times in a netlink message, the method of parsing attributes was changed. Fixes: f98e418fbdb6 ("tc: Add tc flower functions") Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=1776816 Signed-of

[ovs-dev] [PATCH 2/3] dp-packet: Allocate on cacheline boundary with DPDK

2023-01-10 Thread Mike Pattrick
packet_use lib/dp-packet.c:60 #3 in dp_packet_init lib/dp-packet.c:126 #4 in dp_packet_new lib/dp-packet.c:150 [...] Signed-off-by: Mike Pattrick --- lib/dp-packet.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/dp-packet.c b/lib/dp-packet.c index 61e405460..ae8ab5800 10

[ovs-dev] [PATCH 3/3] hash: Avoid 64bit crc intrinsics on 32bit aligned data

2023-01-10 Thread Mike Pattrick
UB Sanitizer report: lib/hash.h:219:17: runtime error: load of misaligned address 0x7ffc164a88b4 for type 'const uint64_t', which requires 8 byte alignment #0 in hash_words_inline lib/hash.h:219 #1 in hash_words lib/hash.h:297 [...] Signed-off-by: Mike Pattrick --- lib/h

[ovs-dev] [PATCH 1/3] netdev-dummy: Allocate dummy_packet_stream on cacheline boundary

2023-01-10 Thread Mike Pattrick
eam_create lib/netdev-dummy.c:208 #2 dummy_packet_conn_set_config lib/netdev-dummy.c:436 [...] Signed-off-by: Mike Pattrick --- lib/netdev-dummy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/netdev-dummy.c b/lib/netdev-dummy.c index 72cb95471..0b1eb7108 100644

Re: [ovs-dev] [PATCH 3/3] hash: Avoid 64bit crc intrinsics on 32bit aligned data

2023-01-11 Thread Mike Pattrick
On Wed, Jan 11, 2023 at 6:24 AM Ilya Maximets wrote: > > On 1/11/23 06:33, Mike Pattrick wrote: > > UB Sanitizer report: > > > > lib/hash.h:219:17: runtime error: load of misaligned address > > 0x7ffc164a88b4 for type 'const uint64_t', which require

[ovs-dev] [PATCH v2 2/3] dp-packet: Allocate on cacheline boundary with DPDK

2023-01-11 Thread Mike Pattrick
packet_use lib/dp-packet.c:60 #3 in dp_packet_init lib/dp-packet.c:126 #4 in dp_packet_new lib/dp-packet.c:150 [...] Signed-off-by: Mike Pattrick --- lib/dp-packet.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/dp-packet.c b/lib/dp-packet.c index 61e405460..ae8ab5800 10

[ovs-dev] [PATCH v2 1/3] netdev-dummy: Allocate dummy_packet_stream on cacheline boundary

2023-01-11 Thread Mike Pattrick
eam_create lib/netdev-dummy.c:208 #2 dummy_packet_conn_set_config lib/netdev-dummy.c:436 [...] Signed-off-by: Mike Pattrick --- lib/netdev-dummy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/netdev-dummy.c b/lib/netdev-dummy.c index 72cb95471..0b1eb7108 100644

[ovs-dev] [PATCH v2 3/3] hash: Avoid 64bit crc intrinsics on 32bit aligned data

2023-01-11 Thread Mike Pattrick
UB Sanitizer report: lib/hash.h:219:17: runtime error: load of misaligned address 0x7ffc164a88b4 for type 'const uint64_t', which requires 8 byte alignment #0 in hash_words_inline lib/hash.h:219 #1 in hash_words lib/hash.h:297 [...] Signed-off-by: Mike Pattrick --

Re: [ovs-dev] [RFC PATCH] ovs-vsctl: Be more strict in cli arguments

2023-01-11 Thread Mike Pattrick
On Wed, Jan 11, 2023 at 1:46 PM Michael Santana wrote: > > This is an RFC about making the ovs-vsctl more strict with argument > checking for the set command in other_config option. This RFC is > intentionally limited in scope as it is written to be a proof on concept > and doesn't cover all the o

Re: [ovs-dev] [PATCH 1/2] ofproto-ipfix: use per-domain template timeouts

2023-01-12 Thread Mike Pattrick
On Tue, Oct 18, 2022 at 8:02 AM Adrian Moreno wrote: > > IPFIX templates have to be sent for each Observation Domain ID. > Currently, a timer is kept at each dpif_ipfix_exporter to send them. > This works fine for per-bridge sampling where there is only one > Observation Domain ID per exporter. Ho

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

2023-01-13 Thread Mike Pattrick
On Tue, Oct 18, 2022 at 8:03 AM Adrian Moreno wrote: > > Add options to the IPFIX table configure the interval to send statistics > and template information. > > Signed-off-by: Adrian Moreno Looks good! Acked-by: Mike Pattrick > --- > NEWS | 2

Re: [ovs-dev] [PATCH v1 1/2] ofproto-ipfix: use per-domain template timeouts

2023-01-16 Thread Mike Pattrick
On Mon, Jan 16, 2023 at 10:17 AM Adrián Moreno wrote: > > From: Adrian Moreno > > IPFIX templates have to be sent for each Observation Domain ID. > Currently, a timer is kept at each dpif_ipfix_exporter to send them. > This works fine for per-bridge sampling where there is only one > Observation

Re: [ovs-dev] [PATCH v2 1/2] ofproto-ipfix: use per-domain template timeouts

2023-01-24 Thread Mike Pattrick
On Tue, Jan 24, 2023 at 2:21 PM Adrián Moreno wrote: > > From: Adrian Moreno > > IPFIX templates have to be sent for each Observation Domain ID. > Currently, a timer is kept at each dpif_ipfix_exporter to send them. > This works fine for per-bridge sampling where there is only one > Observation D

Re: [ovs-dev] [PATCH 1/2] dpif-netdev-perf: Remove not a number stat value.

2023-01-26 Thread Mike Pattrick
0 ( 0.0 % of total cycles) > - idle iterations: 0 ( 0.0 % of used cycles) > - busy iterations: 0 ( 0.0 % of used cycles) > > Signed-off-by: Kevin Traynor Acked-by: Mike Pattrick ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH 2/2] dpif-netdev-perf: Add metric averages when no iterations.

2023-01-26 Thread Mike Pattrick
0 >1025 0 >1469 0 > > --- >cycles/it >0 > > Signed-off-by: Kevin Traynor Acked-by: Mike Pattrick ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [PATCH v3 1/3] netdev-dummy: Allocate dummy_packet_stream on cacheline boundary

2023-01-30 Thread Mike Pattrick
eam_create lib/netdev-dummy.c:208 #2 dummy_packet_conn_set_config lib/netdev-dummy.c:436 [...] Signed-off-by: Mike Pattrick --- v3: - used proper free method for non-posix platforms --- lib/netdev-dummy.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/

[ovs-dev] [PATCH v3 2/3] dp-packet: Allocate on cacheline boundary with DPDK

2023-01-30 Thread Mike Pattrick
packet_use lib/dp-packet.c:60 #3 in dp_packet_init lib/dp-packet.c:126 #4 in dp_packet_new lib/dp-packet.c:150 [...] Signed-off-by: Mike Pattrick --- v3: - used proper free method for non-posix platforms --- lib/dp-packet.c | 4 lib/dp-packet.h | 4 2 files changed, 8

[ovs-dev] [PATCH v3 3/3] hash: Avoid 64bit crc intrinsics on 32bit aligned data

2023-01-30 Thread Mike Pattrick
UB Sanitizer report: lib/hash.h:219:17: runtime error: load of misaligned address 0x7ffc164a88b4 for type 'const uint64_t', which requires 8 byte alignment #0 in hash_words_inline lib/hash.h:219 #1 in hash_words lib/hash.h:297 [...] Signed-off-by: Mike Pattrick --- v

Re: [ovs-dev] [PATCH v3 1/3] netdev-dummy: Allocate dummy_packet_stream on cacheline boundary

2023-01-30 Thread Mike Pattrick
On Mon, Jan 30, 2023 at 2:03 PM Ilya Maximets wrote: > > On 1/30/23 17:03, Mike Pattrick wrote: > > UB Sanitizer report: > > > > lib/netdev-dummy.c:197:15: runtime error: member access within > > misaligned address 0x0217a7f0 for type 'struct > > dum

[ovs-dev] [PATCH v3 1/3] netdev-dummy: Allocate dummy_packet_stream on cacheline boundary

2023-01-30 Thread Mike Pattrick
eam_create lib/netdev-dummy.c:208 #2 dummy_packet_conn_set_config lib/netdev-dummy.c:436 [...] Signed-off-by: Mike Pattrick --- v3: - used proper free method for non-posix platforms --- lib/netdev-dummy.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/

[ovs-dev] [PATCH v3 2/3] dp-packet: Allocate on cacheline boundary with DPDK

2023-01-30 Thread Mike Pattrick
packet_use lib/dp-packet.c:60 #3 in dp_packet_init lib/dp-packet.c:126 #4 in dp_packet_new lib/dp-packet.c:150 [...] Signed-off-by: Mike Pattrick --- v3: - used proper free method for non-posix platforms --- lib/dp-packet.c | 4 lib/dp-packet.h | 4 2 files changed, 8

[ovs-dev] [PATCH v3 3/3] hash: Avoid 64bit crc intrinsics on 32bit aligned data

2023-01-30 Thread Mike Pattrick
UB Sanitizer report: lib/hash.h:219:17: runtime error: load of misaligned address 0x7ffc164a88b4 for type 'const uint64_t', which requires 8 byte alignment #0 in hash_words_inline lib/hash.h:219 #1 in hash_words lib/hash.h:297 [...] Signed-off-by: Mike Pattrick --- v

[ovs-dev] [PATCH v4 1/3] netdev-dummy: Allocate dummy_packet_stream on cacheline boundary

2023-01-30 Thread Mike Pattrick
eam_create lib/netdev-dummy.c:208 #2 dummy_packet_conn_set_config lib/netdev-dummy.c:436 [...] Signed-off-by: Mike Pattrick --- v3: - used proper free method for non-posix platforms v4: - fixed incorrectly spelled function name --- lib/netdev-dummy.c | 10 +- 1 file changed, 5

[ovs-dev] [PATCH v4 2/3] dp-packet: Allocate on cacheline boundary with DPDK

2023-01-30 Thread Mike Pattrick
packet_use lib/dp-packet.c:60 #3 in dp_packet_init lib/dp-packet.c:126 #4 in dp_packet_new lib/dp-packet.c:150 [...] Signed-off-by: Mike Pattrick --- v3: - used proper free method for non-posix platforms --- lib/dp-packet.c | 4 lib/dp-packet.h | 4 2 files changed, 8 insertion

[ovs-dev] [PATCH v4 3/3] hash: Avoid 64bit crc intrinsics on 32bit aligned data

2023-01-30 Thread Mike Pattrick
UB Sanitizer report: lib/hash.h:219:17: runtime error: load of misaligned address 0x7ffc164a88b4 for type 'const uint64_t', which requires 8 byte alignment #0 in hash_words_inline lib/hash.h:219 #1 in hash_words lib/hash.h:297 [...] Signed-off-by: Mike Pattrick --- v

Re: [ovs-dev] [PATCH v2 1/2] ofproto-ipfix: use per-domain template timeouts

2023-01-31 Thread Mike Pattrick
On Tue, Jan 31, 2023 at 10:45 AM Phelan, Michael wrote: > > > -Original Message- > > From: Ilya Maximets > > Sent: Tuesday 31 January 2023 12:23 > > To: Phelan, Michael ; Mike Pattrick > > ; Adrián Moreno > > Cc: i.maxim...@ovn.org; d...@openvswitc

[ovs-dev] [PATCH] ofproto-dpif-upcall: Mirror packets that are modified

2023-02-16 Thread Mike Pattrick
7;t see an echo reply even though one has been sent. This patch resets the mirrors every time a packet is modified, so mirrors will recieve every copy of a packet that is sent for output. Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=2155579 Signed-off-by: Mike Pattrick --- ofproto/of

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Mirror packets that are modified

2023-02-21 Thread Mike Pattrick
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 > > sent to for the purpose of deduplication. However, this doesn't consider >

[ovs-dev] [PATCH] ovs-actions: Correct typo in ovs-actions man page.

2023-02-21 Thread Mike Pattrick
There was a minor typo in the ovs-actions man page. Signed-off-by: Mike Pattrick --- Documentation/ref/ovs-actions.7.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/ref/ovs-actions.7.rst b/Documentation/ref/ovs-actions.7.rst index b59b7634f..d13895655

Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Reduce stack usage in recursive xlate functions

2023-03-03 Thread Mike Pattrick
On Fri, Mar 3, 2023 at 12:31 PM Adrian Moreno wrote: > > Hi Mike, > > I've gone though this patch and have some minor style comments and nits. I've > also played a bit with it and run it through valgrind and looks solid. > > On 12/8/22 17:22, Mike Pattrick wrote: &g

Re: [ovs-dev] [ovs-dev v4] ofproto: add refcount to ofproto to fix ofproto use-after-free

2022-02-03 Thread Mike Pattrick
are now making use > of RCU to protect ofproto: > > https://patchwork.ozlabs.org/project/openvswitch/patch/1638530715-44436-1-git-send-email-wangyunj...@huawei.com/ > > In this patch, I have merged guohongzhi's patch and mine, and fixes > acco

Re: [ovs-dev] [ovs-dev v4] ofproto: add refcount to ofproto to fix ofproto use-after-free

2022-02-04 Thread Mike Pattrick
On Fri, Feb 4, 2022 at 8:37 AM Adrian Moreno wrote: > > > > On 1/18/22 16:01, Peng He wrote: > > From hepeng: > > https://patchwork.ozlabs.org/project/openvswitch/patch/20200717015041.82746-1-hepeng.0...@bytedance.com/#2487473 > > > > also from guohongzhi : > > http://patchwork.ozlabs.org/project

Re: [ovs-dev] RFC for adding P4 Support in OVS

2022-02-07 Thread Mike Pattrick
On Thu, Jan 20, 2022 at 6:52 PM Limaye, Namrata wrote: > > Hi, > > We are working on adding P4 support to OVS and we have recently open-sourced > the patches on the IPDK github - >https://github.com/ipdk-io/ovs/tree/ovs-with-p4 Hello Namrata, I've been trying to compile this, b

Re: [ovs-dev] ovs/ipsec: Libreswan report connection failures to ovs logs

2022-02-14 Thread Mike Pattrick
n error message. > > This patch captures the request output and prints > the error message to the ovs logs. > > Signed-off-by: Mohammad Heib This should make it easier to debug IPSec issues. Acked-by: Mike Pattrick ___ dev mailing l

Re: [ovs-dev] [PATCH v1 1/1] datapath-windows: Fix NXM_OF_IP_TOS issue

2022-02-23 Thread Mike Pattrick
ICMP echo request, id 1, seq 10, length 40 > > Reported-at:openvswitch/ovs-issues#244 > Signed-off-by: Frank Guo > --- Acked-by: Mike Pattrick ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH] ofproto/ofproto-dpif: Fix dpif_type for userspace tunnels

2022-02-23 Thread Mike Pattrick
"netdev-vport: Fix userspace tunnel ioctl(SIOCGIFINDEX) info > logs.") > Signed-off-by: Wan Junjie > --- Acked-by: Mike Pattrick ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [PATCH v1] ofp-packet: Silence the 'may be uninitialized' warning.

2022-02-25 Thread Mike Pattrick
#x27;: lib/ofp-packet.c:886:27: warning: 'value' may be used uninitialized [-Wmaybe-uninitialized] The caller doesn't happen to use the variables in these cases because an error is set. But checking for the error resolves this warning. Signed-off-by: Mike Pattrick --- lib

Re: [ovs-dev] ovs/ipsec: StrongSwan report connection update failures to ovs logs

2022-02-25 Thread Mike Pattrick
n for this port > and ignores the request output which can contain an error message. > > This patch captures the request output and prints > the error message to the ovs logs. > > Signed-off-by: Mohammad Heib Acked-by: Mike Pattrick _

Re: [ovs-dev] [PATCH] ovs-monitor-ipsec: Add force-encapsulation option to force NAT-T

2022-02-25 Thread Mike Pattrick
On Thu, 2022-01-20 at 16:33 +0100, Andreas Karis wrote: > Both LibreSwan and OpenSwan allow administrators to unconditionally > force enable NAT-T for ESP. This may help to surmount restrictive > firewalls in scenarios where IP protocol number 50 is blocked, but > where > NAT autodetection fails. A

Re: [ovs-dev] [PATCH v1] ofp-packet: Silence the 'may be uninitialized' warning.

2022-02-25 Thread Mike Pattrick
On Fri, Feb 25, 2022 at 4:43 PM Gregory Rose wrote: > > > > On 2/25/2022 12:02 PM, Mike Pattrick wrote: > > GCC 11.2.1-2.2 emits a false-positive warnings like: > > > > lib/ofp-packet.c: In function 'ofputil_decode_packet_in': > > lib/ofp-

[ovs-dev] [PATCH v1] ofp-prop: Silence the 'may be uninitialized' warning.

2022-02-27 Thread Mike Pattrick
#x27;: lib/ofp-packet.c:886:27: warning: 'value' may be used uninitialized [-Wmaybe-uninitialized] Modifying callers of ofpprop_parse_* functions to always check the return value before using the value from these functions. Signed-off-by: Mike Pattrick --- lib/ofp-act

[ovs-dev] [PATCH v3] tc: Add support for TCA_STATS_PKT64

2022-02-28 Thread Mike Pattrick
) Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=1776816 Signed-off-by: Mike Pattrick --- acinclude.m4 | 7 include/linux/automake.mk | 1 + include/linux/gen_stats.h | 82 +++ lib/tc.c | 12 +- 4 files ch

[ovs-dev] [PATCH v1] bond: Improve bond and lacp visibility

2022-03-01 Thread Mike Pattrick
, we now suppress these messages at the INFO level and display exact byte count at the debug level. Signed-off-by: Mike Pattrick --- lib/lacp.c | 15 +++ ofproto/bond.c | 72 -- 2 files changed, 73 insertions(+), 14 deletions(-) diff

Re: [ovs-dev] [PATCH v2] ovs-monitor-ipsec: Add force-encapsulation option to force NAT-T

2022-03-01 Thread Mike Pattrick
detection fails. Add a switch --force-encapsulation to expose > this feature to users of ovs-monitor-ipsec > > Signed-off-by: Andreas Karis > --- Acked-by: Mike Pattrick ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH 1/4] dpif-netdev: Fix typo in function name.

2022-03-01 Thread Mike Pattrick
On Tue, Mar 1, 2022 at 12:25 PM Kevin Traynor wrote: > > Rename pmd_reblance_dry_run_needed() to > pmd_rebalance_dry_run_needed(). > > Fixes: a83a406096e9 ("dpif-netdev: Sync PMD ALB state with user commands.") > > Signed-off-by: Kevin Traynor

Re: [ovs-dev] [PATCH 2/4] dpif-netdev: Fix non-local numa selection.

2022-03-01 Thread Mike Pattrick
last numa used when successfully finding a non-local numa > with available pmds, so the numa RR state is kept for subsequent rxqs. > > Fixes: f577c2d046b2 ("dpif-netdev: Rework rxq scheduling code.") > > Signed-off-by: Kevin Traynor > --- Acked-by: Mike Pattric

Re: [ovs-dev] [PATCH 3/4] dpif-netdev: Fix PMD auto load balance with pmd-rxq-isolate.

2022-03-02 Thread Mike Pattrick
On Tue, Mar 1, 2022 at 12:25 PM Kevin Traynor wrote: > > There are currently some checks for cross-numa polling cases to > ensure that they won't effect the accuracy of the PMD ALB. > > If an rxq is pinned to a pmd core by the user it will not be > reassigned by OVS, so even if it is non-local num

Re: [ovs-dev] [PATCH 3/4] dpif-netdev: Fix PMD auto load balance with pmd-rxq-isolate.

2022-03-02 Thread Mike Pattrick
On Wed, Mar 2, 2022 at 11:32 AM Kevin Traynor wrote: > > Hi Mike, thanks for reviewing, > > On 02/03/2022 15:41, Mike Pattrick wrote: > > On Tue, Mar 1, 2022 at 12:25 PM Kevin Traynor wrote: > >> > >> There are currently some checks for cross-numa polling

Re: [ovs-dev] [PATCH v1] bond: Improve bond and lacp visibility

2022-03-02 Thread Mike Pattrick
On Wed, Mar 2, 2022 at 10:50 AM Adrian Moreno wrote: > > Thanks Mike, > > On 3/1/22 20:14, Mike Pattrick wrote: > > Add additional logging for debug and info level with a focus on code > > related to bond members coming up, go down, and changing. > > > >

Re: [ovs-dev] [PATCH 4/4] alb.ut: Add tests for cross-numa polling.

2022-03-02 Thread Mike Pattrick
On Tue, Mar 1, 2022 at 12:25 PM Kevin Traynor wrote: > > PMD auto load balance currently only operates when the polling pmd core > will not change numa after reassignment. Add a unit test for this. > > Signed-off-by: Kevin Traynor > --- Acked

[ovs-dev] [PATCH v3] bond: Improve bond and lacp visibility

2022-03-04 Thread Mike Pattrick
, we now suppress these messages at the INFO level and display exact byte count at the debug level. Since v2: - Normalized log capitalization and periods - Summarized info level hash transfers - Added log if bond members were significantly deviant Signed-off-by: Mike Pattrick --- lib/lacp.c

Re: [ovs-dev] [PATCH v2 3/4] dpif-netdev: Fix PMD auto load balance with pmd-rxq-isolate.

2022-03-04 Thread Mike Pattrick
gt; Also, update function comments to make it's operation clearer. > > Fixes: 6193e03267c1 ("dpif-netdev: Allow pin rxq and non-isolate PMD.") > > Signed-off-by: Kevin Traynor > --- Acked-by: Mike Pattrick ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] ovs-monitor-ipsec: add list-commands command

2022-03-04 Thread Mike Pattrick
tions of the ovs-monitor-ipsec. > > This patch adds a list-commands alias name to'help' operation. > > Signed-off-by: Mohammad Heib > --- Acked-by: Mike Pattrick ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH v3 16/17] sparse: bump recommended version and include headers

2022-03-09 Thread Mike Pattrick
On Wed, Feb 16, 2022 at 9:31 AM Adrian Moreno wrote: > > It seems versions older than 0.6.2 generate false positives. Bump the > recommended version and make sure we uset the headers from the > > Suggested-by: Dumitru Ceara > Signed-off-by: Adrian Moreno > --- > Documentation/intro/install/gene

Re: [ovs-dev] [PATCH v4 4/5] dpif-netdev: Fix PMD auto load balance with pmd-rxq-isolate.

2022-03-11 Thread Mike Pattrick
gt; Also, update function comments to make it's operation clearer. > > Fixes: 6193e03267c1 ("dpif-netdev: Allow pin rxq and non-isolate PMD.") > > Signed-off-by: Kevin Traynor > --- Acked-by: Mike Pattrick ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [PATCH v1] dpif: Remove string format from dp_netdev_flow_add

2022-03-16 Thread Mike Pattrick
string, now we just keep track of the 16 byte flow map. Signed-off-by: Mike Pattrick --- lib/dpctl.c| 13 +++-- lib/dpif-netdev-private-flow.h | 2 +- lib/dpif-netdev.c | 15 +-- lib/dpif-netlink.c | 2 +- lib/dpif.h

Re: [ovs-dev] IPsec/test: skip the test if tcpdump are not installed

2022-03-18 Thread Mike Pattrick
On Thu, Mar 17, 2022 at 7:36 AM Mohammad Heib wrote: > > IPsec unit tests uses tcpdump to capture and validate the ESP > traffic so the test must be skipped in environment that don't > have the tcpdump tool installed. > > Signed-off-by: Mohammad Heib Doesn't system-traffic.at also use tcpdump? W

Re: [ovs-dev] [PATCH v2] ovs-monitor-ipsec: Allow custom options per tunnel

2022-03-18 Thread Mike Pattrick
cking valid key/value pairs. > > Signed-off-by: Andreas Karis Acked-by: Mike Pattrick > --- > Documentation/tutorials/ipsec.rst | 45 +++ > ipsec/ovs-monitor-ipsec.in| 17 +++- > vswitchd/vswitch.xml | 4 ++- >

[ovs-dev] [PATCH v1] signals: Add support for sigdescr_np

2022-03-22 Thread Mike Pattrick
In glibc 2.32 sys_siglist is no longer exported. The MT-safe function sigdescr_np() is now available for the same purpose. Signed-off-by: Mike Pattrick --- configure.ac | 1 + lib/signals.c | 5 + 2 files changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 298ea85ab

Re: [ovs-dev] [PATCH v1] signals: Add support for sigdescr_np

2022-03-23 Thread Mike Pattrick
On Wed, Mar 23, 2022 at 4:23 AM David Marchand wrote: > > On Tue, Mar 22, 2022 at 6:43 PM Mike Pattrick wrote: > > > > In glibc 2.32 sys_siglist is no longer exported. The MT-safe function > > sigdescr_np() is now available for the same purpose. > > I am not f

Re: [ovs-dev] [PATCH v5 3/5] pmd.at: Add tests for multi non-local numa pmds.

2022-03-23 Thread Mike Pattrick
On Wed, Mar 23, 2022 at 10:09 AM Kevin Traynor wrote: > > Ensure that if there are no local numa PMD thread > cores available that pmd cores from all other non-local > numas will be used. > > Signed-off-by: Kevin Traynor Acked-by: Mike Pattrick > ---

Re: [ovs-dev] [PATCH] ofproto/bond: Add knob "all_slaves_active"

2022-03-23 Thread Mike Pattrick
On Thu, Mar 17, 2022 at 11:54 AM Christophe Fontaine wrote: > > This config param allows the delivery of broadcast and multicast packets > to the secondary interface of non-lacp bonds, identical to the same option > for kernel bonds. > > Tested with an ovs-dpdk balance-slb bond with 2 virtual func

[ovs-dev] [PATCH v1] ovs-ctl: Allow inclusion of hugepages in coredumps

2022-03-25 Thread Mike Pattrick
Add new option --dump-hugepages option in ovs-ctl to enable the addition of hugepages in the core dump filter. Signed-off-by: Mike Pattrick --- NEWS | 4 utilities/ovs-ctl.in | 15 +++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS

Re: [ovs-dev] [PATCH 3/5] netdev-offload-tc: Handle check_pkt_len datapath action.

2022-04-01 Thread Mike Pattrick
On Mon, Mar 28, 2022 at 7:11 AM Eelco Chaudron wrote: > > This change implements support for the check_pkt_len > action using the TC police action, which supports MTU > checking. > > Signed-off-by: Eelco Chaudron Hello Eelco, I've run into a few problems with this patch. I've found that the fol

Re: [ovs-dev] [PATCH 1/5] netdev-offload-tc: Move flow_put action handling to isolated function.

2022-04-05 Thread Mike Pattrick
On Mon, Mar 28, 2022 at 7:10 AM Eelco Chaudron wrote: > > Move handling of the individual actions in the netdev_tc_flow_put() > function to a separate function that will make recursive action handling > easier. > > Signed-off-by: Eelco Chaudron Acked-by: Mike Pattrick &

Re: [ovs-dev] [PATCH 2/5] netdev-offload-tc: Move flower_to_match action handling to isolated function.

2022-04-05 Thread Mike Pattrick
On Mon, Mar 28, 2022 at 7:10 AM Eelco Chaudron wrote: > > Move handling of the individual actions in the parse_tc_flower_to_match() > function to a separate function that will make recursive action handling > easier. > > Signed-off-by: Eelco Chaudron Acked-by: Mike Pattr

[ovs-dev] [PATCH v1] ofproto-dpif: Validate action size and recursion depth

2022-04-06 Thread Mike Pattrick
Verify that a flow isn't adding more than 64kB in actions when an action uses multiple check_pkt_larger statements. Failure to do so can cause ovs-vswitchd to throw signal 6. Also add a depth check to clone and check_pkt_larger. Signed-off-by: Mike Pattrick --- ofproto/ofproto-dpif-xlate.c

Re: [ovs-dev] [PATCH v1] ofproto-dpif: Validate action size and recursion depth

2022-04-07 Thread Mike Pattrick
On Thu, Apr 7, 2022 at 7:26 AM Adrian Moreno wrote: > > Hi Mike, > > On 4/6/22 18:48, Mike Pattrick wrote: > > Verify that a flow isn't adding more than 64kB in actions when an action > > uses multiple check_pkt_larger statements. Failure to do so can cause >

Re: [ovs-dev] [PATCH v1] ofproto-dpif: Validate action size and recursion depth

2022-04-08 Thread Mike Pattrick
On Fri, Apr 8, 2022 at 6:35 AM Eelco Chaudron wrote: > > > > On 8 Apr 2022, at 11:18, Adrian Moreno wrote: > > > On 4/7/22 18:00, Mike Pattrick wrote: > >> On Thu, Apr 7, 2022 at 7:26 AM Adrian Moreno wrote: > >>> > >>> Hi Mike, > >

[ovs-dev] [PATCH v3] netdev-dpdk: Refactor the DPDK transmit path.

2022-04-08 Thread Mike Pattrick
have the side effect of leaving only the dpdk transmit code under the txq lock. Signed-off-by: Flavio Leitner Reviewed-by: David Marchand Signed-off-by: Mike Pattrick --- V2: - mentioned the tx lock change in the commit message. - fixed packet leak when copy fails. - moved pkt_cnt = cnt

Re: [ovs-dev] [PATCH v4 13/14] userspace: Add Generic Segmentation Offloading.

2022-07-07 Thread Mike Pattrick
On Thu, Jul 7, 2022 at 7:03 AM David Marchand wrote: > > Hello Mike, > > > I did not review carefully yet. > Just two quick comments. > > > On Fri, Jul 1, 2022 at 5:58 AM Mike Pattrick wrote: > > > > From: Flavio Leitner > > > > This provides a

Re: [ovs-dev] [PATCH v2] python: use setuptools instead of distutils

2022-07-11 Thread Mike Pattrick
instead. > > setuptools < 59.0 doesn't have setuptools.errors and so, in this case, > distutils.errors is still used. > > Signed-off-by: Timothy Redaelli LGTM! Acked-by: Mike Pattrick ___ dev mailing list d...@openvswitch.org htt

Re: [ovs-dev] [PATCH 1/14] Rename flags with CKSUM to CSUM

2022-07-12 Thread Mike Pattrick
On Thu, Jul 7, 2022 at 5:53 AM Amber, Kumar wrote: > > Hi Flavio, Mike, > > > > I did have a quick look over the patch-set > https://patchwork.ozlabs.org/project/openvswitch/list/?series=307485 > > > > I have some comments over the patches mentioned below: > > 1. Can a Cover letter

[ovs-dev] [PATCH v5 0/4] Enhance support for checksum offloading

2022-07-13 Thread Mike Pattrick
This is a subset of the larger TSO patchset with various checksumming improvements. This set includes additional documentation, new appctl command "dpif-netdev/offload-show" to display interface offload support, and improvements to tracking when an updated checksum is required. Flavio Leitner (4)

[ovs-dev] [PATCH v5 1/4] Documentation: Document netdev offload.

2022-07-13 Thread Mike Pattrick
From: Flavio Leitner Document the implementation of netdev hardware offloading in userspace datapath. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- Documentation/automake.mk| 1 + Documentation/topics/index.rst | 1

[ovs-dev] [PATCH v5 3/4] userspace: Enable IP checksum offloading by default.

2022-07-13 Thread Mike Pattrick
alone, so the support is not enabled. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- v5: - Refactor was mostly removed, except for valid->good - Reset unsupported offload flags in send_prepare - Moved send_prepare from process_upcall to

[ovs-dev] [PATCH v5 2/4] dpif-netdev: Show netdev offloading flags.

2022-07-13 Thread Mike Pattrick
From: Flavio Leitner Add a new command to show the offloading features of each data path port. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Reviewed-by: David Marchand --- lib/dpif-netdev-unixctl.man | 6 lib/dpif-netdev.c | 58

[ovs-dev] [PATCH v5 4/4] userspace: Enable L4 csum offloading by default.

2022-07-13 Thread Mike Pattrick
d, so this patch enables the feature. However, Linux socket interface remains disabled because the API doesn't allow enabling those two features without enabling TSO too. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- v5: - Added David&

Re: [ovs-dev] [PATCH v5 3/4] userspace: Enable IP checksum offloading by default.

2022-07-13 Thread Mike Pattrick
It looks like one of the test files fell out of this patch, I'll re-submit with that corrected. -M On Wed, Jul 13, 2022 at 2:14 PM Mike Pattrick wrote: > > From: Flavio Leitner > > The netdev receiving packets is supposed to provide the flags > indicating if the IP csum wa

[ovs-dev] [PATCH v6 0/4] Enhance support for checksum offloading

2022-07-13 Thread Mike Pattrick
This is a subset of the larger TSO patchset with various checksumming improvements. This set includes additional documentation, new appctl command "dpif-netdev/offload-show" to display interface offload support, and improvements to tracking when an updated checksum is required. Flavio Leitner (4):

[ovs-dev] [PATCH v6 1/4] Documentation: Document netdev offload.

2022-07-13 Thread Mike Pattrick
From: Flavio Leitner Document the implementation of netdev hardware offloading in userspace datapath. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- Documentation/automake.mk| 1 + Documentation/topics/index.rst | 1

[ovs-dev] [PATCH v6 2/4] dpif-netdev: Show netdev offloading flags.

2022-07-13 Thread Mike Pattrick
From: Flavio Leitner Add a new command to show the offloading features of each data path port. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick Reviewed-by: David Marchand --- lib/dpif-netdev-unixctl.man | 6 lib/dpif-netdev.c | 58

[ovs-dev] [PATCH v6 3/4] userspace: Enable IP checksum offloading by default.

2022-07-13 Thread Mike Pattrick
alone, so the support is not enabled. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- v5: - Refactor was mostly removed, except for valid->good - Reset unsupported offload flags in send_prepare - Moved send_prepare from process_upcall to netd

[ovs-dev] [PATCH v6 4/4] userspace: Enable L4 csum offloading by default.

2022-07-13 Thread Mike Pattrick
d, so this patch enables the feature. However, Linux socket interface remains disabled because the API doesn't allow enabling those two features without enabling TSO too. Signed-off-by: Flavio Leitner Co-authored-by: Mike Pattrick Signed-off-by: Mike Pattrick --- v5: - Added David&

Re: [ovs-dev] [PATCH v3 1/1] packets: Re-calculate IPv6 checksum only for first frag upon modify.

2022-07-13 Thread Mike Pattrick
adding a new flag to recalculate the checksum only for last frag. Should be "only for the first frag." Acked-by: Mike Pattrick . > > Fixes: bc7a5acdff08 ("datapath: add ipv6 'set' action") > Signed-off-by: Salem Sol > --- > lib/pack

Re: [ovs-dev] [PATCH v1] lacp: modify the comment misspelling

2022-07-27 Thread Mike Pattrick
On Thu, Jun 23, 2022 at 6:32 AM yangchang wrote: > > change 'negotations' to 'negotiations' > > Signed-off-by: yangchang Good catch! Acked-by: Mike Pattrick > --- > lib/lacp.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

Re: [ovs-dev] [PATCH] python-c-ext: Handle initialization failures.

2022-07-27 Thread Mike Pattrick
eate may > fail, most of the examples in python documentation include > handling of a NULL case. > > Signed-off-by: Ilya Maximets Looks good to me! Acked-by: Mike Pattrick > --- > python/ovs/_json.c | 10 +- > 1 file changed, 9 insertions(+), 1 deletion(-) > &g

[ovs-dev] [PATCH net-next 1/2] openvswitch: Fix double reporting of drops in dropwatch

2022-07-28 Thread Mike Pattrick
://bugzilla.redhat.com/show_bug.cgi?id=2109946 Signed-off-by: Mike Pattrick --- net/openvswitch/datapath.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index 7e8a39a35627..029f9c3e1c28 100644 --- a/net

[ovs-dev] [PATCH net-next 2/2] openvswitch: Fix overreporting of drops in dropwatch

2022-07-28 Thread Mike Pattrick
Signed-off-by: Mike Pattrick --- net/openvswitch/datapath.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index 029f9c3e1c28..3eee4b0a2005 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c

Re: [ovs-dev] [PATCH] system-offloads-traffic: Fix waiting for netcat indefinitely.

2022-08-03 Thread Mike Pattrick
meter to tc police action") > Signed-off-by: Ilya Maximets Should we also add these flags to the other system tests? Acked-by: Mike Pattrick > --- > tests/system-offloads-traffic.at | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/tests/syst

Re: [ovs-dev] [PATCH] system-offloads-traffic: Fix waiting for netcat indefinitely.

2022-08-03 Thread Mike Pattrick
On Wed, Aug 3, 2022 at 11:12 AM Ilya Maximets wrote: > > On 8/3/22 16:58, Mike Pattrick wrote: > > On Thu, Jul 28, 2022 at 2:27 PM Ilya Maximets wrote: > >> > >> $NC_EOF_OPT should be used to avoid some netcat implementations > >> to wait indefinitely.

Re: [ovs-dev] [PATCH] dpif-netlink: Fix incorrect bit shift in compat mode.

2022-08-03 Thread Mike Pattrick
(/lib/x86_64-linux-gnu/libc.so.6+0x29e3f) > #14 0x562594eed024 in _start (vswitchd/ovs-vswitchd+0x787024) > > Fixes: 526df7d8543f ("tunnel: Provide framework for tunnel extensions for > VXLAN-GBP and others") > Signed-off-by: Ilya Maximets Acked-by: Mike Pattrick >

Re: [ovs-dev] [PATCH v1] ovs-save: Use right OpenFlow version for add-tlv-map

2022-08-03 Thread Mike Pattrick
On Fri, Jul 1, 2022 at 6:53 AM Han Ding wrote: > > > When the bridge protocols is not included Openflow10, printing an error > message "version negotiation failed" when doing "Restoring saved flows". > > Signed-off-by: Han Ding Looks good to me! Acked-by:

Re: [ovs-dev] [PATCH] python: Fix E275 missing whitespace after keyword.

2022-08-04 Thread Mike Pattrick
use we're installing extra dependencies > that backtrack flake8 down to 4.1 or even 3.9. > > Signed-off-by: Ilya Maximets Looks good to me! Acked-by: Mike Pattrick > --- > python/setup.py | 4 ++-- > tests/test-ovsdb.py | 2 +- > utilit

Re: [ovs-dev] [ovs-dev v2 2/4] ofproto-dpif-upcall: fix race condition

2022-08-15 Thread Mike Pattrick
On Sat, Jun 4, 2022 at 11:19 AM Peng He wrote: > > There is a race condition between the revalidator threads and > the handler/pmd threads. > > revalidator PMD threads > push_dp_ops deletes a key and tries > to del the dp magaflow. > do

Re: [ovs-dev] [ovs-dev v2 2/4] ofproto-dpif-upcall: fix race condition

2022-08-16 Thread Mike Pattrick
n; +} VLOG_ABORT("Invalid ukey transition %d->%d (last transitioned from " "thread %u at %s)", ukey->state, dst, ukey->state_thread, ukey->state_where); > > Mike Pattrick 于2022年8月15日周一 20:16写道: >> &

[ovs-dev] [PATCH net-next v2 1/2] openvswitch: Fix double reporting of drops in dropwatch

2022-08-17 Thread Mike Pattrick
Frames sent to userspace can be reported as dropped in ovs_dp_process_packet, however, if they are dropped in the netlink code then netlink_attachskb will report the same frame as dropped. This patch checks for error codes which indicate that the frame has already been freed. Signed-off-by: Mike

<    2   3   4   5   6   7   8   >